bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / test / Makefile
1 srcdir = .
2
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 \
15         testsock \
16         testlockperf \
17         testatomic \
18         testmutexscope \
19         testall
20
21 STDTEST_NONPORTABLE = \
22         testshm \
23         testglobalmutex
24
25 OTHER_PROGRAMS = client sendfile \
26         server
27
28 PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
29
30 TARGETS = $(PROGRAMS)
31
32 # bring in rules.mk for standard functionality
33 include /bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr/build/apr_rules.mk
34
35 LOCAL_LIBS=../libapr-${APR_MAJOR_VERSION}.la
36
37 CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child occhild \
38 readchild
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: testflock.lo $(LOCAL_LIBS)
53         $(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
54
55 occhild: occhild.lo $(LOCAL_LIBS)
56         $(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
57
58 readchild: readchild.lo $(LOCAL_LIBS)
59         $(LINK) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
60
61 proc_child: 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: testlockperf.lo $(LOCAL_LIBS)
75         $(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
76
77 testsock: testsock.lo client server sendfile $(LOCAL_LIBS)
78         $(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
79
80 client: client.lo $(LOCAL_LIBS)
81         $(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
82
83 server: server.lo $(LOCAL_LIBS)
84         $(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
85
86 sendfile: sendfile.lo $(LOCAL_LIBS)
87         $(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
88
89 testshm: testshm.lo $(LOCAL_LIBS) testshmproducer testshmconsumer
90         $(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
91
92 testshmproducer: testshmproducer.lo $(LOCAL_LIBS)
93         $(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
94
95 testshmconsumer: testshmconsumer.lo $(LOCAL_LIBS)
96         $(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
97
98 testprocmutex: testprocmutex.lo $(LOCAL_LIBS)
99         $(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
100
101 testglobalmutex: testglobalmutex.lo $(LOCAL_LIBS)
102         $(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
103
104 testatomic: testatomic.lo $(LOCAL_LIBS)
105         $(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
106
107 testmutexscope: 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 \
119          readchild CuTest.lo proc_child $(LOCAL_LIBS)
120         $(LINK) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)
121
122
123 # DO NOT REMOVE