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