2 # use nmake /f NMakefile [<target>]
4 CFLAGS = /nologo /Zi /MT /Gm- /W4 /FR /D_CRT_SECURE_NO_WARNINGS
5 LIBS = kernel32.lib gdi32.lib user32.lib shell32.lib \
6 advapi32.lib ole32.lib ws2_32.lib rpcrt4.lib
7 WINSPOOL_LIBS = winspool.lib
12 cl /c $(CFLAGS) $*.cpp
21 -del *~ *.o *.obj *.sbr *.bsc *.pdb *.lib *.ilk *.exp 2>nul
22 -del test_s.c test_c.c test.h 2>nul
24 ###############################
26 ###############################
28 printlib.obj: printlib.c
32 torture.obj: torture.c
34 ###############################
36 ###############################
38 testspoolss.obj: testspoolss.c
40 testspoolss.exe: testspoolss.obj printlib.obj error.obj torture.obj
41 cl $(CFLAGS) /Fe$@ testspoolss.obj printlib.obj error.obj torture.obj \
42 /link /incremental:no /subsystem:console $(LIBS) $(WINSPOOL_LIBS)