summaryrefslogtreecommitdiff
path: root/tests/service/Makefile.W32
blob: c25bd6b60527800d6458e486dc0546e4a33e717e (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
TOPDIR = ..\..

SUBDIRS =

INCLUDE_DIRS = \
	/I$(TOPDIR)\include\wolf /I. \
	/D_WIN32_WINNT=0x400 /I"$(PLATFORM_SDK_DIR)\Include"

INCLUDE_LDFLAGS = \
	/LIBPATH:"$(PLATFORM_SDK_DIR)\lib"

INCLUDE_LIBS = \
	$(TOPDIR)\src\wolf.lib \
	advapi32.lib kernel32.lib

LIBRARIES = \
	testservicemsg.dll

TEST_BINS = \
	testservice.exe

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

testservice.exe: testservice.obj $(TOPDIR)\src\wolf.lib

testservicemsg.dll: testservicemsg.res
	$(LINK) /dll /nologo /noentry /MACHINE:x86 /out:$@ $?

testservicemsg.rc: testservicemsg.mc
testservicemsg.res: testservicemsg.rc

local_test: $(LIBRARIES)
	@echo Testing service..
	@copy testservicemsg.dll C:\TEMP >NUL
	@testservice /install 2>NUL
	@net start testservice >>NUL
	@net stop testservice >>NUL
	@testservice /remove 2>>NUL

local_all:

local_clean:
	@-erase testservice.log 2>NUL
	@-erase $(LIBRARIES) testservicemsg.h 2>NUL

local_distclean: