blob: 31873e56c5e40b4be610f43bf44333a2f0f2f250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#
# APR (Apache Portable Runtime) library Makefile.
#
#
# Macros for supporting directories
#
INCDIR=./include
INCDIR1=../include
INCLUDES=-I$(INCDIR) -I$(INCDIR1)
#
# Macros for target determination
#
SUBDIRS=@SUBDIRS@
TARGET_LIB = libapr.la
TARGET_EXPORTS = apr.exports
#
# Rules for building specific targets, starting with 'all' for
# building the entire package.
#
TARGETS = delete-lib $(TARGET_LIB) delete-exports $(TARGET_EXPORTS)
# bring in rules.mk for standard functionality
@INCLUDE_RULES@
CLEAN_TARGETS = $(TARGET_EXPORTS)
DISTCLEAN_TARGETS = config.cache config.log config.status \
include/apr.h include/arch/unix/apr_private.h \
APRVARS libtool build/rules.mk
EXTRACLEAN_TARGETS = configure aclocal.m4 include/arch/unix/apr_private.h.in
SCANDOC_TEMPLATE = -i$(apr_builders)/scandoc_template.pl
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
delete-lib:
@if test -f $(TARGET_LIB); then \
for i in $(SUBDIRS); do objects="$$objects $$i/*.@so_ext@"; done ; \
if test -n "`find $$objects -newer $(TARGET_LIB)`"; then \
echo Found newer objects. Will relink $(TARGET_LIB). ; \
echo $(RM) -f $(TARGET_LIB) ; \
$(RM) -f $(TARGET_LIB) ; \
fi \
fi
install: $(TARGET_LIB)
if [ ! -d $(includedir) ]; then \
./build/mkdir.sh $(includedir); \
fi; \
cp include/*.h $(includedir); \
if [ ! -d $(libdir) ]; then \
./build/mkdir.sh $(libdir); \
fi; \
$(LIBTOOL) --mode=install cp $(TARGET_LIB) $(libdir)
$(TARGET_LIB):
@for i in $(SUBDIRS); do objects="$$objects $$i/*.@so_ext@"; done ; \
$(LINK) @lib_target@
delete-exports:
@if test -f $(TARGET_EXPORTS); then \
headers="`find include/*.h -newer $(TARGET_EXPORTS)`" ; \
if test -n "$$headers"; then \
echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \
echo $(RM) -f $(TARGET_EXPORTS) ; \
$(RM) -f $(TARGET_EXPORTS) ; \
fi \
fi
$(TARGET_EXPORTS):
$(MKEXPORT) include/*.h > $@
docs:
$(SCANDOC) $(SCANDOC_TEMPLATE) -p./docs/ $(INCDIR)/*.h
test: $(TARGET_LIB)
(cd test; make clean; make; \
cd test; \
for prog in `find . -type f -perm +u+x -name "test*" -print`; do \
./$$prog; \
if [ $$? -eq 255 ]; then \
echo "$$prog failed"; \
break; \
fi \
done )
# DO NOT REMOVE
docs: $(INCDIR)/*.h
|