symbian-qemu-0.9.1-12/expat-2.0.0/Makefile.in
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     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 ifndef INSTALL_ROOT
       
    48 INSTALL_ROOT=$(DESTDIR)
       
    49 endif
       
    50 
       
    51 default:  buildlib xmlwf/xmlwf
       
    52 
       
    53 buildlib: $(LIBRARY)
       
    54 
       
    55 all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
       
    56 
       
    57 clean:
       
    58 	cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
       
    59 	cd xmlwf && rm -f xmlwf *.o *.lo && rm -rf .libs _libs
       
    60 	cd examples && rm -f elements outline *.o *.lo && rm -rf .libs _libs
       
    61 	cd tests && rm -rf .libs runtests runtests.o runtestspp runtestspp.o
       
    62 	cd tests && rm -f chardata.o minicheck.o
       
    63 	rm -rf .libs libexpat.la
       
    64 	rm -f examples/core tests/core xmlwf/core
       
    65 
       
    66 clobber: clean
       
    67 
       
    68 distclean: clean
       
    69 	rm -f expat_config.h config.status config.log config.cache libtool
       
    70 	rm -f Makefile
       
    71 
       
    72 extraclean: distclean
       
    73 	rm -f expat_config.h.in configure
       
    74 	rm -f conftools/ltconfig conftools/ltmain.sh conftools/libtool.m4
       
    75 
       
    76 check: tests/runtests tests/runtestspp
       
    77 	tests/runtests
       
    78 	tests/runtestspp
       
    79 
       
    80 install: xmlwf/xmlwf installlib
       
    81 	$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) $(INSTALL_ROOT)$(man1dir)
       
    82 	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(INSTALL_ROOT)$(bindir)/xmlwf
       
    83 	$(INSTALL_DATA) $(MANFILE) $(INSTALL_ROOT)$(man1dir)
       
    84 
       
    85 installlib: $(LIBRARY) $(APIHEADER)
       
    86 	$(mkinstalldirs) $(INSTALL_ROOT)$(libdir) $(INSTALL_ROOT)$(includedir)
       
    87 	$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(INSTALL_ROOT)$(libdir)/$(LIBRARY)
       
    88 	for FN in $(APIHEADER) ; do $(INSTALL_DATA) $$FN $(INSTALL_ROOT)$(includedir) ; done
       
    89 
       
    90 uninstall: uninstalllib
       
    91 	$(LIBTOOL) --mode=uninstall rm -f $(INSTALL_ROOT)$(bindir)/xmlwf
       
    92 	rm -f $(INSTALL_ROOT)$(man1dir)/xmlwf.1
       
    93 
       
    94 uninstalllib:
       
    95 	$(LIBTOOL) --mode=uninstall rm -f $(INSTALL_ROOT)$(libdir)/$(LIBRARY)
       
    96 	rm -f $(INSTALL_ROOT)$(includedir)/expat.h
       
    97 	rm -f $(INSTALL_ROOT)$(includedir)/expat_external.h
       
    98 
       
    99 # for VPATH builds (invoked by configure)
       
   100 mkdir-init:
       
   101 	@for d in lib xmlwf examples tests ; do \
       
   102 		(mkdir $$d 2> /dev/null || test 1) ; \
       
   103 	done
       
   104 
       
   105 CC = @CC@
       
   106 LIBTOOL = @LIBTOOL@
       
   107 
       
   108 INCLUDES = -I$(srcdir)/lib -I.
       
   109 LDFLAGS = @LDFLAGS@
       
   110 CPPFLAGS = @CPPFLAGS@
       
   111 CFLAGS = @CFLAGS@ -DHAVE_EXPAT_CONFIG_H
       
   112 VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
       
   113 
       
   114 ### autoconf this?
       
   115 LTFLAGS = --silent
       
   116 
       
   117 COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
       
   118 CXXCOMPILE = $(CXX) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
       
   119 LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
       
   120 LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
       
   121 LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
       
   122 LINK_CXX_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CXXCOMPILE) $(LDFLAGS) -o $@
       
   123 
       
   124 LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
       
   125 $(LIBRARY): $(LIB_OBJS)
       
   126 	$(LINK_LIB) $(LIB_OBJS)
       
   127 
       
   128 lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
       
   129 	$(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
       
   130 
       
   131 lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h \
       
   132 	$(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
       
   133 
       
   134 lib/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 \
       
   137 	$(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
       
   138 
       
   139 
       
   140 XMLWF_OBJS = xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/@FILEMAP@.o
       
   141 xmlwf/xmlwf.o: xmlwf/xmlwf.c
       
   142 xmlwf/xmlfile.o: xmlwf/xmlfile.c
       
   143 xmlwf/codepage.o: xmlwf/codepage.c
       
   144 xmlwf/@FILEMAP@.o: xmlwf/@FILEMAP@.c
       
   145 xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
       
   146 	$(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)
       
   147 
       
   148 examples/elements.o: examples/elements.c
       
   149 examples/elements: examples/elements.o $(LIBRARY)
       
   150 	$(LINK_EXE) $< $(LIBRARY)
       
   151 
       
   152 examples/outline.o: examples/outline.c
       
   153 examples/outline: examples/outline.o $(LIBRARY)
       
   154 	$(LINK_EXE) $< $(LIBRARY)
       
   155 
       
   156 tests/chardata.o: tests/chardata.c tests/chardata.h
       
   157 tests/minicheck.o: tests/minicheck.c tests/minicheck.h
       
   158 tests/runtests.o: tests/runtests.c tests/chardata.h
       
   159 tests/runtests: tests/runtests.o tests/chardata.o tests/minicheck.o $(LIBRARY)
       
   160 	$(LINK_EXE) $^
       
   161 tests/runtestspp.o: tests/runtestspp.cpp tests/runtests.c tests/chardata.h
       
   162 tests/runtestspp: tests/runtestspp.o tests/chardata.o tests/minicheck.o $(LIBRARY)
       
   163 	$(LINK_CXX_EXE) $^
       
   164 
       
   165 tests/xmlts.zip:
       
   166 	wget --output-document=tests/xmlts.zip \
       
   167 		http://www.w3.org/XML/Test/xmlts20020606.zip
       
   168 
       
   169 tests/XML-Test-Suite: tests/xmlts.zip
       
   170 	cd tests && unzip -q xmlts.zip
       
   171 
       
   172 run-xmltest: xmlwf/xmlwf tests/XML-Test-Suite
       
   173 	tests/xmltest.sh
       
   174 
       
   175 .SUFFIXES: .c .lo .o
       
   176 
       
   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