1
by Tollef Fog Heen
Import upstream version 1.2.7 |
1 |
srcdir=@srcdir@ |
2 |
VPATH=@srcdir@ |
|
3 |
top_srcdir=@apr_srcdir@ |
|
4 |
top_blddir=@apr_builddir@ |
|
5 |
||
6 |
#
|
|
7 |
# APR (Apache Portable Runtime) library Makefile.
|
|
8 |
#
|
|
9 |
CPP = @CPP@ |
|
10 |
||
11 |
# get substituted into some targets
|
|
12 |
APR_MAJOR_VERSION=@APR_MAJOR_VERSION@ |
|
13 |
||
14 |
#
|
|
15 |
# Macros for supporting directories
|
|
16 |
#
|
|
17 |
INCDIR=./include |
|
18 |
OSDIR=$(top_srcdir)/include/arch/@OSDIR@ |
|
19 |
DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ |
|
20 |
INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include/arch/@DEFAULT_OSDIR@ -I$(top_srcdir)/include -I$(top_srcdir)/include/private -I$(top_blddir)/include/private |
|
27
by Stefan Fritsch
* New upstream version |
21 |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
22 |
#
|
23 |
# Macros for target determination
|
|
24 |
#
|
|
25 |
CLEAN_SUBDIRS= test |
|
26 |
INSTALL_SUBDIRS=@INSTALL_SUBDIRS@ |
|
27 |
||
28 |
TARGET_LIB = lib@APR_LIBNAME@.la |
|
29 |
APR_PCFILE = apr-$(APR_MAJOR_VERSION).pc |
|
30 |
APR_CONFIG = apr-$(APR_MAJOR_VERSION)-config |
|
31 |
INSTALL = @INSTALL@ |
|
32 |
INSTALL_DATA = @INSTALL_DATA@ |
|
33 |
||
34 |
#
|
|
35 |
# Rules for building specific targets, starting with 'all' for
|
|
36 |
# building the entire package.
|
|
37 |
#
|
|
38 |
TARGETS = $(TARGET_LIB) include/private/apr_escape_test_char.h apr.exp apr-config.out build/apr_rules.out |
|
1.1.13
by Stefan Fritsch
Import upstream version 1.5.0 |
39 |
|
1.1.3
by Stefan Fritsch
Import upstream version 1.3.3 |
40 |
LT_VERSION = @LT_VERSION@ |
41 |
||
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
42 |
# bring in rules.mk for standard functionality
|
43 |
@INCLUDE_RULES@
|
|
44 |
@INCLUDE_OUTPUTS@
|
|
45 |
||
46 |
CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \ |
|
47 |
build/apr_rules.out tools/gen_test_char@EXEEXT@ \
|
|
1.1.13
by Stefan Fritsch
Import upstream version 1.5.0 |
48 |
tools/gen_test_char.o tools/gen_test_char.lo \
|
49 |
include/private/apr_escape_test_char.h |
|
50 |
DISTCLEAN_TARGETS = config.cache config.log config.status \ |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
51 |
include/apr.h include/arch/unix/apr_private.h \
|
52 |
libtool $(APR_CONFIG) build/apr_rules.mk apr.pc \ |
|
53 |
build/pkg/pkginfo |
|
54 |
EXTRACLEAN_TARGETS = configure aclocal.m4 include/arch/unix/apr_private.h.in \ |
|
55 |
build-outputs.mk build/ltcf-c.sh build/aclocal.m4 \
|
|
1.1.11
by Stefan Fritsch
Import upstream version 1.4.6 |
56 |
build/ltconfig build/ltmain.sh \
|
57 |
build/argz.m4 build/libtool.m4 build/ltoptions.m4 \
|
|
58 |
build/ltsugar.m4 build/ltversion.m4 build/lt~obsolete.m4 |
|
59 |
||
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
60 |
prefix=@prefix@ |
61 |
exec_prefix=@exec_prefix@ |
|
62 |
bindir=@bindir@ |
|
63 |
libdir=@libdir@ |
|
64 |
includedir=@includedir@ |
|
65 |
installbuilddir=@installbuilddir@ |
|
66 |
||
67 |
# Create apr-config script suitable for the install tree
|
|
68 |
apr-config.out: $(APR_CONFIG) |
|
69 |
sed 's,^\(location=\).*$$,\1installed,' < $(APR_CONFIG) > $@ |
|
70 |
||
71 |
# Create apr_rules.mk suitable for the install tree
|
|
72 |
build/apr_rules.out: build/apr_rules.mk |
|
73 |
sed -e 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' -e 's,^\(top_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@ |
|
1.1.10
by Stefan Fritsch
Import upstream version 1.4.5 |
74 |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
75 |
install: $(TARGETS) |
1.1.3
by Stefan Fritsch
Import upstream version 1.3.3 |
76 |
$(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(installbuilddir) \ |
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
77 |
$(DESTDIR)$(libdir)/pkgconfig $(DESTDIR)$(includedir) |
78 |
$(INSTALL_DATA) $(top_blddir)/include/apr.h $(DESTDIR)$(includedir) |
|
79 |
for f in $(top_srcdir)/include/apr_*.h; do \ |
|
80 |
$(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \ |
|
81 |
done
|
|
82 |
$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir) |
|
83 |
$(INSTALL_DATA) apr.exp $(DESTDIR)$(libdir)/apr.exp |
|
84 |
$(INSTALL_DATA) apr.pc $(DESTDIR)$(libdir)/pkgconfig/$(APR_PCFILE) |
|
85 |
for f in libtool shlibtool; do \ |
|
86 |
if test -f $${f}; then $(INSTALL) -m 755 $${f} $(DESTDIR)$(installbuilddir); fi; \
|
|
87 |
done
|
|
88 |
$(INSTALL) -m 755 $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir) |
|
89 |
for f in make_exports.awk make_var_export.awk; do \ |
|
90 |
$(INSTALL_DATA) $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \ |
|
91 |
done
|
|
92 |
$(INSTALL_DATA) build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk |
|
93 |
$(INSTALL) -m 755 apr-config.out $(DESTDIR)$(bindir)/$(APR_CONFIG) |
|
94 |
||
21
by Stefan Fritsch
* Enable use of some new APIs. The minimal required linux kernel version is |
95 |
if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \
|
96 |
$(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \
|
|
97 |
fi
|
|
98 |
for file in find_apr.m4 apr_common.m4 install.sh gen-build.py get-version.sh ; do \ |
|
99 |
$(LIBTOOL) --mode=install cp $(top_srcdir)/build/$$file \ |
|
100 |
$(DESTDIR)$(installbuilddir)/$$file ; \ |
|
101 |
done
|
|
102 |
||
103 |
@if [ $(INSTALL_SUBDIRS) != "none" ]; then \ |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
104 |
for i in $(INSTALL_SUBDIRS); do \ |
105 |
( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \ |
|
106 |
done \ |
|
107 |
fi
|
|
108 |
||
109 |
$(TARGET_LIB): $(OBJECTS) |
|
110 |
$(LINK) @lib_target@ $(ALL_LIBS) |
|
111 |
||
112 |
encoding/apr_escape.lo: include/private/apr_escape_test_char.h |
|
1.1.13
by Stefan Fritsch
Import upstream version 1.5.0 |
113 |
|
114 |
exports.c: $(HEADERS) |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
115 |
$(APR_MKEXPORT) $(HEADERS) > $@ |
116 |
||
117 |
export_vars.c: $(HEADERS) |
|
118 |
$(APR_MKVAREXPORT) $(HEADERS) > $@ |
|
119 |
||
120 |
apr.exp: exports.c export_vars.c |
|
121 |
@echo "#! lib@APR_LIBNAME@.so" > $@ |
|
122 |
@echo "* This file was AUTOGENERATED at build time." >> $@ |
|
123 |
@echo "* Please do not edit by hand." >> $@ |
|
124 |
$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@ |
|
125 |
$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@ |
|
126 |
||
127 |
dox: |
|
128 |
doxygen $(top_srcdir)/docs/doxygen.conf |
|
129 |
||
130 |
gcov: |
|
131 |
@build/run-gcov.sh |
|
132 |
||
133 |
test: check |
|
134 |
check: $(TARGET_LIB) |
|
135 |
cd test && $(MAKE) all check |
|
1.1.8
by Stefan Fritsch
Import upstream version 1.4.2 |
136 |
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
137 |
etags: |
138 |
etags `find . -name '*.[ch]'` |
|
139 |
||
140 |
OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS) |
|
29
by Stefan Fritsch
* Backport build fix from upstream SVN to avoid building some parts |
141 |
tools/gen_test_char.lo: tools/gen_test_char.c |
142 |
$(APR_MKDIR) tools |
|
1.1.14
by Stefan Fritsch
Import upstream version 1.5.1 |
143 |
$(LT_COMPILE) |
29
by Stefan Fritsch
* Backport build fix from upstream SVN to avoid building some parts |
144 |
|
1.1.14
by Stefan Fritsch
Import upstream version 1.5.1 |
145 |
tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char) |
1.1.13
by Stefan Fritsch
Import upstream version 1.5.0 |
146 |
$(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS) |
147 |
||
148 |
include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@ |
|
149 |
$(APR_MKDIR) include/private |
|
27
by Stefan Fritsch
* New upstream version |
150 |
tools/gen_test_char@EXEEXT@ > $@
|
1.1.13
by Stefan Fritsch
Import upstream version 1.5.0 |
151 |
|
152 |
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \ |
|
153 |
@LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@ |
|
154 |
||
155 |
# DO NOT REMOVE
|
|
1
by Tollef Fog Heen
Import upstream version 1.2.7 |
156 |
docs: $(INCDIR)/*.h |
157 |