summaryrefslogtreecommitdiffstats
path: root/rubbos/app/httpd-2.0.64/srclib/apr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rubbos/app/httpd-2.0.64/srclib/apr/Makefile')
-rw-r--r--rubbos/app/httpd-2.0.64/srclib/apr/Makefile149
1 files changed, 149 insertions, 0 deletions
diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/Makefile b/rubbos/app/httpd-2.0.64/srclib/apr/Makefile
new file mode 100644
index 00000000..ad3c4319
--- /dev/null
+++ b/rubbos/app/httpd-2.0.64/srclib/apr/Makefile
@@ -0,0 +1,149 @@
+#
+# APR (Apache Portable Runtime) library Makefile.
+#
+CPP = gcc -E
+
+# get substituted into some targets
+APR_MAJOR_VERSION=0
+
+#
+# Macros for supporting directories
+#
+INCDIR=./include
+INCDIR1=../include
+INCLUDES=-I$(INCDIR) -I$(INCDIR1)
+
+#
+# Macros for target determination
+#
+SUBDIRS=strings passwd tables file_io/unix network_io/unix threadproc/unix misc/unix locks/unix time/unix mmap/unix shmem/unix user/unix memory/unix atomic/unix poll/unix support/unix dso/unix
+CLEAN_SUBDIRS= . test build
+INSTALL_SUBDIRS=none
+
+TARGET_LIB = libapr-${APR_MAJOR_VERSION}.la
+
+#
+# Rules for building specific targets, starting with 'all' for
+# building the entire package.
+#
+TARGETS = delete-lib $(TARGET_LIB) delete-exports export_vars.c apr.exp
+
+# bring in rules.mk for standard functionality
+include /bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr/build/apr_rules.mk
+
+CLEAN_TARGETS = apr.exp exports.c export_vars.c apr-config.out \
+ build/apr_rules.out
+DISTCLEAN_TARGETS = config.cache config.log config.status \
+ include/apr.h include/arch/unix/apr_private.h \
+ libtool apr-config
+EXTRACLEAN_TARGETS = configure aclocal.m4 include/arch/unix/apr_private.h.in
+
+prefix=/bottlenecks/rubbos/app/apache2
+exec_prefix=/bottlenecks/rubbos/app/apache2
+bindir=${prefix}/bin
+libdir=${prefix}/lib
+includedir=/bottlenecks/rubbos/app/apache2/include
+installbuilddir=${prefix}/build
+srcdir=.
+
+top_srcdir=/bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr
+top_blddir=/bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr
+
+EXPORT_FILES = $(top_srcdir)/include/*.h
+
+delete-lib:
+ @if test -f $(TARGET_LIB); then \
+ for i in $(SUBDIRS); do objects="$$objects $$i/*.lo"; 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
+
+# Create apr-config script suitable for the install tree
+apr-config.out: apr-config
+ sed 's,^\(location=\).*$$,\1installed,' < apr-config > $@
+
+# Create apr_rules.mk suitable for the install tree
+build/apr_rules.out: build/apr_rules.mk
+ sed 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
+
+install: $(TARGET_LIB) apr-config.out build/apr_rules.out
+ if [ ! -d $(DESTDIR)$(includedir) ]; then \
+ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(includedir); \
+ fi;
+ cp -p $(top_srcdir)/include/*.h $(DESTDIR)$(includedir);
+
+ if test -n "$(top_blddir)"; then \
+ cp -p $(top_blddir)/include/*.h $(DESTDIR)$(includedir); \
+ fi;
+ if [ ! -d $(DESTDIR)$(libdir) ]; then \
+ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(libdir); \
+ fi;
+ $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(DESTDIR)$(libdir)
+ $(LIBTOOL) --mode=install cp apr.exp $(DESTDIR)$(libdir)
+ if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \
+ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \
+ fi;
+ if [ -f libtool ]; then \
+ $(LIBTOOL) --mode=install cp libtool $(DESTDIR)$(installbuilddir); \
+ fi;
+ if [ -f shlibtool ]; then \
+ $(LIBTOOL) --mode=install cp shlibtool $(DESTDIR)$(installbuilddir); \
+ fi;
+ for f in mkdir.sh make_exports.awk make_var_export.awk; do \
+ cp $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \
+ done
+ cp build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk
+ if [ ! -d $(DESTDIR)$(bindir) ]; then \
+ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(bindir); \
+ fi;
+ $(LIBTOOL) --mode=install cp apr-config.out $(DESTDIR)$(bindir)/apr-config
+ chmod 755 $(DESTDIR)$(bindir)/apr-config
+ @if [ $(INSTALL_SUBDIRS) != "none" ]; then \
+ for i in $(INSTALL_SUBDIRS); do \
+ ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
+ done \
+ fi
+
+$(TARGET_LIB):
+ @for i in $(SUBDIRS); do objects="$$objects $$i/*.lo"; done ; \
+ tmpcmd="$(LINK) -rpath $(libdir) $$objects $(ALL_LIBS)"; \
+ echo $$tmpcmd; \
+ $$tmpcmd && touch $@
+
+delete-exports:
+ @if test -f apr.exp; then \
+ headers="`find include/*.h -newer apr.exp`" ; \
+ if test -n "$$headers"; then \
+ echo Found newer headers. Will rebuild apr.exp. ; \
+ echo $(RM) -f apr.exp exports.c export_vars.h ; \
+ $(RM) -f apr.exp exports.c export_vars.h ; \
+ fi \
+ fi
+
+exports.c:
+ $(APR_MKEXPORT) $(EXPORT_FILES) > $@
+
+export_vars.c:
+ $(APR_MKVAREXPORT) $(EXPORT_FILES) > $@
+
+apr.exp: exports.c export_vars.c
+ @echo "#! libapr-${APR_MAJOR_VERSION}.so" > $@
+ @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_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
+ $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
+
+dox:
+ doxygen $(top_srcdir)/docs/doxygen.conf
+
+check: $(TARGET_LIB)
+ (cd test && $(MAKE) check)
+
+# DO NOT REMOVE
+docs: $(INCDIR)/*.h
+
+.PHONY: delete-lib delete-exports
+.NOTPARALLEL: delete-lib delete-exports