testprogs: update Makefile.mingw (although mingw current cant build it).
[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: testspoolss.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 printlib.c --private=printlib_proto.h --public=printlib_proto_pub.h --srcdir=. --builddir=.
18         mkproto.pl torture.c --private=torture_proto.h --public=torture_proto_pub.h --srcdir=. --builddir=.
19
20 testspoolss.exe: testspoolss.c printlib.c torture.c error.c
21         @echo Compiling testspoolss.exe
22         @$(CC) $(CFLAGS) $(LDFLAGS) testspoolss.c printlib.c torture.c error.c $(LIBS) -o testspoolss.exe
23