28 LOCAL_LIBS=..\LibD\apr.lib
29 ALL_LIBS=kernel32.lib advapi32.lib ws2_32.lib mswsock.lib ole32.lib shell32.lib rpcrt4.lib
31 CLEAN_TARGETS = mod_test.lib mod_test.exp
34 INCLUDES=/I "$(INCDIR)"
39 -del $(CLEAN_TARGETS) $(PROGRAMS) *.obj *.pdb *.ilk 2>NUL
42 cl /nologo /c /MDd /W3 /EHsc /Zi /Od /DWIN32 /D_DEBUG /D_WINDOWS /DAPR_DECLARE_STATIC $(INCLUDES) $<
44 testflock.exe: testflock.obj $(LOCAL_LIBS)
45 $(LINK) testflock.obj $(LOCAL_LIBS) $(ALL_LIBS)
47 occhild.exe: occhild.obj $(LOCAL_LIBS)
48 $(LINK) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
50 readchild.exe: readchild.obj $(LOCAL_LIBS)
51 $(LINK) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
53 proc_child.exe: proc_child.obj $(LOCAL_LIBS)
54 $(LINK) /debug /subsystem:console \
55 proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
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
64 testlockperf.exe: testlockperf.obj $(LOCAL_LIBS)
65 $(LINK) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
67 testsock.exe: testsock.obj client.exe server.exe sendfile.exe $(LOCAL_LIBS)
68 $(LINK) testsock.obj $(LOCAL_LIBS) $(ALL_LIBS)
70 client.exe: client.obj $(LOCAL_LIBS)
71 $(LINK) client.obj $(LOCAL_LIBS) $(ALL_LIBS)
73 server.exe: server.obj $(LOCAL_LIBS)
74 $(LINK) server.obj $(LOCAL_LIBS) $(ALL_LIBS)
76 sendfile.exe: sendfile.obj $(LOCAL_LIBS)
77 $(LINK) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
79 testshm.exe: testshm.obj $(LOCAL_LIBS) testshmproducer.exe testshmconsumer.exe
80 $(LINK) testshm.obj $(LOCAL_LIBS) $(ALL_LIBS)
82 testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
83 $(LINK) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
85 testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
86 $(LINK) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
88 testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
89 $(LINK) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
91 testglobalmutex.exe: testglobalmutex.obj $(LOCAL_LIBS)
92 $(LINK) testglobalmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
94 testatomic.exe: testatomic.obj $(LOCAL_LIBS)
95 $(LINK) testatomic.obj $(LOCAL_LIBS) $(ALL_LIBS)
97 testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
98 $(LINK) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
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
108 testall.exe: $(TESTS) CuTest.obj $(LOCAL_LIBS)
109 $(LINK) /debug /subsystem:console $(TESTS) CuTest.obj \
110 $(LOCAL_LIBS) $(ALL_LIBS)