# # Top-level Makefile for APRUTIL # CPP = gcc -E # gets substituted into some targets APRUTIL_MAJOR_VERSION=1 APRUTIL_DOTTED_VERSION=1.2.2 srcdir = /users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util VPATH = /users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util INCLUDES = -I/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util/include -I/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util/include/private -I/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr/include APRUTIL_LDFLAGS = APRUTIL_LIBS = -lgdbm -ldb-4.1 /usr/lib/libexpat.la /users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl TARGET_LIB = libaprutil-${APRUTIL_MAJOR_VERSION}.la INSTALL_SUBDIRS = EXTRA_SOURCE_DIRS = APRUTIL_PCFILE = apr-util-$(APRUTIL_MAJOR_VERSION).pc APU_CONFIG = apu-$(APRUTIL_MAJOR_VERSION)-config INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 TARGETS = $(TARGET_LIB) aprutil.exp # bring in rules.mk for standard functionality include /users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util/build/rules.mk include /users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util/build-outputs.mk CLEAN_SUBDIRS = test CLEAN_TARGETS = exports.c export_vars.c aprutil.exp .make.dirs apu-config.out DISTCLEAN_TARGETS = config.cache config.log config.status libtool \ include/private/apu_config.h include/private/apu_private.h \ include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h \ export_vars.sh $(APU_CONFIG) build/rules.mk include/apu_want.h \ apr-util.pc build/pkg/pkginfo EXTRACLEAN_TARGETS = configure aclocal.m4 include/private/apu_config.h.in \ exports.c build-outputs.mk \ build/apr_common.m4 build/find_apr.m4 build/install.sh \ build/config.guess build/config.sub prefix=/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0 exec_prefix=/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0 bindir=${prefix}/bin libdir=${prefix}/lib includedir=/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/include top_srcdir=/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util top_blddir=/users/server/students/cs526/public_html/apache2.2/httpd-2.2.0/srclib/apr-util # Create apu-config script suitable for the install tree apu-config.out: $(APU_CONFIG) sed 's,^\(location=\).*$$,\1installed,' < $(APU_CONFIG) > $@ install: $(TARGET_LIB) apu-config.out $(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \ $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) for f in $(top_srcdir)/include/*.h $(top_blddir)/include/*.h; do \ $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \ done $(INSTALL_DATA) apr-util.pc $(DESTDIR)$(libdir)/pkgconfig/$(APRUTIL_PCFILE) list='$(INSTALL_SUBDIRS)'; for i in $$list; do \ ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \ done $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir) $(INSTALL_DATA) aprutil.exp $(DESTDIR)$(libdir) $(INSTALL) -m 755 apu-config.out $(DESTDIR)$(bindir)/$(APU_CONFIG) $(TARGET_LIB): $(OBJECTS) $(LINK) -rpath $(libdir) $(OBJECTS) $(ALL_LIBS) $(APRUTIL_LDFLAGS) $(APRUTIL_LIBS) exports.c: $(HEADERS) $(APR_MKEXPORT) $(HEADERS) > $@ export_vars.c: $(HEADERS) $(APR_MKVAREXPORT) $(HEADERS) > $@ aprutil.exp: exports.c export_vars.c @echo "#! libaprutil-${APRUTIL_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 test: check check: $(TARGET_LIB) cd test && $(MAKE) check