1
################################################################
2
# Process this file with top-level configure script to produce Makefile
4
# Copyright 2000 Clark Cooper
6
# This file is part of EXPAT.
8
# EXPAT is free software; you can redistribute it and/or modify it
9
# under the terms of the License (based on the MIT/X license) contained
10
# in the file COPYING that comes with this distribution.
12
# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
16
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
17
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
25
top_srcdir = @top_srcdir@
28
exec_prefix = @exec_prefix@
33
libexecdir = @libexecdir@
35
sysconfdir = @sysconfdir@
36
sharedstatedir = @sharedstatedir@
37
localstatedir = @localstatedir@
41
includedir = @includedir@
42
oldincludedir = /usr/include
49
INSTALL_PROGRAM = @INSTALL_PROGRAM@
50
INSTALL_SCRIPT = @INSTALL_SCRIPT@
51
INSTALL_DATA = @INSTALL_DATA@
53
host_alias = @host_alias@
66
SOURCES = xmlparse.c xmltok.c xmlrole.c
67
OBJECTS = $(SOURCES:.c=.o)
68
LTOBJECTS = $(SOURCES:.c=.lo)
70
TEMPLATES = xmltok_impl.c xmltok_ns.c
72
HEADERS = ascii.h iasciitab.h utf8tab.h xmltok.h asciitab.h latin1tab.h \
73
nametab.h xmldef.h xmlrole.h xmltok_impl.h
75
mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
76
CONFIG_HEADER = ../config.h
79
INCLUDES = -I$(srcdir) -I.. -I$(blddir)
80
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
87
LIBREVISION = @LIBREVISION@
88
LIBCURRENT = @LIBCURRENT@
91
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
92
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
94
LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) $(CFLAGS) $(LDFLAGS) -o $@
95
DIST_COMMON = Makefile.in
98
DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
106
.PHONY: all clean distclean maintainer-clean
114
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
116
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
118
$(top_builddir)/config.status: $(top_builddir)/configure
119
cd $(top_builddir) && $(MAKE) config.status
121
$(top_builddir)/config.h: $(top_builddir)/config.h.in
122
cd $(top_builddir) && $(MAKE) config.h
125
rm -f $(LIBRARY) *.o *.lo *~
129
rm -f Makefile expat.h
131
maintainer-clean: distclean
133
install: $(LIBRARY) $(APIHEADER)
134
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
135
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
136
$(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
139
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY);
140
rm -f $(DESTDIR)$(libdir)/$(APIHEADER)
142
$(LIBRARY): $(LTOBJECTS)
143
$(LINK) -rpath $(libdir) $(LDFLAGS) $(LTOBJECTS)
146
xmlparse.lo: xmlparse.c expat.h xmlrole.h xmltok.h $(top_builddir)/config.h
149
xmlrole.lo: xmlrole.c ascii.h xmlrole.h $(top_builddir)/config.h
152
xmltok.lo: xmltok.c xmltok_impl.c xmltok_ns.c \
153
ascii.h asciitab.h iasciitab.h latin1tab.h nametab.h utf8tab.h \
154
xmltok.h xmltok_impl.h $(top_builddir)/config.h