Makefile.in revision 3f1bfc7b542e90e72c712e2aa065bb3b5a611867
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversCLEAN_TARGETS = gen_test_char test_char.h gen_uri_delims uri_delims.h \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers ApacheCoreOS2.def buildmarked.c
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversDISTCLEAN_TARGETS = httpd.exp
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversEXTRACLEAN_TARGETS = export_files exports.c export_vars.h
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversSUBDIRS = mpm
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversLTLIBRARY_NAME = libmain.la
0f59fe5171b5564fc6fb58f3281fbc259c45f7d0Kay SieversLTLIBRARY_SOURCES = \
0f59fe5171b5564fc6fb58f3281fbc259c45f7d0Kay Sievers test_char.h \
0f59fe5171b5564fc6fb58f3281fbc259c45f7d0Kay Sievers config.c log.c main.c vhost.c util.c \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers util_script.c util_md5.c util_cfgtree.c util_ebcdic.c util_time.c \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers connection.c listen.c \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers mpm_common.c util_charset.c util_debug.c util_xml.c \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers util_filter.c exports.c buildmarked.c \
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers scoreboard.c error_bucket.c protocol.c core.c request.c provider.c
1836bf9e1d70240c8079e4db4312309f4f1f91fdLennart Poettering
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversTARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) export_vars.h httpd.exp
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay SieversPHONY_TARGETS = $(srcdir)/buildmark.c
1836bf9e1d70240c8079e4db4312309f4f1f91fdLennart Poettering
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sieversinclude $(top_builddir)/build/rules.mk
ad8bc9ea508740074cead005aa3cfd1ba10a5dacTom Gunderseninclude $(top_srcdir)/build/library.mk
ad8bc9ea508740074cead005aa3cfd1ba10a5dacTom Gundersen
1836bf9e1d70240c8079e4db4312309f4f1f91fdLennart Poetteringbuildmarked.c: $(srcdir)/buildmark.c
ad8bc9ea508740074cead005aa3cfd1ba10a5dacTom Gundersen cp $(srcdir)/buildmark.c $@
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidt
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidtgen_test_char_OBJECTS = gen_test_char.lo util_debug.lo
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidtgen_test_char: $(gen_test_char_OBJECTS)
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers $(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS)
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sievers
8f27a2212ee8d6311c88ef4358953ad0d7bfa851Kay Sieverstest_char.h: gen_test_char
./gen_test_char > test_char.h
util.lo: test_char.h
EXPORT_DIRS = $(top_srcdir)/include $(top_srcdir)/os/$(OS_DIR) $(APR_INCLUDEDIR) $(APU_INCLUDEDIR) $(top_srcdir)/modules/http
# If export_files is a dependency here, but we remove it during this stage,
# when exports.c is generated, make will not detect that export_files is no
# longer here and deadlock. So, export_files can't be a dependency of
# delete-exports.
delete-exports:
@if test -f exports.c; then \
if test -f export_files; then \
files=`cat export_files`; \
headers="`find $$files -newer exports.c`"; \
if test -n "$$headers"; then \
echo Found newer headers. Will rebuild exports.c.; \
echo rm -f exports.c export_files; \
rm -f exports.c export_files; \
fi; \
else \
rm -f exports.c; \
fi; \
fi
export_files:
tmp=export_files_unsorted.txt; \
rm -f $$tmp && touch $$tmp; \
for dir in $(EXPORT_DIRS); do \
ls $$dir/*.h >> $$tmp; \
done; \
sort -u $$tmp > $@; \
rm -f $$tmp
exports.c: export_files
$(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $?` > $@
export_vars.h: export_files
$(AWK) -f $(top_srcdir)/build/make_var_export.awk `cat $?` > $@
# Rule to make def file for OS/2 core dll
ApacheCoreOS2.def: exports.c export_vars.h $(top_srcdir)/os/$(OS_DIR)/core_header.def
cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
$(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/ "\1"/' >> $@
$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep "^[a-z]" | sed -e 's/^\(.*\)$$/ "\1"/' >> $@
# Rule to make exp file for AIX DSOs
httpd.exp: exports.c export_vars.h
@echo "#! ." > $@
@echo "* This file was AUTOGENERATED at build time." >> $@
@echo "* Please do not edit by hand." >> $@
$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | grep -v apr_ | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep -v apr_ | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@