blob: 5aa02b4b33d6b5a0d6d86c0e68562d2e99a2720a (
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
|
TARGET_EXPORTS = apache.exports
CLEAN_TARGETS = gen_test_char gen_uri_delims test_char.h uri_delims.h \
$(TARGET_EXPORTS) ApacheCoreOS2.def
SUBDIRS = mpm
LTLIBRARY_NAME = libmain.la
LTLIBRARY_SOURCES = \
uri_delims.h test_char.h \
config.c log.c main.c vhost.c util.c util_date.c \
util_script.c util_uri.c util_md5.c util_cfgtree.c util_ebcdic.c \
rfc1413.c connection.c listen.c \
mpm_common.c util_charset.c util_debug.c util_xml.c \
util_filter.c exports.c buildmark.c scoreboard.c \
error_bucket.c protocol.c core.c request.c
targets = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE)
include $(top_srcdir)/build/rules.mk
include $(top_srcdir)/build/library.mk
gen_uri_delims_OBJECTS = gen_uri_delims.lo
gen_uri_delims: $(gen_uri_delims_OBJECTS)
$(LINK) $(EXTRA_LDFLAGS) $(gen_uri_delims_OBJECTS) $(EXTRA_LIBS)
gen_test_char_OBJECTS = gen_test_char.lo util_debug.lo
gen_test_char: $(gen_test_char_OBJECTS)
$(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS)
uri_delims.h: gen_uri_delims
./gen_uri_delims > uri_delims.h
test_char.h: gen_test_char
./gen_test_char > test_char.h
util_uri.lo: uri_delims.h
util.lo: test_char.h
EXPORT_FILES = ../srclib/apr/apr.exports ../srclib/apr-util/aprutil.exports \
$(TARGET_EXPORTS)
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):
$(AWK) -f $(top_srcdir)/srclib/apr/build/make_export.awk \
$(top_srcdir)/include/*.h \
$(top_srcdir)/os/$(OS_DIR)/*.h > $@
exports.c: $(EXPORT_FILES)
(cat $(EXPORT_FILES) | ../build/buildexports.sh ..) > $@
# wtf does this have to be explicit????
exports.lo: exports.c
# Rule to make def file for OS/2 core dll
ApacheCoreOS2.def: exports.c $(top_srcdir)/os/$(OS_DIR)/core_header.def
cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
$(CPP) $< $(COMMON_FLAGS) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/ "\1"/' >> $@
|