Makefile.in 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. VPATH = @srcdir@
  2. INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
  3. PROGRAMS = testall testdbm testdate testxml testrmm \
  4. testreslist testqueue testxlate dbd
  5. TARGETS = $(PROGRAMS)
  6. APRUTIL_DOTTED_VERSION=@APRUTIL_DOTTED_VERSION@
  7. APRUTIL_MAJOR_VERSION=@APRUTIL_MAJOR_VERSION@
  8. TARGET_LIB_PATH = ../lib@APRUTIL_LIBNAME@.la
  9. CLEAN_TARGETS = manyfile.bin testfile.txt data/sqlite*.db
  10. # bring in rules.mk for standard functionality
  11. @INCLUDE_RULES@
  12. PROGRAM_DEPENDENCIES = @APRUTIL_LIBS@
  13. APRUTIL_LDFLAGS = -no-install @APRUTIL_LDFLAGS@
  14. all: $(PROGRAMS)
  15. check: $(PROGRAMS)
  16. for prog in $(PROGRAMS); do \
  17. ./$$prog ;\
  18. if test $$? = 255; then \
  19. echo "$$prog failed"; \
  20. break; \
  21. fi; \
  22. done
  23. testdbm_OBJECTS = testdbm.lo
  24. testdbm_LDADD = $(TARGET_LIB_PATH)
  25. testdbm: $(testdbm_OBJECTS) $(testdbm_LDADD)
  26. $(LINK) $(APRUTIL_LDFLAGS) $(testdbm_OBJECTS) $(testdbm_LDADD) $(PROGRAM_DEPENDENCIES)
  27. dbd_OBJECTS = dbd.lo
  28. dbd_LDADD = $(TARGET_LIB_PATH)
  29. dbd: $(dbd_OBJECTS) $(dbd_LDADD)
  30. $(LINK) $(APRUTIL_LDFLAGS) $(dbd_OBJECTS) $(dbd_LDADD) $(PROGRAM_DEPENDENCIES)
  31. testdbd_OBJECTS = testdbd.lo
  32. testdbd_LDADD = $(TARGET_LIB_PATH)
  33. testdbd: $(testdbd_OBJECTS) $(testdbd_LDADD)
  34. $(LINK) $(APRUTIL_LDFLAGS) $(testdbd_OBJECTS) $(testdbd_LDADD) $(PROGRAM_DEPENDENCIES)
  35. testdate_OBJECTS = testdate.lo
  36. testdate_LDADD = $(TARGET_LIB_PATH)
  37. testdate: $(testdate_OBJECTS) $(testdate_LDADD)
  38. $(LINK) $(APRUTIL_LDFLAGS) $(testdate_OBJECTS) $(testdate_LDADD) $(PROGRAM_DEPENDENCIES)
  39. testxml_OBJECTS = testxml.lo
  40. testxml_LDADD = $(TARGET_LIB_PATH)
  41. testxml: $(testxml_OBJECTS) $(testxml_LDADD)
  42. $(LINK) $(APRUTIL_LDFLAGS) $(testxml_OBJECTS) $(testxml_LDADD) $(PROGRAM_DEPENDENCIES)
  43. testrmm_OBJECTS = testrmm.lo
  44. testrmm_LDADD = $(TARGET_LIB_PATH)
  45. testrmm: $(testrmm_OBJECTS) $(testrmm_LDADD)
  46. $(LINK) $(APRUTIL_LDFLAGS) $(testrmm_OBJECTS) $(testrmm_LDADD) $(PROGRAM_DEPENDENCIES)
  47. testreslist_OBJECTS = testreslist.lo
  48. testreslist_LDADD = $(TARGET_LIB_PATH)
  49. testreslist: $(testreslist_OBJECTS) $(testreslist_LDADD)
  50. $(LINK) $(APRUTIL_LDFLAGS) $(testreslist_OBJECTS) $(testreslist_LDADD) $(PROGRAM_DEPENDENCIES)
  51. testqueue_OBJECTS = testqueue.lo
  52. testqueue_LDADD = $(TARGET_LIB_PATH)
  53. testqueue: $(testqueue_OBJECTS) $(testqueue_LDADD)
  54. $(LINK) $(APRUTIL_LDFLAGS) $(testqueue_OBJECTS) $(testqueue_LDADD) $(PROGRAM_DEPENDENCIES)
  55. testxlate_OBJECTS = testxlate.lo
  56. testxlate_LDADD = $(TARGET_LIB_PATH)
  57. testxlate: $(testxlate_OBJECTS) $(testxlate_LDADD)
  58. $(LINK) $(APRUTIL_LDFLAGS) $(testxlate_OBJECTS) $(testxlate_LDADD) $(PROGRAM_DEPENDENCIES)
  59. testall_OBJECTS = teststrmatch.lo testuri.lo testuuid.lo abts.lo testutil.lo \
  60. testbuckets.lo testpass.lo testmd4.lo testmd5.lo testldap.lo testdbd.lo
  61. testall_LDADD = $(TARGET_LIB_PATH)
  62. testall: $(testall_OBJECTS) $(testall_LDADD)
  63. $(LINK) $(APRUTIL_LDFLAGS) $(testall_OBJECTS) $(testall_LDADD) $(PROGRAM_DEPENDENCIES)