2003-12-04 03:01:39 +01:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
MODULE = winetest.exe
|
2004-04-20 06:00:07 +02:00
|
|
|
APPMODE = -mconsole
|
2009-02-19 12:55:23 +01:00
|
|
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
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
|
|
|
|
2009-07-04 11:20:09 +02:00
|
|
|
@ALL_WINETEST_DEPENDS@
|
2008-08-28 12:17:42 +02:00
|
|
|
|
2006-08-28 11:58:31 +02:00
|
|
|
clean::
|
2009-07-04 11:20:09 +02:00
|
|
|
$(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-07-09 12:54:39 +02:00
|
|
|
build.rc: dummy
|
|
|
|
build="STRINGTABLE { 1 \"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
|
|
|
|
|
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
|
|
|
|
2009-06-02 13:31:22 +02:00
|
|
|
winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
|
2009-02-06 20:31:59 +01:00
|
|
|
$(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
|
2008-11-24 15:33:48 +01:00
|
|
|
-upx -9 -qqq $@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-06-02 15:50:57 +02:00
|
|
|
dist.res: build.nfo
|