Makefile.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. srcdir=@srcdir@
  2. VPATH=@srcdir@
  3. top_srcdir=@apr_srcdir@
  4. top_blddir=@apr_builddir@
  5. #
  6. # APR (Apache Portable Runtime) library Makefile.
  7. #
  8. CPP = @CPP@
  9. # get substituted into some targets
  10. APR_MAJOR_VERSION=@APR_MAJOR_VERSION@
  11. #
  12. # Macros for supporting directories
  13. #
  14. INCDIR=./include
  15. OSDIR=$(top_srcdir)/include/arch/@OSDIR@
  16. DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@
  17. INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include
  18. #
  19. # Macros for target determination
  20. #
  21. CLEAN_SUBDIRS= test
  22. INSTALL_SUBDIRS=@INSTALL_SUBDIRS@
  23. TARGET_LIB = lib@APR_LIBNAME@.la
  24. APR_PCFILE = apr-$(APR_MAJOR_VERSION).pc
  25. APR_CONFIG = apr-$(APR_MAJOR_VERSION)-config
  26. INSTALL = @INSTALL@
  27. INSTALL_DATA = @INSTALL_DATA@
  28. #
  29. # Rules for building specific targets, starting with 'all' for
  30. # building the entire package.
  31. #
  32. TARGETS = $(TARGET_LIB) export_vars.c apr.exp
  33. # bring in rules.mk for standard functionality
  34. @INCLUDE_RULES@
  35. @INCLUDE_OUTPUTS@
  36. CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
  37. build/apr_rules.out
  38. DISTCLEAN_TARGETS = config.cache config.log config.status \
  39. include/fspr.h include/arch/unix/apr_private.h \
  40. libtool $(APR_CONFIG) build/apr_rules.mk apr.pc \
  41. build/pkg/pkginfo
  42. EXTRACLEAN_TARGETS = configure aclocal.m4 include/arch/unix/apr_private.h.in \
  43. build-outputs.mk build/ltcf-c.sh build/ltmain.sh build/libtool.m4
  44. prefix=@prefix@
  45. exec_prefix=@exec_prefix@
  46. bindir=@bindir@
  47. libdir=@libdir@
  48. includedir=@includedir@
  49. installbuilddir=@installbuilddir@
  50. # Create apr-config script suitable for the install tree
  51. apr-config.out: $(APR_CONFIG)
  52. sed 's,^\(location=\).*$$,\1installed,' < $(APR_CONFIG) > $@
  53. # Create apr_rules.mk suitable for the install tree
  54. build/apr_rules.out: build/apr_rules.mk
  55. sed 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
  56. .PRECIOUS: Makefile
  57. Makefile: $(srcdir)/Makefile.in $(top_blddir)/config.status
  58. cd $(srcdir) && ./config.status
  59. $(top_blddir)/config.status: $(top_srcdir)/configure
  60. $(SHELL) ./config.status --recheck
  61. $(top_srcdir)/configure: $(top_srcdir)/configure.ac
  62. cd $(srcdir) && autoconf
  63. cd $(srcdir) && autoheader
  64. install: $(TARGET_LIB) apr-config.out build/apr_rules.out
  65. $(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(installbuilddir) \
  66. $(DESTDIR)$(libdir)/pkgconfig $(DESTDIR)$(includedir)
  67. $(INSTALL_DATA) $(top_blddir)/include/fspr.h $(DESTDIR)$(includedir)
  68. for f in $(top_srcdir)/include/apr_*.h; do \
  69. $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \
  70. done
  71. $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir)
  72. $(INSTALL_DATA) apr.exp $(DESTDIR)$(libdir)/apr.exp
  73. $(INSTALL_DATA) apr.pc $(DESTDIR)$(libdir)/pkgconfig/$(APR_PCFILE)
  74. for f in libtool shlibtool; do \
  75. if test -f $${f}; then $(INSTALL) -m 755 $${f} $(DESTDIR)$(installbuilddir); fi; \
  76. done
  77. $(INSTALL) -m 755 $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir)
  78. for f in make_exports.awk make_var_export.awk; do \
  79. $(INSTALL_DATA) $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \
  80. done
  81. $(INSTALL_DATA) build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk
  82. $(INSTALL) -m 755 apr-config.out $(DESTDIR)$(bindir)/$(APR_CONFIG)
  83. @if [ $(INSTALL_SUBDIRS) != "none" ]; then \
  84. for i in $(INSTALL_SUBDIRS); do \
  85. ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
  86. done \
  87. fi
  88. $(TARGET_LIB): $(OBJECTS)
  89. $(LINK) @lib_target@ $(ALL_LIBS)
  90. exports.c: $(HEADERS)
  91. $(APR_MKEXPORT) $(HEADERS) > $@
  92. export_vars.c: $(HEADERS)
  93. $(APR_MKVAREXPORT) $(HEADERS) > $@
  94. apr.exp: exports.c export_vars.c
  95. @echo "#! lib@APR_LIBNAME@.so" > $@
  96. @echo "* This file was AUTOGENERATED at build time." >> $@
  97. @echo "* Please do not edit by hand." >> $@
  98. $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
  99. $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
  100. dox:
  101. doxygen $(top_srcdir)/docs/doxygen.conf
  102. gcov:
  103. @build/run-gcov.sh
  104. test: check
  105. check: $(TARGET_LIB)
  106. (cd test && $(MAKE) check)
  107. etags:
  108. etags `find . -name '*.[ch]'`
  109. # DO NOT REMOVE
  110. docs: $(INCDIR)/*.h