summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-20 15:53:17 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-20 15:53:17 +0200
commit82c2b858633c9992ce7560a0b21f37329904a300 (patch)
tree6b806437ba79044cb3f5df11effa87314dc9beaf /tests
parenteb26859dbd0240789ee8c5c02a65d784e664987a (diff)
downloadwolfbones-82c2b858633c9992ce7560a0b21f37329904a300.tar.gz
wolfbones-82c2b858633c9992ce7560a0b21f37329904a300.tar.bz2
got to first error message on Windows (library loader)
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.W322
-rw-r--r--tests/library/Makefile.W3228
2 files changed, 29 insertions, 1 deletions
diff --git a/tests/Makefile.W32 b/tests/Makefile.W32
index 2b592c9..13f17c4 100644
--- a/tests/Makefile.W32
+++ b/tests/Makefile.W32
@@ -1,6 +1,6 @@
TOPDIR = ..
-SUBDIRS = threads port log network service
+SUBDIRS = threads port log network service library
!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk
diff --git a/tests/library/Makefile.W32 b/tests/library/Makefile.W32
new file mode 100644
index 0000000..4ebcab9
--- /dev/null
+++ b/tests/library/Makefile.W32
@@ -0,0 +1,28 @@
+TOPDIR = ..\..
+
+INCLUDE_DIRS = \
+ /I$(TOPDIR)\include\wolf /I. /I$(TOPDIR)\src \
+ /D_WIN32_WINNT=0x400 /I"$(PLATFORM_SDK_DIR)\Include"
+
+INCLUDE_LDFLAGS = \
+ /LIBPATH:"$(PLATFORM_SDK_DIR)\lib"
+
+INCLUDE_LIBS = \
+ $(TOPDIR)\src\wolf.lib
+
+TEST_BINS = \
+ test_loader.exe
+
+!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk
+
+test_loader.exe: test_loader.obj $(TOPDIR)\src\wolf.lib
+
+local_all:
+
+local_clean:
+
+local_distclean:
+
+local_test: $(LIBRARIES)
+ @echo Testing loading of a library and executing a function therein..
+ @test_loader 2>NUL