~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
srcdir=@srcdir@
 
3
VPATH=@srcdir@
 
4
top_srcdir=@apr_srcdir@
 
5
top_blddir=@apr_builddir@
 
6
 
 
7
#
 
8
# APR (Apache Portable Runtime) library Makefile.
 
9
#
 
10
CPP = @CPP@
 
11
 
 
12
# get substituted into some targets
 
13
APR_MAJOR_VERSION=@APR_MAJOR_VERSION@
 
14
 
 
15
#
 
16
# Macros for supporting directories
 
17
#
 
18
INCDIR=./include
 
19
OSDIR=$(top_srcdir)/include/arch/@OSDIR@
 
20
DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@
 
21
INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include
 
22
 
 
23
#
 
24
# Macros for target determination
 
25
#
 
26
CLEAN_SUBDIRS= test
 
27
INSTALL_SUBDIRS=@INSTALL_SUBDIRS@
 
28
 
 
29
TARGET_LIB = lib@APR_LIBNAME@.la
 
30
APR_PCFILE = apr-$(APR_MAJOR_VERSION).pc
 
31
APR_CONFIG = apr-$(APR_MAJOR_VERSION)-config
 
32
INSTALL = @INSTALL@
 
33
INSTALL_DATA = @INSTALL_DATA@
 
34
 
 
35
#
 
36
# Rules for building specific targets, starting with 'all' for
 
37
# building the entire package.
 
38
#
 
39
TARGETS = $(TARGET_LIB) export_vars.c apr.exp
 
40
 
 
41
# bring in rules.mk for standard functionality
 
42
@INCLUDE_RULES@
 
43
@INCLUDE_OUTPUTS@
 
44
 
 
45
CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
 
46
        build/apr_rules.out
 
47
DISTCLEAN_TARGETS = config.cache config.log config.status \
 
48
        include/apr.h include/arch/unix/apr_private.h \
 
49
        libtool $(APR_CONFIG) build/apr_rules.mk apr.pc \
 
50
        build/pkg/pkginfo
 
51
EXTRACLEAN_TARGETS = configure aclocal.m4 include/arch/unix/apr_private.h.in \
 
52
        build-outputs.mk build/ltcf-c.sh build/ltmain.sh build/libtool.m4
 
53
 
 
54
prefix=@prefix@
 
55
exec_prefix=@exec_prefix@
 
56
bindir=@bindir@
 
57
libdir=@libdir@
 
58
includedir=@includedir@
 
59
installbuilddir=@installbuilddir@
 
60
 
 
61
# Create apr-config script suitable for the install tree
 
62
apr-config.out: $(APR_CONFIG)
 
63
        sed 's,^\(location=\).*$$,\1installed,' < $(APR_CONFIG) > $@
 
64
 
 
65
# Create apr_rules.mk suitable for the install tree
 
66
build/apr_rules.out: build/apr_rules.mk
 
67
        sed 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
 
68
 
 
69
install: $(TARGET_LIB) apr-config.out build/apr_rules.out
 
70
        $(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(installbuilddir) \
 
71
                     $(DESTDIR)$(libdir)/pkgconfig $(DESTDIR)$(includedir)
 
72
        $(INSTALL_DATA) $(top_blddir)/include/apr.h $(DESTDIR)$(includedir)
 
73
        for f in $(top_srcdir)/include/apr_*.h; do \
 
74
            $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \
 
75
        done
 
76
        $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir)
 
77
        $(INSTALL_DATA) apr.exp $(DESTDIR)$(libdir)/apr.exp
 
78
        $(INSTALL_DATA) apr.pc $(DESTDIR)$(libdir)/pkgconfig/$(APR_PCFILE)
 
79
        for f in libtool shlibtool; do \
 
80
            if test -f $${f}; then $(INSTALL) -m 755 $${f} $(DESTDIR)$(installbuilddir); fi; \
 
81
        done
 
82
        $(INSTALL) -m 755 $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir)
 
83
        for f in make_exports.awk make_var_export.awk; do \
 
84
            $(INSTALL_DATA) $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \
 
85
        done
 
86
        $(INSTALL_DATA) build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk
 
87
        $(INSTALL) -m 755 apr-config.out $(DESTDIR)$(bindir)/$(APR_CONFIG)
 
88
        @if [ $(INSTALL_SUBDIRS) != "none" ]; then \
 
89
            for i in $(INSTALL_SUBDIRS); do \
 
90
                ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
 
91
            done \
 
92
        fi
 
93
 
 
94
$(TARGET_LIB): $(OBJECTS)
 
95
        $(LINK) @lib_target@ $(ALL_LIBS)
 
96
 
 
97
exports.c: $(HEADERS)
 
98
        $(APR_MKEXPORT) $(HEADERS) > $@
 
99
 
 
100
export_vars.c: $(HEADERS)
 
101
        $(APR_MKVAREXPORT) $(HEADERS) > $@
 
102
 
 
103
apr.exp: exports.c export_vars.c
 
104
        @echo "#! lib@APR_LIBNAME@.so" > $@
 
105
        @echo "* This file was AUTOGENERATED at build time." >> $@
 
106
        @echo "* Please do not edit by hand." >> $@
 
107
        $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
 
108
        $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
 
109
 
 
110
dox:
 
111
        doxygen $(top_srcdir)/docs/doxygen.conf
 
112
 
 
113
gcov: 
 
114
        @build/run-gcov.sh
 
115
 
 
116
test: check
 
117
check: $(TARGET_LIB)
 
118
        (cd test && $(MAKE) check)
 
119
 
 
120
etags:
 
121
        etags `find . -name '*.[ch]'`
 
122
 
 
123
# DO NOT REMOVE
 
124
docs: $(INCDIR)/*.h