Unlock list mutex before destroying it.
[apr-util.git] / Makefile.in
blob9f78a92b095902de4be51331835a7f3de52aa5b1
2 # Top-level Makefile for APRUTIL
4 CPP = @CPP@
6 # gets substituted into some targets
7 APRUTIL_MAJOR_VERSION=@APRUTIL_MAJOR_VERSION@
8 APRUTIL_DOTTED_VERSION=@APRUTIL_DOTTED_VERSION@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
13 INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
14 APRUTIL_LDFLAGS = @APRUTIL_LDFLAGS@
15 APRUTIL_LIBS = @APRUTIL_LIBS@
17 TARGET_LIB = lib@APRUTIL_LIBNAME@.la
18 INSTALL_SUBDIRS = @APR_ICONV_DIR@ @APR_XML_DIR@
19 EXTRA_SOURCE_DIRS = @APR_ICONV_DIR@ @APR_XML_DIR@
20 APRUTIL_PCFILE = apr-util-$(APRUTIL_MAJOR_VERSION).pc
21 APU_CONFIG = apu-$(APRUTIL_MAJOR_VERSION)-config
22 INSTALL = @INSTALL@
23 INSTALL_DATA = @INSTALL_DATA@
25 APU_MODULES = @APU_MODULES@
26 LINK_MODULE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(APRUTIL_LDFLAGS) -release $(APRUTIL_MAJOR_VERSION) -module -rpath $(APU_DSO_LIBDIR)
27 APU_DSO_LIBDIR = @APU_DSO_LIBDIR@
29 LT_VERSION = @APU_LTVERSION@
31 EXTRA_OBJECTS = @EXTRA_OBJECTS@
33 LDADD_dbd_pgsql = @LDADD_dbd_pgsql@
34 LDADD_dbd_oracle = @LDADD_dbd_oracle@
35 LDADD_dbd_sqlite2 = @LDADD_dbd_sqlite2@
36 LDADD_dbd_sqlite3 = @LDADD_dbd_sqlite3@
37 LDADD_dbd_mysql = @LDADD_dbd_mysql@
38 LDADD_dbd_freetds = @LDADD_dbd_freetds@
39 LDADD_dbd_odbc = @LDADD_dbd_odbc@
40 LDADD_ldap = @LDADD_ldap@
42 TARGETS = $(TARGET_LIB) aprutil.exp apu-config.out $(APU_MODULES)
44 # bring in rules.mk for standard functionality
45 @INCLUDE_RULES@
46 @INCLUDE_OUTPUTS@
48 CLEAN_SUBDIRS = test @APR_ICONV_DIR@ @APR_XML_DIR@
50 CLEAN_TARGETS = exports.c export_vars.c aprutil.exp .make.dirs apu-config.out
51 DISTCLEAN_TARGETS = config.cache config.log config.status libtool \
52 include/private/apu_config.h include/private/apu_private.h \
53 include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h \
54 export_vars.sh $(APU_CONFIG) build/rules.mk include/apu_want.h \
55 apr-util.pc build/pkg/pkginfo
56 EXTRACLEAN_TARGETS = configure aclocal.m4 include/private/apu_config.h.in \
57 exports.c build-outputs.mk \
58 build/apr_common.m4 build/find_apr.m4 build/install.sh \
59 build/config.guess build/config.sub
61 prefix=@prefix@
62 exec_prefix=@exec_prefix@
63 bindir=@bindir@
64 libdir=@libdir@
65 includedir=@includedir@
66 top_srcdir=@abs_srcdir@
67 top_blddir=@abs_builddir@
69 # Create apu-config script suitable for the install tree
70 apu-config.out: $(APU_CONFIG)
71 sed 's,^\(location=\).*$$,\1installed,' < $(APU_CONFIG) > $@
73 install: $(TARGETS) install-modules
74 $(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \
75 $(DESTDIR)$(libdir) $(DESTDIR)$(bindir)
76 for f in $(top_srcdir)/include/*.h $(top_blddir)/include/*.h; do \
77 $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \
78 done
79 $(INSTALL_DATA) apr-util.pc $(DESTDIR)$(libdir)/pkgconfig/$(APRUTIL_PCFILE)
80 list='$(INSTALL_SUBDIRS)'; for i in $$list; do \
81 ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
82 done
83 $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir)
84 $(INSTALL_DATA) aprutil.exp $(DESTDIR)$(libdir)
85 $(INSTALL) -m 755 apu-config.out $(DESTDIR)$(bindir)/$(APU_CONFIG)
87 $(TARGET_LIB): $(OBJECTS) $(EXTRA_OBJECTS)
88 $(LINK) @lib_target@ $(EXTRA_OBJECTS) $(ALL_LIBS) $(APRUTIL_LDFLAGS) $(APRUTIL_LIBS)
90 install-modules: install-modules-@APU_HAVE_MODULES@
92 install-modules-no:
94 install-modules-yes: $(APU_MODULES)
95 $(APR_MKDIR) $(DESTDIR)$(APU_DSO_LIBDIR)
96 @for m in $(APU_MODULES); do $(LIBTOOL) $(LT_LTFLAGS) $(LTFLAGS) --mode=install $(INSTALL) -m 755 $$m $(DESTDIR)$(APU_DSO_LIBDIR); done
98 exports.c: $(HEADERS)
99 $(APR_MKEXPORT) $(HEADERS) > $@
101 export_vars.c: $(HEADERS)
102 $(APR_MKVAREXPORT) $(HEADERS) > $@
104 aprutil.exp: exports.c export_vars.c
105 @echo "#! lib@APRUTIL_LIBNAME@.so" > $@
106 @echo "* This file was AUTOGENERATED at build time." >> $@
107 @echo "* Please do not edit by hand." >> $@
108 $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
109 $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
111 dox:
112 doxygen $(top_srcdir)/docs/doxygen.conf
114 test: check
115 check: $(TARGET_LIB)
116 cd test && $(MAKE) all check
118 .PHONY: install-modules install-modules-yes install-modules-no dox test check