upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr-util / xml / expat / Makefile
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 = /bin/bash
22
23 srcdir = .
24 top_srcdir = .
25
26
27 prefix = /bottlenecks/rubbos/app/apache2
28 exec_prefix = /bottlenecks/rubbos/app/apache2
29
30 bindir = /bottlenecks/rubbos/app/apache2/bin
31 libdir = /bottlenecks/rubbos/app/apache2/lib
32 includedir = /bottlenecks/rubbos/app/apache2/include
33 mandir = ${prefix}/man/man1
34
35 top_builddir = .
36
37
38 INSTALL = /usr/bin/install -c
39 INSTALL_PROGRAM = ${INSTALL}
40 INSTALL_DATA = ${INSTALL} -m 644
41 mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
42
43 MANFILE = $(srcdir)/doc/xmlwf.1
44 APIHEADER = $(srcdir)/lib/expat.h
45 LIBRARY = libexpat.la
46
47 CC = gcc
48 LIBTOOL = $(SHELL) $(top_builddir)/libtool
49
50 INCLUDES = -I$(srcdir)/lib -I.
51 LDFLAGS = 
52 CPPFLAGS = 
53 CFLAGS = -g -O2 -DHAVE_EXPAT_CONFIG_H
54 VSNFLAG = -version-info 5:0:5
55
56 ### autoconf this?
57 LTFLAGS = --silent
58
59 COMPILE = $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES)
60 LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
61 LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
62 LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
63
64 LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
65
66 all: $(LIBRARY)
67
68 clean:
69         cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
70         rm -rf .libs libexpat.la
71
72 clobber: clean
73
74 distclean: clean
75         rm -f expat_config.h config.status config.log config.cache libtool
76         rm -f Makefile
77
78 extraclean: distclean
79         rm -f expat_config.h.in configure
80         rm -f conftools/ltconfig conftools/ltmain.sh conftools/libtool.m4
81
82 check: tests/runtests
83         tests/runtests
84
85 install: installlib
86
87 installlib: $(LIBRARY) $(APIHEADER)
88         $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
89         $(LIBTOOL)  --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
90         $(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
91
92 $(LIBRARY): $(LIB_OBJS)
93         $(LINK_LIB) $(LIB_OBJS)
94
95 lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
96         $(top_builddir)/expat_config.h lib/internal.h
97
98 lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c lib/xmltok_ns.c \
99         lib/ascii.h lib/asciitab.h lib/iasciitab.h lib/latin1tab.h \
100         lib/nametab.h lib/utf8tab.h lib/xmltok.h lib/xmltok_impl.h \
101         $(top_builddir)/expat_config.h
102
103 .SUFFIXES: .c .lo .o
104
105 .c.o:
106         $(COMPILE) -o $@ -c $<
107 .c.lo:
108         $(LTCOMPILE) -o $@ -c $<
109
110 .PHONY: buildlib all \
111         clean distclean extraclean maintainer-clean \
112         dist distdir \
113         install uninstall