bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / test / Makefile.in
1 srcdir = @srcdir@
2 VPATH = @srcdir@
3
4 # PROGRAMS includes all test programs built on this platform.
5 # STDTEST_PORTABLE
6 #   test programs invoked via standard user interface, run on all platforms
7 # STDTEST_NONPORTABLE
8 #   test programs invoked via standard user interface, not portable
9 # OTHER_PROGRAMS
10 #   programs such as sendfile, that have to be invoked in a special sequence
11 #   or with special parameters
12
13 STDTEST_PORTABLE = \
14         testflock@EXEEXT@ \
15         testsock@EXEEXT@ \
16         testlockperf@EXEEXT@ \
17         testatomic@EXEEXT@ \
18         testmutexscope@EXEEXT@ \
19         testall@EXEEXT@
20
21 STDTEST_NONPORTABLE = \
22         testshm@EXEEXT@ \
23         testglobalmutex@EXEEXT@
24
25 OTHER_PROGRAMS = client@EXEEXT@ sendfile@EXEEXT@ \
26         server@EXEEXT@
27
28 PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
29
30 TARGETS = $(PROGRAMS)
31
32 # bring in rules.mk for standard functionality
33 @INCLUDE_RULES@
34
35 LOCAL_LIBS=../lib@APR_LIBNAME@.la
36
37 CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
38 readchild@EXEEXT@
39
40 INCDIR=../include
41 INCLUDES=-I$(INCDIR)
42
43 check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
44         for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
45                 ./$$prog; \
46                 if test $$? = 255; then \
47                         echo "$$prog failed"; \
48                         break; \
49                 fi; \
50         done
51
52 testflock@EXEEXT@: testflock.lo $(LOCAL_LIBS)
53         $(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
54
55 occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
56         $(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
57
58 readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
59         $(LINK) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
60
61 proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
62         $(LINK) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
63
64 # FIXME: -prefer-pic is only supported with libtool-1.4+
65 mod_test.slo: $(srcdir)/mod_test.c
66         $(LIBTOOL) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
67
68 mod_test.la: mod_test.slo $(LOCAL_LIBS)
69         $(LIBTOOL) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
70
71 libmod_test.la: mod_test.slo $(LOCAL_LIBS)
72         $(LIBTOOL) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
73
74 testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
75         $(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
76
77 testsock@EXEEXT@: testsock.lo client@EXEEXT@ server@EXEEXT@ sendfile@EXEEXT@ $(LOCAL_LIBS)
78         $(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
79
80 client@EXEEXT@: client.lo $(LOCAL_LIBS)
81         $(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
82
83 server@EXEEXT@: server.lo $(LOCAL_LIBS)
84         $(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
85
86 sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
87         $(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
88
89 testshm@EXEEXT@: testshm.lo $(LOCAL_LIBS) testshmproducer@EXEEXT@ testshmconsumer@EXEEXT@
90         $(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
91
92 testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
93         $(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
94
95 testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
96         $(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
97
98 testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
99         $(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
100
101 testglobalmutex@EXEEXT@: testglobalmutex.lo $(LOCAL_LIBS)
102         $(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
103
104 testatomic@EXEEXT@: testatomic.lo $(LOCAL_LIBS)
105         $(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
106
107 testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
108         $(LINK) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
109
110 TESTS = testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
111         testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
112         testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
113         testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
114         testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
115         testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
116         testenv.lo testprocmutex.lo
117
118 testall: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
119          readchild@EXEEXT@ CuTest.lo proc_child@EXEEXT@ $(LOCAL_LIBS)
120         $(LINK) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)
121
122
123 # DO NOT REMOVE