Deleted Added
full compact
Makefile.in (104349) Makefile.in (178848)
1################################################################
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

--- 16 unchanged lines hidden (view full) ---

25VPATH = @srcdir@
26
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29
30bindir = @bindir@
31libdir = @libdir@
32includedir = @includedir@
1################################################################
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

--- 16 unchanged lines hidden (view full) ---

25VPATH = @srcdir@
26
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29
30bindir = @bindir@
31libdir = @libdir@
32includedir = @includedir@
33mandir = ${prefix}/man/man1
33man1dir = @mandir@/man1
34
35top_builddir = .
36
37
38INSTALL = @INSTALL@
39INSTALL_PROGRAM = @INSTALL_PROGRAM@
40INSTALL_DATA = @INSTALL_DATA@
41mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
42
43MANFILE = $(srcdir)/doc/xmlwf.1
34
35top_builddir = .
36
37
38INSTALL = @INSTALL@
39INSTALL_PROGRAM = @INSTALL_PROGRAM@
40INSTALL_DATA = @INSTALL_DATA@
41mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
42
43MANFILE = $(srcdir)/doc/xmlwf.1
44APIHEADER = $(srcdir)/lib/expat.h
44APIHEADER = $(srcdir)/lib/expat.h $(srcdir)/lib/expat_external.h
45LIBRARY = libexpat.la
46
45LIBRARY = libexpat.la
46
47DESTDIR = $(INSTALL_ROOT)
47
48default: buildlib xmlwf/xmlwf
49
50buildlib: $(LIBRARY)
51
52all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
53
54clean:
55 cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
56 cd xmlwf && rm -f xmlwf *.o *.lo && rm -rf .libs _libs
57 cd examples && rm -f elements outline *.o *.lo && rm -rf .libs _libs
48
49default: buildlib xmlwf/xmlwf
50
51buildlib: $(LIBRARY)
52
53all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
54
55clean:
56 cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
57 cd xmlwf && rm -f xmlwf *.o *.lo && rm -rf .libs _libs
58 cd examples && rm -f elements outline *.o *.lo && rm -rf .libs _libs
58 cd tests && rm -rf .libs runtests runtests.o chardata.o
59 cd tests && rm -rf .libs runtests runtests.o runtestspp runtestspp.o
60 cd tests && rm -f chardata.o minicheck.o
59 rm -rf .libs libexpat.la
61 rm -rf .libs libexpat.la
60 find . -name core | xargs rm -f
62 rm -f examples/core tests/core xmlwf/core
61
63
64clobber: clean
65
62distclean: clean
63 rm -f expat_config.h config.status config.log config.cache libtool
64 rm -f Makefile
65
66extraclean: distclean
67 rm -f expat_config.h.in configure
68 rm -f conftools/ltconfig conftools/ltmain.sh conftools/libtool.m4
69
66distclean: clean
67 rm -f expat_config.h config.status config.log config.cache libtool
68 rm -f Makefile
69
70extraclean: distclean
71 rm -f expat_config.h.in configure
72 rm -f conftools/ltconfig conftools/ltmain.sh conftools/libtool.m4
73
70check: tests/runtests
74check: tests/runtests tests/runtestspp
71 tests/runtests
75 tests/runtests
76 tests/runtestspp
72
73install: xmlwf/xmlwf installlib
77
78install: xmlwf/xmlwf installlib
74 $(mkinstalldirs) $(bindir) $(mandir)
75 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
76 $(INSTALL_DATA) $(MANFILE) $(mandir)
79 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
80 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(DESTDIR)$(bindir)/xmlwf
81 $(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
77
78installlib: $(LIBRARY) $(APIHEADER)
82
83installlib: $(LIBRARY) $(APIHEADER)
79 $(mkinstalldirs) $(libdir) $(includedir)
80 $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
81 $(INSTALL_DATA) $(APIHEADER) $(includedir)
84 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
85 $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
86 for FN in $(APIHEADER) ; do $(INSTALL_DATA) $$FN $(DESTDIR)$(includedir) ; done
82
83uninstall: uninstalllib
87
88uninstall: uninstalllib
84 $(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
85 rm -f $(mandir)/xmlwf.1
89 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
90 rm -f $(DESTDIR)$(man1dir)/xmlwf.1
86
87uninstalllib:
91
92uninstalllib:
88 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
89 rm -f $(includedir)/$(APIHEADER)
93 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
94 rm -f $(DESTDIR)$(includedir)/expat.h
95 rm -f $(DESTDIR)$(includedir)/expat_external.h
90
91# for VPATH builds (invoked by configure)
92mkdir-init:
93 @for d in lib xmlwf examples tests ; do \
94 (mkdir $$d 2> /dev/null || test 1) ; \
95 done
96
97CC = @CC@
96
97# for VPATH builds (invoked by configure)
98mkdir-init:
99 @for d in lib xmlwf examples tests ; do \
100 (mkdir $$d 2> /dev/null || test 1) ; \
101 done
102
103CC = @CC@
104CXX = @CXX@
98LIBTOOL = @LIBTOOL@
99
100INCLUDES = -I$(srcdir)/lib -I.
101LDFLAGS = @LDFLAGS@
105LIBTOOL = @LIBTOOL@
106
107INCLUDES = -I$(srcdir)/lib -I.
108LDFLAGS = @LDFLAGS@
102CPPFLAGS = @CPPFLAGS@
109CPPFLAGS = @CPPFLAGS@ -DHAVE_EXPAT_CONFIG_H
103CFLAGS = @CFLAGS@
110CFLAGS = @CFLAGS@
111CXXFLAGS = @CXXFLAGS@
104VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
105
106### autoconf this?
107LTFLAGS = --silent
108
112VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
113
114### autoconf this?
115LTFLAGS = --silent
116
109COMPILE = $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES)
117COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
118CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS)
110LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
111LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
112LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
119LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
120LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
121LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
122LINK_CXX_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CXXCOMPILE) $(LDFLAGS) -o $@
113
114LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
115$(LIBRARY): $(LIB_OBJS)
116 $(LINK_LIB) $(LIB_OBJS)
117
118lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
123
124LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
125$(LIBRARY): $(LIB_OBJS)
126 $(LINK_LIB) $(LIB_OBJS)
127
128lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
119 $(top_builddir)/expat_config.h lib/internal.h
129 $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
120
121lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h \
130
131lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h \
122 $(top_builddir)/expat_config.h lib/internal.h
132 $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
123
124lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c lib/xmltok_ns.c \
125 lib/ascii.h lib/asciitab.h lib/iasciitab.h lib/latin1tab.h \
126 lib/nametab.h lib/utf8tab.h lib/xmltok.h lib/xmltok_impl.h \
133
134lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c lib/xmltok_ns.c \
135 lib/ascii.h lib/asciitab.h lib/iasciitab.h lib/latin1tab.h \
136 lib/nametab.h lib/utf8tab.h lib/xmltok.h lib/xmltok_impl.h \
127 $(top_builddir)/expat_config.h
137 $(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
128
129
130XMLWF_OBJS = xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/@FILEMAP@.o
131xmlwf/xmlwf.o: xmlwf/xmlwf.c
132xmlwf/xmlfile.o: xmlwf/xmlfile.c
133xmlwf/codepage.o: xmlwf/codepage.c
134xmlwf/@FILEMAP@.o: xmlwf/@FILEMAP@.c
135xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
136 $(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)
137
138examples/elements.o: examples/elements.c
139examples/elements: examples/elements.o $(LIBRARY)
140 $(LINK_EXE) $< $(LIBRARY)
141
142examples/outline.o: examples/outline.c
143examples/outline: examples/outline.o $(LIBRARY)
144 $(LINK_EXE) $< $(LIBRARY)
145
146tests/chardata.o: tests/chardata.c tests/chardata.h
138
139
140XMLWF_OBJS = xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/@FILEMAP@.o
141xmlwf/xmlwf.o: xmlwf/xmlwf.c
142xmlwf/xmlfile.o: xmlwf/xmlfile.c
143xmlwf/codepage.o: xmlwf/codepage.c
144xmlwf/@FILEMAP@.o: xmlwf/@FILEMAP@.c
145xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
146 $(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)
147
148examples/elements.o: examples/elements.c
149examples/elements: examples/elements.o $(LIBRARY)
150 $(LINK_EXE) $< $(LIBRARY)
151
152examples/outline.o: examples/outline.c
153examples/outline: examples/outline.o $(LIBRARY)
154 $(LINK_EXE) $< $(LIBRARY)
155
156tests/chardata.o: tests/chardata.c tests/chardata.h
157tests/minicheck.o: tests/minicheck.c tests/minicheck.h
147tests/runtests.o: tests/runtests.c tests/chardata.h
158tests/runtests.o: tests/runtests.c tests/chardata.h
148tests/runtests: tests/runtests.o tests/chardata.o $(LIBRARY)
149 $(LINK_EXE) $^ -lcheck
159tests/runtests: tests/runtests.o tests/chardata.o tests/minicheck.o $(LIBRARY)
160 $(LINK_EXE) tests/runtests.o tests/chardata.o tests/minicheck.o $(LIBRARY)
161tests/runtestspp.o: tests/runtestspp.cpp tests/runtests.c tests/chardata.h
162tests/runtestspp: tests/runtestspp.o tests/chardata.o tests/minicheck.o $(LIBRARY)
163 $(LINK_CXX_EXE) tests/runtestspp.o tests/chardata.o tests/minicheck.o $(LIBRARY)
150
151tests/xmlts.zip:
152 wget --output-document=tests/xmlts.zip \
153 http://www.w3.org/XML/Test/xmlts20020606.zip
154
155tests/XML-Test-Suite: tests/xmlts.zip
156 cd tests && unzip -q xmlts.zip
157
158run-xmltest: xmlwf/xmlwf tests/XML-Test-Suite
159 tests/xmltest.sh
160
164
165tests/xmlts.zip:
166 wget --output-document=tests/xmlts.zip \
167 http://www.w3.org/XML/Test/xmlts20020606.zip
168
169tests/XML-Test-Suite: tests/xmlts.zip
170 cd tests && unzip -q xmlts.zip
171
172run-xmltest: xmlwf/xmlwf tests/XML-Test-Suite
173 tests/xmltest.sh
174
161.SUFFIXES: .c .lo .o
175.SUFFIXES: .c .cpp .lo .o
162
176
177.cpp.o:
178 $(CXXCOMPILE) -o $@ -c $<
163.c.o:
164 $(COMPILE) -o $@ -c $<
165.c.lo:
166 $(LTCOMPILE) -o $@ -c $<
167
168.PHONY: buildlib all \
169 clean distclean extraclean maintainer-clean \
170 dist distdir \
171 install uninstall
179.c.o:
180 $(COMPILE) -o $@ -c $<
181.c.lo:
182 $(LTCOMPILE) -o $@ -c $<
183
184.PHONY: buildlib all \
185 clean distclean extraclean maintainer-clean \
186 dist distdir \
187 install uninstall