summaryrefslogtreecommitdiff
path: root/tests/log/Makefile.W32
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-19 10:16:27 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-19 10:16:27 +0100
commit59218203a248a958ad5cb281507dbd7ad3255334 (patch)
tree1d609468dc07f5d36d58b107bb9fb5e8724cbd35 /tests/log/Makefile.W32
parent00b4325ff33c93d3a1c0039a07184e352df34354 (diff)
downloadwolfbones-59218203a248a958ad5cb281507dbd7ad3255334.tar.gz
wolfbones-59218203a248a958ad5cb281507dbd7ad3255334.tar.bz2
more cleanup, making a local testmsg.dll for testing the logger on windows
Diffstat (limited to 'tests/log/Makefile.W32')
-rw-r--r--tests/log/Makefile.W3215
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/log/Makefile.W32 b/tests/log/Makefile.W32
index 324d34f..0a1b688 100644
--- a/tests/log/Makefile.W32
+++ b/tests/log/Makefile.W32
@@ -4,6 +4,7 @@ SUBDIRS =
INCLUDE_DIRS = \
/I$(TOPDIR)\include\wolf /I.
+ /D_WIN32_WINNT=0x400 /I"$(PLATFORM_SDK_DIR)\Include"
INCLUDE_LDFLAGS = \
/LIBPATH:"$(PLATFORM_SDK_DIR)\lib"
@@ -12,6 +13,9 @@ INCLUDE_LIBS = \
$(TOPDIR)\src\wolf.lib \
advapi32.lib
+LIBRARIES = \
+ log\testmsg.dll
+
TEST_BINS = \
test_log.exe
@@ -19,7 +23,13 @@ TEST_BINS = \
test_log.exe: test_log.obj $(TOPDIR)\src\wolf.lib
-local_test:
+log\testmsg.dll: log\testmsg.res
+ $(LINK) /dll /nologo /noentry /MACHINE:x86 /out:$@ $?
+
+log\testmsg.rc: log\testmsg.mc
+log\testmsg.res: log\testmsg.rc
+
+local_test: $(LIBRARIES)
@echo Testing log..
@test_log 2>NUL
@@ -27,5 +37,8 @@ local_all:
local_clean:
@-erase test.log 2>NUL
+ @-erase $(LIBRARIES) log\testmsg.h 2>NUL
local_distclean:
+
+