blob: 97907392ea17b95c343d17a83e2822db08bd4ce7 [file] [log] [blame]
Martin v. Löwis1dbb1ca2002-02-11 23:13:04 +00001################################################################
2# Process this file with top-level configure script to produce Makefile
3#
4# Copyright 2000 Clark Cooper
5#
6# This file is part of EXPAT.
7#
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.
11#
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.
19#
20
21
22SHELL = @SHELL@
23
24srcdir = @srcdir@
25top_srcdir = @top_srcdir@
26VPATH = @srcdir@
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29
30bindir = @bindir@
31sbindir = @sbindir@
32libexecdir = @libexecdir@
33datadir = @datadir@
34sysconfdir = @sysconfdir@
35sharedstatedir = @sharedstatedir@
36localstatedir = @localstatedir@
37libdir = @libdir@
38infodir = @infodir@
39mandir = @mandir@
40includedir = @includedir@
41oldincludedir = /usr/include
42
43subdir = lib
44
45top_builddir = ..
46
47INSTALL = @INSTALL@
48INSTALL_PROGRAM = @INSTALL_PROGRAM@
49INSTALL_SCRIPT = @INSTALL_SCRIPT@
50INSTALL_DATA = @INSTALL_DATA@
51
52host_alias = @host_alias@
53host_triplet = @host@
54AS = @AS@
55CC = @CC@
56DLLTOOL = @DLLTOOL@
57LIBTOOL = @LIBTOOL@
58LN_S = @LN_S@
59OBJDUMP = @OBJDUMP@
60PACKAGE = @PACKAGE@
61RANLIB = @RANLIB@
62VERSION = @VERSION@
63
64LIBRARY = libexpat.la
65SOURCES = xmlparse.c xmltok.c xmlrole.c
66OBJECTS = $(SOURCES:.c=.o)
67LTOBJECTS = $(SOURCES:.c=.lo)
68
69TEMPLATES = xmltok_impl.c xmltok_ns.c
70APIHEADER = expat.h
71HEADERS = ascii.h iasciitab.h utf8tab.h xmltok.h asciitab.h latin1tab.h \
72 nametab.h xmldef.h xmlrole.h xmltok_impl.h
73
74mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
75CONFIG_HEADER = ../config.h
76CONFIG_CLEAN_FILES =
77
78INCLUDES = -I$(srcdir) -I. -I..
79DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
80
81CPPFLAGS = @CPPFLAGS@
82LDFLAGS = @LDFLAGS@
83LIBS = @LIBS@
84CFLAGS = @CFLAGS@
85
86LIBREVISION = @LIBREVISION@
87LIBCURRENT = @LIBCURRENT@
88LIBAGE = @LIBAGE@
89
90COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
91LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
92CCLD = $(CC)
93LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) $(CFLAGS) $(LDFLAGS) -o $@
94DIST_COMMON = Makefile.in
95
96
97DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
98
99TAR = gtar
100GZIP_ENV = --best
101
102all: $(LIBRARY)
103
104.SUFFIXES: .c .lo .o
105.PHONY: all clean distclean maintainer-clean
106
107.c.o:
108 $(COMPILE) -c $<
109
110.c.lo:
111 $(LTCOMPILE) -c $<
112
113Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
114 cd $(top_builddir) \
115 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
116
117$(top_builddir)/config.status: $(top_builddir)/configure
118 cd $(top_builddir) && $(MAKE) config.status
119
120$(top_builddir)/config.h: $(top_builddir)/config.h.in
121 cd $(top_builddir) && $(MAKE) config.h
122
123clean:
124 rm -f $(LIBRARY) *.o *.lo *~
125 rm -rf .libs _libs
126
127distclean: clean
128 rm -f Makefile
129
130maintainer-clean: distclean
131
132check: $(SUBDIRS)
133 @echo
134 @echo This package does not yet have a regression test.
135 @echo
136
137install: $(LIBRARY) $(APIHEADER)
138 $(mkinstalldirs) $(libdir) $(includedir)
139 $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
140 $(INSTALL_DATA) $(APIHEADER) $(includedir)
141
142uninstall:
143 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY);
144 rm -f $(libdir)/$(APIHEADER)
145
146$(LIBRARY): $(LTOBJECTS)
147 $(LINK) -rpath $(libdir) $(LDFLAGS) $(LTOBJECTS)
148
149xmlparse.o \
150xmlparse.lo: xmlparse.c expat.h xmlrole.h xmltok.h $(top_builddir)/config.h
151
152xmlrole.o \
153xmlrole.lo: xmlrole.c ascii.h xmlrole.h $(top_builddir)/config.h
154
155xmltok.o \
156xmltok.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