summaryrefslogtreecommitdiff
path: root/tests/modules/Makefile.W32
blob: 307e8a4984907246f0865422bdb55503a2bcf8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
TOPDIR = ..\..

SUBDIRS = testmod testmod2 testmod3 testmod4

!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk

INCLUDE_CXXFLAGS = \
	/D_WIN32_WINNT=0x504 /DSHARED

INCLUDE_DIRS = \
	/I. \
	/I$(TOPDIR)\src \
	/I$(TOPDIR)\include \
	/I$(TOPDIR)\include\module \
	/I$(TOPDIR)\include\util \
	/I$(TOPDIR)\include\crawler \
	/I$(TOPDIR)\tests\modules\libcommon

INCLUDE_LDFLAGS = \

INCLUDE_LIBS = \
	$(TOPDIR)\src\libutil\util.lib \
	$(TOPDIR)\src\libcrawler\crawler.lib \
	$(TOPDIR)\tests\modules\libcommon\common.lib

TEST_CPP_BINS = \
	test1.exe \
	test2.exe \
	test3.exe \
	test4.exe

OBJS =

!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk

test1.exe: test1.obj
test2.exe: test2.obj
test3.exe: test3.obj
test4.exe: test4.obj

# must build test2.lib first becase it contains DDL exports for the
# Common singleton
local_all: test2.exe

local_clean:
	@-erase -f *.RES *.DIFF *.ERR 2>NUL

local_distclean:

local_test:
	@-exec_test test1 "Module loader"
	@-exec_test test2 "Module loader with singleton"
	@-exec_test test3 "Load module in module"
	@-exec_test test4 "Module initialization"