testprogs: add win32 spoolss testsuite.
[ira/wip.git] / testprogs / win32 / spoolss / Makefile
1 CFLAGS = /nologo /Zi /MT /Gm- /W4 /FR /D_CRT_SECURE_NO_WARNINGS
2 LIBS = kernel32.lib gdi32.lib user32.lib shell32.lib \
3         advapi32.lib ole32.lib ws2_32.lib rpcrt4.lib
4 WINSPOOL_LIBS = winspool.lib
5
6 all: spoolss.exe
7
8 .cpp.obj:
9         cl /c $(CFLAGS) $*.cpp
10
11 .c.obj:
12         cl /c $(CFLAGS) $*.c
13
14 clean: cleantmp
15         -del *.dll 2>nul
16
17 cleantmp:
18         -del *~ *.o *.obj *.sbr *.bsc *.pdb *.lib *.ilk *.exp 2>nul
19         -del test_s.c test_c.c test.h 2>nul
20
21 ###############################
22 # helpers
23 ###############################
24
25 error.obj: error.c
26
27 torture.obj: torture.c
28
29 ###############################
30 # binaries
31 ###############################
32
33 spoolss.obj: spoolss.c
34
35 spoolss.exe: spoolss.obj error.obj torture.obj
36         cl $(CFLAGS) /Fe$@ spoolss.obj error.obj torture.obj \
37         /link /incremental:no /subsystem:console $(LIBS) $(WINSPOOL_LIBS)
38