2
0

Makefile.in 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # Top-level Makefile for APRUTIL
  3. #
  4. CPP = @CPP@
  5. # gets substituted into some targets
  6. APRUTIL_MAJOR_VERSION=@APRUTIL_MAJOR_VERSION@
  7. APRUTIL_DOTTED_VERSION=@APRUTIL_DOTTED_VERSION@
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10. INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
  11. APRUTIL_LDFLAGS = @APRUTIL_LDFLAGS@
  12. APRUTIL_LIBS = @APRUTIL_LIBS@
  13. TARGET_LIB = lib@APRUTIL_LIBNAME@.la
  14. INSTALL_SUBDIRS = @APR_ICONV_DIR@ @APR_XML_DIR@
  15. EXTRA_SOURCE_DIRS = @APR_ICONV_DIR@ @APR_XML_DIR@
  16. APRUTIL_PCFILE = apr-util-$(APRUTIL_MAJOR_VERSION).pc
  17. APU_CONFIG = apu-$(APRUTIL_MAJOR_VERSION)-config
  18. INSTALL = @INSTALL@
  19. INSTALL_DATA = @INSTALL_DATA@
  20. TARGETS = $(TARGET_LIB) aprutil.exp
  21. # bring in rules.mk for standard functionality
  22. @INCLUDE_RULES@
  23. @INCLUDE_OUTPUTS@
  24. CLEAN_SUBDIRS = test @APR_ICONV_DIR@
  25. CLEAN_TARGETS = exports.c export_vars.c aprutil.exp .make.dirs apu-config.out
  26. DISTCLEAN_TARGETS = config.cache config.log config.status libtool \
  27. include/private/apu_config.h include/private/apu_private.h \
  28. include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h \
  29. export_vars.sh $(APU_CONFIG) build/rules.mk include/apu_want.h \
  30. apr-util.pc build/pkg/pkginfo
  31. EXTRACLEAN_TARGETS = configure aclocal.m4 include/private/apu_config.h.in \
  32. exports.c build-outputs.mk \
  33. build/apr_common.m4 build/find_apr.m4 build/install.sh \
  34. build/config.guess build/config.sub
  35. prefix=@prefix@
  36. exec_prefix=@exec_prefix@
  37. bindir=@bindir@
  38. libdir=@libdir@
  39. includedir=@includedir@
  40. top_srcdir=@abs_srcdir@
  41. top_blddir=@abs_builddir@
  42. # Create apu-config script suitable for the install tree
  43. apu-config.out: $(APU_CONFIG)
  44. sed 's,^\(location=\).*$$,\1installed,' < $(APU_CONFIG) > $@
  45. install: $(TARGET_LIB) apu-config.out
  46. $(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \
  47. $(DESTDIR)$(libdir) $(DESTDIR)$(bindir)
  48. for f in $(top_srcdir)/include/*.h $(top_blddir)/include/*.h; do \
  49. $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \
  50. done
  51. $(INSTALL_DATA) apr-util.pc $(DESTDIR)$(libdir)/pkgconfig/$(APRUTIL_PCFILE)
  52. list='$(INSTALL_SUBDIRS)'; for i in $$list; do \
  53. ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
  54. done
  55. $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir)
  56. $(INSTALL_DATA) aprutil.exp $(DESTDIR)$(libdir)
  57. $(INSTALL) -m 755 apu-config.out $(DESTDIR)$(bindir)/$(APU_CONFIG)
  58. $(TARGET_LIB): $(OBJECTS)
  59. $(LINK) @lib_target@ $(ALL_LIBS) $(APRUTIL_LDFLAGS) $(APRUTIL_LIBS)
  60. exports.c: $(HEADERS)
  61. $(APR_MKEXPORT) $(HEADERS) > $@
  62. export_vars.c: $(HEADERS)
  63. $(APR_MKVAREXPORT) $(HEADERS) > $@
  64. aprutil.exp: exports.c export_vars.c
  65. @echo "#! lib@APRUTIL_LIBNAME@.so" > $@
  66. @echo "* This file was AUTOGENERATED at build time." >> $@
  67. @echo "* Please do not edit by hand." >> $@
  68. $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
  69. $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
  70. dox:
  71. doxygen $(top_srcdir)/docs/doxygen.conf
  72. test: check
  73. check: $(TARGET_LIB)
  74. cd test && $(MAKE) check