]> granicus.if.org Git - apache/blob - server/Makefile.in
f9eb3db07c63f2675ba878e55950296f084cfd8e
[apache] / server / Makefile.in
1
2 TARGET_EXPORTS    = apache.exports
3 CLEAN_TARGETS = gen_test_char test_char.h gen_uri_delims uri_delims.h \
4         $(TARGET_EXPORTS) ApacheCoreOS2.def
5 EXTRACLEAN_TARGETS = exports.c httpd.exp
6
7 SUBDIRS = mpm
8
9 LTLIBRARY_NAME    = libmain.la
10 LTLIBRARY_SOURCES = \
11     test_char.h \
12         config.c log.c main.c vhost.c util.c \
13         util_script.c util_md5.c util_cfgtree.c util_ebcdic.c \
14         rfc1413.c connection.c listen.c \
15         mpm_common.c util_charset.c util_debug.c util_xml.c \
16         util_filter.c exports.c buildmark.c scoreboard.c \
17         error_bucket.c protocol.c core.c request.c
18
19 TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) httpd.exp
20
21 include $(top_srcdir)/build/rules.mk
22 include $(top_srcdir)/build/library.mk
23
24 gen_test_char_OBJECTS = gen_test_char.lo util_debug.lo
25 gen_test_char: $(gen_test_char_OBJECTS)
26         $(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS)
27
28 test_char.h: gen_test_char
29         ./gen_test_char > test_char.h
30
31 util.lo: test_char.h
32
33 EXPORT_FILES = $(top_srcdir)/srclib/apr/apr.exports \
34         $(top_srcdir)/srclib/apr-util/aprutil.exports \
35         $(TARGET_EXPORTS)
36
37 delete-exports:
38         @if test -f $(TARGET_EXPORTS); then \
39                     headers="`find $(top_srcdir)/include/*.h -newer $(TARGET_EXPORTS)`" ; \
40                     if test -n "$$headers"; then \
41                         echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \
42                         echo rm -f $(TARGET_EXPORTS) ; \
43                         rm -f $(TARGET_EXPORTS) ; \
44                     fi \
45         fi
46
47
48 $(TARGET_EXPORTS):
49         $(AWK) -f $(top_srcdir)/srclib/apr/build/make_export.awk \
50                 $(top_srcdir)/include/*.h \
51                 $(top_srcdir)/os/$(OS_DIR)/*.h > $@
52
53 exports.c: $(EXPORT_FILES)
54         (cat $(EXPORT_FILES) | $(top_srcdir)/build/buildexports.sh ..) > $@
55
56 # wtf does this have to be explicit????
57 exports.lo: exports.c
58
59 # Rule to make def file for OS/2 core dll
60 ApacheCoreOS2.def: exports.c $(top_srcdir)/os/$(OS_DIR)/core_header.def
61         cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
62         $(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/  "\1"/' >> $@
63
64 # Rule to make exp file for AIX DSOs
65 httpd.exp: exports.c
66         echo "#! ." > $@
67         $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@