You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Ioan Popescu <ip...@dataq.com> on 2007/10/09 17:55:52 UTC
[Files] libapr-1.2.11 test on WinCE 5
# PROGRAMS includes all test programs built on this platform.
# STDTEST_PORTABLE
# test programs invoked via standard user interface, run on all platforms
# STDTEST_NONPORTABLE
# test programs invoked via standard user interface, not portable
# OTHER_PROGRAMS
# programs such as sendfile, that have to be invoked in a special sequence
# or with special parameters
STDTEST_PORTABLE = \
testlockperf.exe \
testshmproducer.exe \
testshmconsumer.exe \
testmutexscope.exe \
testall.exe
OTHER_PROGRAMS = sendfile.exe
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
TARGETS = $(PROGRAMS)
# bring in rules.mk for standard functionality
ALL: $(TARGETS)
CL = cl.exe
CFLAGS = /nologo /c /MDd /W3 /GF /GS- /GR- /TC /Zi /Od /D _DEBUG /D DEBUG /D _WINDOWS /D WIN32 /D UNDER_CE /D WINCE /D _DLL /D ARM /D _ARM_ /D _WIN32_WCE=0x500 /D UNICODE /D _UNICODE /FD
.c.obj::
$(CL) -c $< $(CFLAGS) $(INCLUDES)
LOCAL_LIBS= ../Debug/libapr-1.lib
ALL_LIBS= coredll.lib corelibc.lib ws2.lib ole32.lib
CLEAN_TARGETS = testfile.tmp mod_test.dll proc_child.exe occhild.exe \
readchild.exe tryread.exe sockchild.exe \
globalmutexchild.exe lfstests/large.bin \
data/testputs.txt data/testbigfprintf.dat data/testwritev.txt \
data/testwritev_full.txt
CLEAN_SUBDIRS = internal
INCDIR=../include
INCLUDES=/I "$(INCDIR)"
# link programs using -no-install to get real executables not
# libtool wrapper scripts which link an executable when first run.
LINK_PROG = link.exe /nologo /debug /subsystem:windowsce,5.00 /incremental:no /nodefaultlib:oldnames.lib /entry:mainWCRTStartup
LINK_LIB = link.exe /nologo /dll /debug /subsystem:windowsce,5.00 /incremental:no /nodefaultlib:oldnames.lib
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
./$$prog; \
if test $$? = 255; then \
echo "$$prog failed"; \
break; \
fi; \
done
occhild.exe: occhild.obj $(LOCAL_LIBS)
$(LINK_PROG) occhild.obj $(LOCAL_LIBS) $(ALL_LIBS)
sockchild.exe: sockchild.obj $(LOCAL_LIBS)
$(LINK_PROG) sockchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
readchild.exe: readchild.obj $(LOCAL_LIBS)
$(LINK_PROG) readchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
globalmutexchild.exe: globalmutexchild.obj $(LOCAL_LIBS)
$(LINK_PROG) globalmutexchild.obj $(LOCAL_LIBS) $(ALL_LIBS)
tryread.exe: tryread.obj $(LOCAL_LIBS)
$(LINK_PROG) tryread.obj $(LOCAL_LIBS) $(ALL_LIBS)
proc_child.exe: proc_child.obj $(LOCAL_LIBS)
$(LINK_PROG) proc_child.obj $(LOCAL_LIBS) $(ALL_LIBS)
# FIXME: -prefer-pic is only supported with libtool-1.4+
mod_test.dll: mod_test.obj
$(LINK_LIB) mod_test.obj /export:print_hello /export:count_reps $(LOCAL_LIBS) $(ALL_LIBS)
testlockperf.exe: testlockperf.obj $(LOCAL_LIBS) ConvertUTF.obj
$(LINK_PROG) testlockperf.obj ConvertUTF.obj $(LOCAL_LIBS) $(ALL_LIBS)
sendfile.exe: sendfile.obj $(LOCAL_LIBS)
$(LINK_PROG) sendfile.obj $(LOCAL_LIBS) $(ALL_LIBS)
testshmproducer.exe: testshmproducer.obj $(LOCAL_LIBS)
$(LINK_PROG) testshmproducer.obj $(LOCAL_LIBS) $(ALL_LIBS)
testshmconsumer.exe: testshmconsumer.obj $(LOCAL_LIBS)
$(LINK_PROG) testshmconsumer.obj $(LOCAL_LIBS) $(ALL_LIBS)
testprocmutex.exe: testprocmutex.obj $(LOCAL_LIBS)
$(LINK_PROG) testprocmutex.obj $(LOCAL_LIBS) $(ALL_LIBS)
testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
$(LINK_PROG) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)
TESTS = testutil.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
testmmap.obj testud.obj testtable.obj testsleep.obj testpools.obj \
testfmt.obj testfile.obj testdir.obj testfileinfo.obj testrand.obj \
testdso.obj testoc.obj testdup.obj testsockets.obj testproc.obj \
testpoll.obj testlock.obj testsockopt.obj testpipe.obj testthread.obj \
testhash.obj testargs.obj testnames.obj testuser.obj testpath.obj \
testenv.obj testprocmutex.obj testrand2.obj testfnmatch.obj \
testatomic.obj testflock.obj testshm.obj testsock.obj testglobalmutex.obj \
teststrnatcmp.obj testfilecopy.obj testtemp.obj testlfs.obj
testall.exe: $(TESTS) mod_test.dll occhild.exe ConvertUTF.obj \
readchild.exe abts.obj proc_child.exe \
tryread.exe sockchild.exe globalmutexchild.exe \
$(LOCAL_LIBS)
$(LINK_PROG) /out:testall.exe $(TESTS) abts.obj ConvertUTF.obj $(LOCAL_LIBS) $(ALL_LIBS)
# DO NOT REMOVE
Re: [Files] libapr-1.2.11 test on WinCE 5
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Ioan Popescu wrote:
> # PROGRAMS includes all test programs built on this platform.
FYI - rather than fork Makefile and give us *another* one-off to
maintain (a dangerous situation), we'll look together at integrating
this into the substantial changes I'm already making to the test
framework build. Ok?
Deltas work better than file dumps.
Bill