Makefile.in 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. srcdir = @srcdir@
  2. VPATH = @srcdir@
  3. # PROGRAMS includes all test programs built on this platform.
  4. # STDTEST_PORTABLE
  5. # test programs invoked via standard user interface, run on all platforms
  6. # STDTEST_NONPORTABLE
  7. # test programs invoked via standard user interface, not portable
  8. # OTHER_PROGRAMS
  9. # programs such as sendfile, that have to be invoked in a special sequence
  10. # or with special parameters
  11. STDTEST_PORTABLE = \
  12. testlockperf@EXEEXT@ \
  13. testshmproducer@EXEEXT@ \
  14. testshmconsumer@EXEEXT@ \
  15. testmutexscope@EXEEXT@ \
  16. testall@EXEEXT@
  17. OTHER_PROGRAMS = sendfile@EXEEXT@
  18. PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
  19. TARGETS = $(PROGRAMS)
  20. # bring in rules.mk for standard functionality
  21. @INCLUDE_RULES@
  22. LOCAL_LIBS=../lib@APR_LIBNAME@.la
  23. CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
  24. readchild@EXEEXT@ tryread@EXEEXT@ sockchild@EXEEXT@ \
  25. globalmutexchild@EXEEXT@ lfstests/large.bin \
  26. data/test*.txt data/test*.dat
  27. CLEAN_SUBDIRS = internal
  28. INCDIR=../include
  29. INCLUDES=-I$(INCDIR) -I$(srcdir)/../include
  30. # link programs using -no-install to get real executables not
  31. # libtool wrapper scripts which link an executable when first run.
  32. LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
  33. check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
  34. for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
  35. ./$$prog; \
  36. if test $$? = 255; then \
  37. echo "$$prog failed"; \
  38. break; \
  39. fi; \
  40. done
  41. occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
  42. $(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
  43. sockchild@EXEEXT@: sockchild.lo $(LOCAL_LIBS)
  44. $(LINK_PROG) sockchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
  45. readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
  46. $(LINK_PROG) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
  47. globalmutexchild@EXEEXT@: globalmutexchild.lo $(LOCAL_LIBS)
  48. $(LINK_PROG) globalmutexchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
  49. tryread@EXEEXT@: tryread.lo $(LOCAL_LIBS)
  50. $(LINK_PROG) tryread.lo $(LOCAL_LIBS) $(ALL_LIBS)
  51. proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
  52. $(LINK_PROG) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
  53. # FIXME: -prefer-pic is only supported with libtool-1.4+
  54. mod_test.slo: $(srcdir)/mod_test.c
  55. $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
  56. mod_test.la: mod_test.slo $(LOCAL_LIBS)
  57. $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
  58. libmod_test.la: mod_test.slo $(LOCAL_LIBS)
  59. $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(LOCAL_LIBS) $(ALL_LIBS)
  60. testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
  61. $(LINK_PROG) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
  62. sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
  63. $(LINK_PROG) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
  64. testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
  65. $(LINK_PROG) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
  66. testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
  67. $(LINK_PROG) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
  68. testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
  69. $(LINK_PROG) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
  70. testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
  71. $(LINK_PROG) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
  72. TESTS = testutil.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
  73. testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
  74. testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
  75. testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
  76. testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
  77. testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
  78. testenv.lo testprocmutex.lo testrand2.lo testfnmatch.lo \
  79. testatomic.lo testflock.lo testshm.lo testsock.lo testglobalmutex.lo \
  80. teststrnatcmp.lo testfilecopy.lo testtemp.lo testlfs.lo
  81. testall@EXEEXT@: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
  82. readchild@EXEEXT@ abts.lo proc_child@EXEEXT@ \
  83. tryread@EXEEXT@ sockchild@EXEEXT@ globalmutexchild@EXEEXT@ \
  84. $(LOCAL_LIBS)
  85. $(LINK_PROG) $(TESTS) abts.lo $(LOCAL_LIBS) $(ALL_LIBS)
  86. # DO NOT REMOVE