2003-12-04 03:01:39 +01:00
|
|
|
MODULE = winetest.exe
|
2004-04-20 06:00:07 +02:00
|
|
|
APPMODE = -mconsole
|
2010-07-21 13:18:52 +02:00
|
|
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32
|
2009-02-23 12:34:57 +01:00
|
|
|
DELAYIMPORTS = ole32
|
2003-12-04 03:01:39 +01:00
|
|
|
|
|
|
|
C_SRCS = \
|
2004-01-15 02:48:05 +01:00
|
|
|
gui.c \
|
2003-12-04 03:01:39 +01:00
|
|
|
main.c \
|
|
|
|
send.c \
|
|
|
|
util.c
|
|
|
|
|
2004-01-15 02:48:05 +01:00
|
|
|
RC_SRCS = \
|
2004-06-16 00:45:15 +02:00
|
|
|
winetest.rc
|
2004-01-15 02:48:05 +01:00
|
|
|
|
2008-03-28 19:24:52 +01:00
|
|
|
SVG_SRCS = winetest.svg
|
|
|
|
|
2010-02-08 21:29:13 +01:00
|
|
|
TESTBINS = @ALL_TEST_BINARIES@
|
2009-07-09 12:54:39 +02:00
|
|
|
TESTRCS = build.rc $(TESTBINS:.exe=.rc)
|
2009-07-04 11:20:09 +02:00
|
|
|
EXTRA_OBJS = $(TESTRCS:.rc=.res)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-07-04 11:20:09 +02:00
|
|
|
@MAKE_PROG_RULES@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
|
|
|
clean::
|
2010-08-21 17:19:48 +02:00
|
|
|
$(RM) build.nfo winetest-dist.exe $(TESTBINS) $(TESTRCS)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-07-09 12:54:39 +02:00
|
|
|
build.rc: dummy
|
2010-09-19 12:40:12 +02:00
|
|
|
build="BUILD_INFO STRINGRES build.nfo STRINGTABLE { 1 \"`GIT_DIR=$(top_srcdir)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
|
2010-08-21 17:19:48 +02:00
|
|
|
|
|
|
|
build.nfo:
|
|
|
|
-$(CC) -v 2>$@
|
|
|
|
|
|
|
|
build.res: build.nfo
|
2009-07-09 12:54:39 +02:00
|
|
|
|
2006-08-28 11:58:31 +02:00
|
|
|
# Rules for building distributable executable
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
|
2009-02-23 17:15:14 +01:00
|
|
|
dist: winetest-dist.exe$(DLLEXT)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2010-08-21 17:19:48 +02:00
|
|
|
winetest-dist.exe$(DLLEXT): winetest.exe$(DLLEXT)
|
|
|
|
cp winetest.exe$(DLLEXT) $@
|
2008-11-24 15:33:48 +01:00
|
|
|
-upx -9 -qqq $@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2010-08-21 17:19:48 +02:00
|
|
|
@ALL_WINETEST_DEPENDS@
|