summaryrefslogtreecommitdiff
path: root/tests/port/Makefile.W32
blob: 22203ad3ebe3d7e96dcded4b64ac21dae7c662ae (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 \
	Ws2_32.lib

TEST_BINS = \
	test_strdup.exe \
	test_strerror_r.exe \
	test_strcasecmp.exe \
	test_strncasecmp.exe \
	test_localtime_r.exe \
	test_snprintf.exe \
	test_strlcpy.exe \
	test_strlcat.exe \
	test_itoa.exe \
	test_getaddrinfo.exe \
	test_gai_strerror_r.exe

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

# TODO: what is the autogeneration rule for NMAKE?
test_strdup.exe: test_strdup.obj
test_strerror_r.exe: test_strerror_r.obj
test_strcasecmp.exe: test_strcasecmp.obj
test_strncasecmp.exe: test_strncasecmp.obj
test_localtime_r.exe: test_localtime_r.obj
test_snprintf.exe: test_snprintf.obj
test_strlcpy.exe: test_strlcpy.obj
test_strlcat.exe: test_strlcat.obj
test_itoa.exe: test_itoa.obj
test_getaddrinfo.exe: test_getaddrinfo.obj
test_gai_strerror_r.exe: test_gai_strerror_r.obj

local_all:

local_clean:

local_distclean:

local_test:
	@echo Testing strdup..
	@test_strdup >NUL 2>NUL
	@echo Testing strerror_r...
	@test_strerror_r >NUL 2>NUL
	@echo Testing strcasecmp..
	@test_strcasecmp >NUL 2>NUL
	@echo Testing strncasecmp..
	@test_strncasecmp >NUL 2>NUL
	@echo Testing localtime_r..
	@test_localtime_r >NUL 2>NUL
	@echo Testing snprintf..
	@test_snprintf >NUL 2>NUL
	@echo Testing strlcpy..
	@test_strlcpy >NUL 2>NUL
	@echo Testing strlcat..
	@test_strlcat >NUL 2>NUL
	@echo Testing itoa..
	@test_itoa >NUL 2>NUL
	@echo Testing getaddrinfo..
	@test_getaddrinfo >NUL 2>NUL
	@echo Testing gai_strerror_r..
	@test_gai_strerror_r >NUL 2>NUL