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

« back to all changes in this revision

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

  • 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
# PROGRAMS includes all test programs built on this platform.
 
2
# STDTEST_PORTABLE
 
3
#   test programs invoked via standard user interface, run on all platforms
 
4
# STDTEST_NONPORTABLE
 
5
#   test programs invoked via standard user interface, not portable
 
6
# OTHER_PROGRAMS
 
7
#   programs such as sendfile, that have to be invoked in a special sequence
 
8
#   or with special parameters
 
9
 
 
10
STDTEST_PORTABLE = \
 
11
        testlockperf.exe \
 
12
        testshmproducer.exe \
 
13
        testshmconsumer.exe \
 
14
        testmutexscope.exe \
 
15
        testall.exe
 
16
 
 
17
OTHER_PROGRAMS = sendfile.exe 
 
18
 
 
19
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
 
20
 
 
21
TARGETS = $(PROGRAMS)
 
22
 
 
23
# bring in rules.mk for standard functionality
 
24
ALL: $(TARGETS)
 
25
 
 
26
CL = cl.exe
 
27
 
 
28
CFLAGS = /nologo /c /MDd /W3 /Gm /GX /Zi /Od /D _DEBUG /D WIN32 /D APR_DECLARE_STATIC /FD 
 
29
 
 
30
.c.obj::
 
31
        $(CL) -c $< $(CFLAGS) $(INCLUDES)
 
32
 
 
33
LOCAL_LIBS= ../LibD/apr-1.lib 
 
34
ALL_LIBS= kernel32.lib user32.lib advapi32.lib Rpcrt4.lib ws2_32.lib wsock32.lib ole32.lib 
 
35
 
 
36
 
 
37
CLEAN_TARGETS = testfile.tmp mod_test.dll proc_child.exe occhild.exe \
 
38
        readchild.exe tryread.exe sockchild.exe \
 
39
        globalmutexchild.exe lfstests/large.bin \
 
40
        data/testputs.txt data/testbigfprintf.dat data/testwritev.txt \
 
41
        data/testwritev_full.txt
 
42
CLEAN_SUBDIRS = internal
 
43
 
 
44
INCDIR=../include
 
45
INCLUDES=/I "$(INCDIR)"
 
46
 
 
47
# link programs using -no-install to get real executables not
 
48
# libtool wrapper scripts which link an executable when first run.
 
49
LINK_PROG = link.exe /nologo /debug /machine:I386 /subsystem:console /incremental:no 
 
50
LINK_LIB = link.exe /nologo /dll /debug /machine:I386 /subsystem:windows /incremental:no
 
51
 
 
52
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
 
53
        for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
 
54
                ./$$prog; \
 
55
                if test $$? = 255; then \
 
56
                        echo "$$prog failed"; \
 
57
                        break; \
 
58
                fi; \
 
59
        done
 
60
 
 
61
occhild.exe: occhild.obj $(LOCAL_LIBS)
 
62
        $(LINK_PROG) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
63
 
 
64
sockchild.exe: sockchild.obj $(LOCAL_LIBS)
 
65
        $(LINK_PROG) sockchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
66
 
 
67
readchild.exe: readchild.obj $(LOCAL_LIBS)
 
68
        $(LINK_PROG) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
69
 
 
70
globalmutexchild.exe: globalmutexchild.obj $(LOCAL_LIBS)
 
71
        $(LINK_PROG) globalmutexchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
72
 
 
73
tryread.exe: tryread.obj $(LOCAL_LIBS)
 
74
        $(LINK_PROG) tryread.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
75
 
 
76
proc_child.exe: proc_child.obj $(LOCAL_LIBS)
 
77
        $(LINK_PROG) proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
78
 
 
79
# FIXME: -prefer-pic is only supported with libtool-1.4+
 
80
mod_test.dll: mod_test.obj
 
81
        $(LINK_LIB) mod_test.obj /export:print_hello /export:count_reps $(LOCAL_LIBS) $(ALL_LIBS)
 
82
 
 
83
testlockperf.exe: testlockperf.obj $(LOCAL_LIBS)
 
84
        $(LINK_PROG) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
85
 
 
86
sendfile.exe: sendfile.obj $(LOCAL_LIBS)
 
87
        $(LINK_PROG) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
88
 
 
89
testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
 
90
        $(LINK_PROG) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
91
 
 
92
testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
 
93
        $(LINK_PROG) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
94
 
 
95
testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
 
96
        $(LINK_PROG) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
97
 
 
98
testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
 
99
        $(LINK_PROG) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
100
 
 
101
TESTS = testutil.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
 
102
        testmmap.obj testud.obj testtable.obj testsleep.obj testpools.obj \
 
103
        testfmt.obj testfile.obj testdir.obj testfileinfo.obj testrand.obj \
 
104
        testdso.obj testoc.obj testdup.obj testsockets.obj testproc.obj \
 
105
        testpoll.obj testlock.obj testsockopt.obj testpipe.obj testthread.obj \
 
106
        testhash.obj testargs.obj testnames.obj testuser.obj testpath.obj \
 
107
        testenv.obj testprocmutex.obj testrand2.obj testfnmatch.obj \
 
108
        testatomic.obj testflock.obj testshm.obj testsock.obj testglobalmutex.obj \
 
109
        teststrnatcmp.obj testfilecopy.obj testtemp.obj testlfs.obj 
 
110
 
 
111
testall.exe: $(TESTS) mod_test.dll occhild.exe \
 
112
         readchild.exe abts.obj proc_child.exe \
 
113
         tryread.exe sockchild.exe globalmutexchild.exe \
 
114
         $(LOCAL_LIBS)
 
115
        $(LINK_PROG) /out:testall.exe $(TESTS) abts.obj $(LOCAL_LIBS) $(ALL_LIBS)
 
116
 
 
117
 
 
118
# DO NOT REMOVE