2000-09-18 12:26:23 -04:00
|
|
|
################################################################
|
|
|
|
# Process this file with top-level configure script to produce Makefile
|
|
|
|
#
|
|
|
|
# Copyright 2000 Clark Cooper
|
|
|
|
#
|
|
|
|
# This file is part of EXPAT.
|
|
|
|
#
|
|
|
|
# EXPAT is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the License (based on the MIT/X license) contained
|
|
|
|
# in the file COPYING that comes with this distribution.
|
|
|
|
#
|
|
|
|
# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
|
|
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
oldincludedir = /usr/include
|
|
|
|
|
|
|
|
subdir = lib
|
|
|
|
|
|
|
|
DESTDIR =
|
|
|
|
|
|
|
|
top_builddir = ..
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
host_alias = @host_alias@
|
|
|
|
host_triplet = @host@
|
|
|
|
AS = @AS@
|
|
|
|
CC = @CC@
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
OBJDUMP = @OBJDUMP@
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
RANLIB = @RANLIB@
|
2000-12-27 14:37:37 -05:00
|
|
|
VERSION = @VERSION@
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
LIBRARY = libexpat.la
|
|
|
|
SOURCES = xmlparse.c xmltok.c xmlrole.c
|
|
|
|
OBJECTS = $(SOURCES:.c=.o)
|
|
|
|
LTOBJECTS = $(SOURCES:.c=.lo)
|
|
|
|
|
|
|
|
TEMPLATES = xmltok_impl.c xmltok_ns.c
|
|
|
|
APIHEADER = expat.h
|
|
|
|
HEADERS = ascii.h iasciitab.h utf8tab.h xmltok.h asciitab.h latin1tab.h \
|
|
|
|
nametab.h xmldef.h xmlrole.h xmltok_impl.h
|
|
|
|
|
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
|
|
|
|
CONFIG_HEADER = ../config.h
|
|
|
|
CONFIG_CLEAN_FILES =
|
|
|
|
|
2001-07-20 23:37:12 -04:00
|
|
|
INCLUDES = -I$(srcdir) -I. -I..
|
2001-01-24 14:41:12 -05:00
|
|
|
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
|
2000-12-27 14:37:37 -05:00
|
|
|
|
2000-09-18 12:26:23 -04:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
CFLAGS = @CFLAGS@
|
2000-09-23 23:43:37 -04:00
|
|
|
|
|
|
|
LIBREVISION = @LIBREVISION@
|
|
|
|
LIBCURRENT = @LIBCURRENT@
|
|
|
|
LIBAGE = @LIBAGE@
|
|
|
|
|
2000-09-18 12:26:23 -04:00
|
|
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
|
|
|
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
|
|
|
CCLD = $(CC)
|
2000-09-23 23:43:37 -04:00
|
|
|
LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) $(CFLAGS) $(LDFLAGS) -o $@
|
2000-09-18 12:26:23 -04:00
|
|
|
DIST_COMMON = Makefile.in
|
|
|
|
|
|
|
|
|
|
|
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
|
|
|
|
|
|
|
|
TAR = gtar
|
|
|
|
GZIP_ENV = --best
|
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .lo .o
|
2000-09-28 15:47:35 -04:00
|
|
|
.PHONY: all clean distclean maintainer-clean
|
2000-09-18 12:26:23 -04:00
|
|
|
|
2000-10-10 14:34:11 -04:00
|
|
|
.c.o:
|
2001-02-28 23:04:26 -05:00
|
|
|
$(COMPILE) -c $<
|
2000-09-18 12:26:23 -04:00
|
|
|
|
2000-10-10 14:34:11 -04:00
|
|
|
.c.lo:
|
2001-02-28 23:04:26 -05:00
|
|
|
$(LTCOMPILE) -c $<
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
$(top_builddir)/config.status: $(top_builddir)/configure
|
|
|
|
cd $(top_builddir) && $(MAKE) config.status
|
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
$(top_builddir)/config.h: $(top_builddir)/config.h.in
|
2000-09-18 12:26:23 -04:00
|
|
|
cd $(top_builddir) && $(MAKE) config.h
|
|
|
|
|
|
|
|
clean:
|
2000-09-21 17:20:18 -04:00
|
|
|
rm -f $(LIBRARY) *.o *.lo *~
|
2001-03-10 10:41:50 -05:00
|
|
|
rm -rf .libs _libs
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
distclean: clean
|
2000-09-28 15:47:35 -04:00
|
|
|
rm -f Makefile
|
2000-09-18 12:26:23 -04:00
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
|
|
|
|
install: $(LIBRARY) $(APIHEADER)
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
|
|
|
|
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
|
|
|
|
$(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY);
|
|
|
|
rm -f $(DESTDIR)$(libdir)/$(APIHEADER)
|
|
|
|
|
|
|
|
$(LIBRARY): $(LTOBJECTS)
|
|
|
|
$(LINK) -rpath $(libdir) $(LDFLAGS) $(LTOBJECTS)
|
|
|
|
|
2000-09-23 23:43:37 -04:00
|
|
|
xmlparse.o \
|
|
|
|
xmlparse.lo: xmlparse.c expat.h xmlrole.h xmltok.h $(top_builddir)/config.h
|
2000-09-18 12:26:23 -04:00
|
|
|
|
2000-09-23 23:43:37 -04:00
|
|
|
xmlrole.o \
|
2000-09-28 15:47:35 -04:00
|
|
|
xmlrole.lo: xmlrole.c ascii.h xmlrole.h $(top_builddir)/config.h
|
2000-09-18 12:26:23 -04:00
|
|
|
|
2000-09-23 23:43:37 -04:00
|
|
|
xmltok.o \
|
|
|
|
xmltok.lo: xmltok.c xmltok_impl.c xmltok_ns.c \
|
2000-09-18 12:26:23 -04:00
|
|
|
ascii.h asciitab.h iasciitab.h latin1tab.h nametab.h utf8tab.h \
|
2000-09-28 15:47:35 -04:00
|
|
|
xmltok.h xmltok_impl.h $(top_builddir)/config.h
|