upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / test / Makefile.win
1
2 LINK=link /nologo
3
4 NONPORTABLE = \
5         testshm.exe \
6         testglobalmutex.exe
7
8 PROGRAMS = \
9         client.exe \
10         sendfile.exe \
11         server.exe \
12         proc_child.exe \
13         occhild.exe \
14         readchild.exe \
15         testflock.exe \
16         testsock.exe \
17         testlockperf.exe \
18         testshmproducer.exe \
19         testshmconsumer.exe \
20         testatomic.exe \
21         testmutexscope.exe \
22         testall.exe \
23         mod_test.so
24
25
26 TARGETS = $(PROGRAMS)
27
28 LOCAL_LIBS=..\LibD\apr.lib 
29 ALL_LIBS=kernel32.lib advapi32.lib ws2_32.lib mswsock.lib ole32.lib shell32.lib rpcrt4.lib
30
31 CLEAN_TARGETS = mod_test.lib mod_test.exp
32
33 INCDIR=../include
34 INCLUDES=/I "$(INCDIR)"
35
36 all: $(TARGETS)
37
38 clean:
39         -del $(CLEAN_TARGETS) $(PROGRAMS) *.obj *.pdb *.ilk 2>NUL
40
41 .c.obj:
42         cl /nologo /c /MDd /W3 /EHsc /Zi /Od /DWIN32 /D_DEBUG /D_WINDOWS /DAPR_DECLARE_STATIC $(INCLUDES) $<
43
44 testflock.exe: testflock.obj $(LOCAL_LIBS)
45         $(LINK) testflock.obj $(LOCAL_LIBS) $(ALL_LIBS)
46
47 occhild.exe: occhild.obj $(LOCAL_LIBS)
48         $(LINK) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
49
50 readchild.exe: readchild.obj $(LOCAL_LIBS)
51         $(LINK) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
52
53 proc_child.exe: proc_child.obj $(LOCAL_LIBS)
54         $(LINK) /debug /subsystem:console \
55                 proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
56
57 # FIXME: This is BS ... we should deal with namespace decoration within the
58 # apr_dso_sym() function or within the test (take y'r pick) since many platforms
59 # have decoration and decoration issues.
60 mod_test.so: mod_test.obj
61         $(LINK) mod_test.obj /dll /out:mod_test.so $(LOCAL_LIBS) $(ALL_LIBS) \
62                 /export:print_hello /export:count_reps
63
64 testlockperf.exe: testlockperf.obj $(LOCAL_LIBS)
65         $(LINK) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
66
67 testsock.exe: testsock.obj client.exe server.exe sendfile.exe $(LOCAL_LIBS)
68         $(LINK) testsock.obj $(LOCAL_LIBS) $(ALL_LIBS)
69
70 client.exe: client.obj $(LOCAL_LIBS)
71         $(LINK) client.obj $(LOCAL_LIBS) $(ALL_LIBS)
72
73 server.exe: server.obj $(LOCAL_LIBS)
74         $(LINK) server.obj $(LOCAL_LIBS) $(ALL_LIBS)
75
76 sendfile.exe: sendfile.obj $(LOCAL_LIBS)
77         $(LINK) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
78
79 testshm.exe: testshm.obj $(LOCAL_LIBS) testshmproducer.exe testshmconsumer.exe
80         $(LINK) testshm.obj $(LOCAL_LIBS) $(ALL_LIBS)
81
82 testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
83         $(LINK) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
84
85 testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
86         $(LINK) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
87
88 testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
89         $(LINK) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
90
91 testglobalmutex.exe: testglobalmutex.obj $(LOCAL_LIBS)
92         $(LINK) testglobalmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
93
94 testatomic.exe: testatomic.obj $(LOCAL_LIBS)
95         $(LINK) testatomic.obj $(LOCAL_LIBS) $(ALL_LIBS)
96
97 testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
98         $(LINK) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
99
100 TESTS = testall.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
101         testmmap.obj testud.obj testtable.obj testsleep.obj testpools.obj \
102         testfmt.obj testfile.obj testdir.obj testfileinfo.obj testrand.obj \
103         testdso.obj testoc.obj testdup.obj testsockets.obj testproc.obj \
104         testpoll.obj testlock.obj testsockopt.obj testpipe.obj testthread.obj \
105         testhash.obj testargs.obj testnames.obj testuser.obj testpath.obj \
106         testenv.obj testprocmutex.obj
107
108 testall.exe: $(TESTS) CuTest.obj $(LOCAL_LIBS)
109         $(LINK) /debug /subsystem:console $(TESTS) CuTest.obj \
110                 $(LOCAL_LIBS) $(ALL_LIBS)
111
112
113 # DO NOT REMOVE