1
# PROGRAMS includes all test programs built on this platform.
3
# test programs invoked via standard user interface, run on all platforms
5
# test programs invoked via standard user interface, not portable
7
# programs such as sendfile, that have to be invoked in a special sequence
8
# or with special parameters
17
OTHER_PROGRAMS = sendfile.exe
19
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
23
# bring in rules.mk for standard functionality
28
CFLAGS = /nologo /c /MDd /W3 /Gm /GX /Zi /Od /D _DEBUG /D WIN32 /D APR_DECLARE_STATIC /FD
31
$(CL) -c $< $(CFLAGS) $(INCLUDES)
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
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
45
INCLUDES=/I "$(INCDIR)"
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
52
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
53
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
55
if test $$? = 255; then \
56
echo "$$prog failed"; \
61
occhild.exe: occhild.obj $(LOCAL_LIBS)
62
$(LINK_PROG) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
64
sockchild.exe: sockchild.obj $(LOCAL_LIBS)
65
$(LINK_PROG) sockchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
67
readchild.exe: readchild.obj $(LOCAL_LIBS)
68
$(LINK_PROG) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
70
globalmutexchild.exe: globalmutexchild.obj $(LOCAL_LIBS)
71
$(LINK_PROG) globalmutexchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
73
tryread.exe: tryread.obj $(LOCAL_LIBS)
74
$(LINK_PROG) tryread.obj $(LOCAL_LIBS) $(ALL_LIBS)
76
proc_child.exe: proc_child.obj $(LOCAL_LIBS)
77
$(LINK_PROG) proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
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)
83
testlockperf.exe: testlockperf.obj $(LOCAL_LIBS)
84
$(LINK_PROG) testlockperf.obj $(LOCAL_LIBS) $(ALL_LIBS)
86
sendfile.exe: sendfile.obj $(LOCAL_LIBS)
87
$(LINK_PROG) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
89
testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
90
$(LINK_PROG) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
92
testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
93
$(LINK_PROG) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
95
testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
96
$(LINK_PROG) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
98
testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
99
$(LINK_PROG) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
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
111
testall.exe: $(TESTS) mod_test.dll occhild.exe \
112
readchild.exe abts.obj proc_child.exe \
113
tryread.exe sockchild.exe globalmutexchild.exe \
115
$(LINK_PROG) /out:testall.exe $(TESTS) abts.obj $(LOCAL_LIBS) $(ALL_LIBS)