~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/test/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        testlockperf@EXEEXT@ \
 
15
        testshmproducer@EXEEXT@ \
 
16
        testshmconsumer@EXEEXT@ \
 
17
        testmutexscope@EXEEXT@ \
 
18
        testall@EXEEXT@
 
19
 
 
20
OTHER_PROGRAMS = sendfile@EXEEXT@ 
 
21
 
 
22
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
 
23
 
 
24
TARGETS = $(PROGRAMS)
 
25
 
 
26
# bring in rules.mk for standard functionality
 
27
@INCLUDE_RULES@
 
28
 
 
29
LOCAL_LIBS=../lib@APR_LIBNAME@.la
 
30
 
 
31
CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
 
32
        readchild@EXEEXT@ tryread@EXEEXT@ sockchild@EXEEXT@ \
 
33
        globalmutexchild@EXEEXT@ lfstests/large.bin \
 
34
        data/test*.txt data/test*.dat
 
35
CLEAN_SUBDIRS = internal
 
36
 
 
37
INCDIR=../include
 
38
INCLUDES=-I$(INCDIR) -I$(srcdir)/../include
 
39
 
 
40
# link programs using -no-install to get real executables not
 
41
# libtool wrapper scripts which link an executable when first run.
 
42
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
 
43
 
 
44
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
 
45
        for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
 
46
                ./$$prog; \
 
47
                if test $$? = 255; then \
 
48
                        echo "$$prog failed"; \
 
49
                        break; \
 
50
                fi; \
 
51
        done
 
52
 
 
53
occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
 
54
        $(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
55
 
 
56
sockchild@EXEEXT@: sockchild.lo $(LOCAL_LIBS)
 
57
        $(LINK_PROG) sockchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
58
 
 
59
readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
 
60
        $(LINK_PROG) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
61
 
 
62
globalmutexchild@EXEEXT@: globalmutexchild.lo $(LOCAL_LIBS)
 
63
        $(LINK_PROG) globalmutexchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
64
 
 
65
tryread@EXEEXT@: tryread.lo $(LOCAL_LIBS)
 
66
        $(LINK_PROG) tryread.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
67
 
 
68
proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
 
69
        $(LINK_PROG) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
70
 
 
71
# FIXME: -prefer-pic is only supported with libtool-1.4+
 
72
mod_test.slo: $(srcdir)/mod_test.c
 
73
        $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
 
74
 
 
75
mod_test.la: mod_test.slo $(LOCAL_LIBS)
 
76
        $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
 
77
 
 
78
libmod_test.la: mod_test.slo $(LOCAL_LIBS)
 
79
        $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(LOCAL_LIBS) $(ALL_LIBS)
 
80
 
 
81
testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
 
82
        $(LINK_PROG) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
83
 
 
84
sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
 
85
        $(LINK_PROG) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
86
 
 
87
testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
 
88
        $(LINK_PROG) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
89
 
 
90
testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
 
91
        $(LINK_PROG) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
92
 
 
93
testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
 
94
        $(LINK_PROG) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
95
 
 
96
testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
 
97
        $(LINK_PROG) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
98
 
 
99
TESTS = testutil.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
 
100
        testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
 
101
        testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
 
102
        testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
 
103
        testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
 
104
        testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
 
105
        testenv.lo testprocmutex.lo testrand2.lo testfnmatch.lo \
 
106
        testatomic.lo testflock.lo testshm.lo testsock.lo testglobalmutex.lo \
 
107
        teststrnatcmp.lo testfilecopy.lo testtemp.lo testlfs.lo
 
108
 
 
109
testall@EXEEXT@: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
 
110
         readchild@EXEEXT@ abts.lo proc_child@EXEEXT@ \
 
111
         tryread@EXEEXT@ sockchild@EXEEXT@ globalmutexchild@EXEEXT@ \
 
112
         $(LOCAL_LIBS)
 
113
        $(LINK_PROG) $(TESTS) abts.lo $(LOCAL_LIBS) $(ALL_LIBS)
 
114
 
 
115
 
 
116
# DO NOT REMOVE