testprogs: add win32 spoolss testsuite.
[ira/wip.git] / testprogs / win32 / spoolss / Makefile.mingw
1 MAKE=mingw32-make
2 CFLAGS=-I../../../ -I/usr/i686-pc-mingw32/sys-root/mingw/include
3 LDFLAGS=-L/usr/i686-pc-mingw32/sys-root/mingw/lib
4 CC=/usr/bin/i686-pc-mingw32-gcc
5 LIBS=-lwinspool
6
7 all: spoolss.exe
8
9 clean:
10         rm -vf *.exe tags
11
12 ctags:
13         ctags `find . -name "*.[ch]" | grep -v include/proto.h`
14         ctags --c-kinds=-p -a `find /usr/i686-pc-mingw32/sys-root/mingw/include -name "*.[ch]" | grep -v /CVS/`
15
16 proto:
17         mkproto.pl torture.c --private=torture_proto.h --public=torture_proto_pub.h --srcdir=. --builddir=.
18
19 spoolss.exe: spoolss.c torture.c error.c
20         @echo Compiling spoolss.exe
21         @$(CC) $(CFLAGS) $(LDFLAGS) spoolss.c torture.c error.c $(LIBS) -o spoolss.exe
22