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@
32
libexecdir = @libexecdir@
34
sysconfdir = @sysconfdir@
35
sharedstatedir = @sharedstatedir@
36
localstatedir = @localstatedir@
40
includedir = @includedir@
41
oldincludedir = /usr/include
48
INSTALL_PROGRAM = @INSTALL_PROGRAM@
49
INSTALL_SCRIPT = @INSTALL_SCRIPT@
50
INSTALL_DATA = @INSTALL_DATA@
52
host_alias = @host_alias@
65
SOURCES = xmlparse.c xmltok.c xmlrole.c
66
OBJECTS = $(SOURCES:.c=.o)
67
LTOBJECTS = $(SOURCES:.c=.lo)
69
TEMPLATES = xmltok_impl.c xmltok_ns.c
71
HEADERS = ascii.h iasciitab.h utf8tab.h xmltok.h asciitab.h latin1tab.h \
72
nametab.h xmldef.h xmlrole.h xmltok_impl.h
74
mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
75
CONFIG_HEADER = ../config.h
78
INCLUDES = -I$(srcdir) -I. -I..
79
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
86
LIBREVISION = @LIBREVISION@
87
LIBCURRENT = @LIBCURRENT@
90
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
91
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
93
LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) $(CFLAGS) $(LDFLAGS) -o $@
94
DIST_COMMON = Makefile.in
97
DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
105
.PHONY: all clean distclean maintainer-clean
113
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
115
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
117
$(top_builddir)/config.status: $(top_builddir)/configure
118
cd $(top_builddir) && $(MAKE) config.status
120
$(top_builddir)/config.h: $(top_builddir)/config.h.in
121
cd $(top_builddir) && $(MAKE) config.h
124
rm -f $(LIBRARY) *.o *.lo *~
130
maintainer-clean: distclean
134
@echo This package does not yet have a regression test.
137
install: $(LIBRARY) $(APIHEADER)
138
$(mkinstalldirs) $(libdir) $(includedir)
139
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
140
$(INSTALL_DATA) $(APIHEADER) $(includedir)
143
$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY);
144
rm -f $(libdir)/$(APIHEADER)
146
$(LIBRARY): $(LTOBJECTS)
147
$(LINK) -rpath $(libdir) $(LDFLAGS) $(LTOBJECTS)
150
xmlparse.lo: xmlparse.c expat.h xmlrole.h xmltok.h $(top_builddir)/config.h
153
xmlrole.lo: xmlrole.c ascii.h xmlrole.h $(top_builddir)/config.h
156
xmltok.lo: xmltok.c xmltok_impl.c xmltok_ns.c \
157
ascii.h asciitab.h iasciitab.h latin1tab.h nametab.h utf8tab.h \
158
xmltok.h xmltok_impl.h $(top_builddir)/config.h