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 21SHELL = @SHELL@ 22 23srcdir = @srcdir@ 24top_srcdir = @top_srcdir@ 25VPATH = @srcdir@ 26 27prefix = @prefix@ 28exec_prefix = @exec_prefix@ 29 30bindir = @bindir@ 31libdir = @libdir@ 32includedir = @includedir@ 33mandir = ${prefix}/man/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 44APIHEADER = $(srcdir)/lib/expat.h 45LIBRARY = libexpat.la 46 47CC = @CC@ 48LIBTOOL = @LIBTOOL@ 49 50INCLUDES = -I$(srcdir)/lib -I. 51LDFLAGS = @LDFLAGS@ 52CPPFLAGS = @CPPFLAGS@ 53CFLAGS = @CFLAGS@ -DHAVE_EXPAT_CONFIG_H 54VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@ 55 56### autoconf this? 57LTFLAGS = --silent 58 59COMPILE = $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) 60LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) 61LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@ 62LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@ 63 64LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo 65 66all: $(LIBRARY) 67 68clean: 69 cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs 70 rm -rf .libs libexpat.la 71 72clobber: clean 73 74distclean: clean 75 rm -f expat_config.h config.status config.log config.cache libtool 76 rm -f Makefile 77 78extraclean: distclean 79 rm -f expat_config.h.in configure 80 rm -f conftools/aclocal.m4 conftools/ltconfig conftools/ltmain.sh 81 rm -f conftools/argz.m4 conftools/libtool.m4 conftools/ltoptions.m4 82 rm -f conftools/ltsugar.m4 conftools/ltversion.m4 conftools/lt~obsolete.m4 83 84check: tests/runtests 85 tests/runtests 86 87install: installlib 88 89installlib: $(LIBRARY) $(APIHEADER) 90 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) 91 $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY) 92 $(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir) 93 94$(LIBRARY): $(LIB_OBJS) 95 $(LINK_LIB) $(LIB_OBJS) 96 97lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \ 98 $(top_builddir)/expat_config.h lib/internal.h 99 100lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c lib/xmltok_ns.c \ 101 lib/ascii.h lib/asciitab.h lib/iasciitab.h lib/latin1tab.h \ 102 lib/nametab.h lib/utf8tab.h lib/xmltok.h lib/xmltok_impl.h \ 103 $(top_builddir)/expat_config.h 104 105.SUFFIXES: .c .lo .o 106 107.c.o: 108 $(COMPILE) -o $@ -c $< 109.c.lo: 110 $(LTCOMPILE) -o $@ -c $< 111 112.PHONY: buildlib all \ 113 clean distclean extraclean maintainer-clean \ 114 dist distdir \ 115 install uninstall 116