srcdir = @srcdir@ VPATH = @srcdir@ NONPORTABLE = \ testshm@EXEEXT@ \ testprocmutex@EXEEXT@ \ testglobalmutex@EXEEXT@ \ testregex@EXEEXT@ PROGRAMS = \ client@EXEEXT@ \ sendfile@EXEEXT@ \ server@EXEEXT@ \ testfile@EXEEXT@ \ testdir@EXEEXT@ \ testnames@EXEEXT@ \ testflock@EXEEXT@ \ testfmt@EXEEXT@ \ testproc@EXEEXT@ \ testsock@EXEEXT@ \ testthread@EXEEXT@ \ testlock@EXEEXT@ \ testlockperf@EXEEXT@ \ testtime@EXEEXT@ \ testargs@EXEEXT@ \ testud@EXEEXT@ \ testmmap@EXEEXT@ \ testshmproducer@EXEEXT@ \ testshmconsumer@EXEEXT@ \ testpipe@EXEEXT@ \ testoc@EXEEXT@ \ testsockopt@EXEEXT@ \ testipsub@EXEEXT@ \ testpoll@EXEEXT@ \ testhash@EXEEXT@ \ occhild@EXEEXT@ \ teststr@EXEEXT@ \ testuser@EXEEXT@ \ testsockets@EXEEXT@ \ testvsn@EXEEXT@ \ testsleep@EXEEXT@ \ testrand@EXEEXT@ \ testdup@EXEEXT@ \ testatomic@EXEEXT@ \ testpools@EXEEXT@ \ testmutexscope@EXEEXT@ \ testtable@EXEEXT@ TARGETS = $(PROGRAMS) $(NONPORTABLE) # bring in rules.mk for standard functionality @INCLUDE_RULES@ LOCAL_LIBS=../lib@APR_LIBNAME@.la CLEAN_TARGETS = testfile.tmp testdso@EXEEXT@ mod_test.slo INCDIR=../include INCLUDES=-I$(INCDIR) all: $(PROGRAMS) $(NONPORTABLE) check: $(PROGRAMS) $(NONPORTABLE) for prog in $(PROGRAMS) $(NONPORTABLE); do \ ./$$prog; \ if test $$i = 255; then \ echo "$$prog failed"; \ break; \ fi \ done testfile@EXEEXT@: testfile.lo $(LOCAL_LIBS) $(LINK) testfile.lo $(LOCAL_LIBS) $(ALL_LIBS) testdir@EXEEXT@: testdir.lo $(LOCAL_LIBS) $(LINK) testdir.lo $(LOCAL_LIBS) $(ALL_LIBS) testnames@EXEEXT@: testnames.lo $(LOCAL_LIBS) $(LINK) testnames.lo $(LOCAL_LIBS) $(ALL_LIBS) testflock@EXEEXT@: testflock.lo $(LOCAL_LIBS) $(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS) testfmt@EXEEXT@: testfmt.lo $(LOCAL_LIBS) $(LINK) testfmt.lo $(LOCAL_LIBS) $(ALL_LIBS) testdso@EXEEXT@: testdso.lo mod_test.la libmod_test.la $(LOCAL_LIBS) $(LINK) testdso.lo $(LOCAL_LIBS) $(ALL_LIBS) testoc@EXEEXT@: testoc.lo occhild@EXEEXT@ $(LOCAL_LIBS) $(LINK) testoc.lo $(LOCAL_LIBS) $(ALL_LIBS) occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS) $(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS) # FIXME: -prefer-pic is only supported with libtool-1.4+ mod_test.slo: mod_test.c $(LIBTOOL) --mode=compile $(COMPILE) -prefer-pic -c $< && touch $@ mod_test.la: mod_test.slo $(LOCAL_LIBS) $(LINK) --mode=link $(COMPILE) -rpath $(shell pwd) -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ libmod_test.la: mod_test.slo $(LOCAL_LIBS) $(LINK) --mode=link $(COMPILE) -rpath $(shell pwd) -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ testargs@EXEEXT@: testargs.lo $(LOCAL_LIBS) $(LINK) testargs.lo $(LOCAL_LIBS) $(ALL_LIBS) testud@EXEEXT@: testud.lo $(LOCAL_LIBS) $(LINK) testud.lo $(LOCAL_LIBS) $(ALL_LIBS) testproc@EXEEXT@: testproc.lo $(LOCAL_LIBS) $(LINK) testproc.lo $(LOCAL_LIBS) $(ALL_LIBS) testthread@EXEEXT@: testthread.lo $(LOCAL_LIBS) $(LINK) testthread.lo $(LOCAL_LIBS) $(ALL_LIBS) testlock@EXEEXT@: testlock.lo $(LOCAL_LIBS) $(LINK) testlock.lo $(LOCAL_LIBS) $(ALL_LIBS) testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS) $(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS) testsock@EXEEXT@: testsock.lo client@EXEEXT@ server@EXEEXT@ sendfile@EXEEXT@ $(LOCAL_LIBS) $(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS) client@EXEEXT@: client.lo $(LOCAL_LIBS) $(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS) server@EXEEXT@: server.lo $(LOCAL_LIBS) $(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS) sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS) $(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS) testtime@EXEEXT@: testtime.lo $(LOCAL_LIBS) $(LINK) testtime.lo $(LOCAL_LIBS) $(ALL_LIBS) testmmap@EXEEXT@: testmmap.lo $(LOCAL_LIBS) $(LINK) testmmap.lo $(LOCAL_LIBS) $(ALL_LIBS) testshm@EXEEXT@: testshm.lo $(LOCAL_LIBS) testshmproducer@EXEEXT@ testshmconsumer@EXEEXT@ $(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS) testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS) $(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS) testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS) $(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS) testpipe@EXEEXT@: testpipe.lo $(LOCAL_LIBS) $(LINK) testpipe.lo $(LOCAL_LIBS) $(ALL_LIBS) testsockopt@EXEEXT@: testsockopt.lo $(LOCAL_LIBS) $(LINK) testsockopt.lo $(LOCAL_LIBS) $(ALL_LIBS) testipsub@EXEEXT@: testipsub.lo $(LOCAL_LIBS) $(LINK) testipsub.lo $(LOCAL_LIBS) $(ALL_LIBS) testpoll@EXEEXT@: testpoll.lo $(LOCAL_LIBS) $(LINK) testpoll.lo $(LOCAL_LIBS) $(ALL_LIBS) testhash@EXEEXT@: testhash.lo $(LOCAL_LIBS) $(LINK) testhash.lo $(LOCAL_LIBS) $(ALL_LIBS) teststr@EXEEXT@: teststr.lo $(LOCAL_LIBS) $(LINK) teststr.lo $(LOCAL_LIBS) $(ALL_LIBS) testsockets@EXEEXT@: testsockets.lo $(LOCAL_LIBS) $(LINK) testsockets.lo $(LOCAL_LIBS) $(ALL_LIBS) testuser@EXEEXT@: testuser.lo $(LOCAL_LIBS) $(LINK) testuser.lo $(LOCAL_LIBS) $(ALL_LIBS) testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS) $(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS) testglobalmutex@EXEEXT@: testglobalmutex.lo $(LOCAL_LIBS) $(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS) testvsn@EXEEXT@: testvsn.lo $(LOCAL_LIBS) $(LINK) testvsn.lo $(LOCAL_LIBS) $(ALL_LIBS) testsleep@EXEEXT@: testsleep.lo $(LOCAL_LIBS) $(LINK) testsleep.lo $(LOCAL_LIBS) $(ALL_LIBS) testatomic@EXEEXT@: testatomic.lo $(LOCAL_LIBS) $(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS) testregex@EXEEXT@: testregex.lo $(LOCAL_LIBS) $(LINK) testregex.lo $(LOCAL_LIBS) $(ALL_LIBS) testdup@EXEEXT@: testdup.lo $(LOCAL_LIBS) $(LINK) testdup.lo $(LOCAL_LIBS) $(ALL_LIBS) testrand@EXEEXT@: testrand.lo $(LOCAL_LIBS) $(LINK) testrand.lo $(LOCAL_LIBS) $(ALL_LIBS) testpools@EXEEXT@: testpools.lo $(LOCAL_LIBS) $(LINK) testpools.lo $(LOCAL_LIBS) $(ALL_LIBS) testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS) $(LINK) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS) testtable@EXEEXT@: testtable.lo $(LOCAL_LIBS) $(LINK) testtable.lo $(LOCAL_LIBS) $(ALL_LIBS) # DO NOT REMOVE