push ac4b6ebdd3fd886d6a18959265755579ed195b88
[wine/hacks.git] / programs / winetest / Makefile.in
bloba03197777cad7b0a1e1c8c2b87d9adaa5f21b113
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = winetest.exe
6 APPMODE = -mconsole
7 IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
8 DELAYIMPORTS = ole32
10 C_SRCS = \
11 gui.c \
12 main.c \
13 send.c \
14 util.c
16 RC_SRCS = \
17 winetest.rc
19 SVG_SRCS = winetest.svg
21 TESTBINS = @ALL_TEST_BINARIES@
22 TESTRCS = build.rc $(TESTBINS:.exe=.rc)
23 EXTRA_OBJS = $(TESTRCS:.rc=.res)
25 @MAKE_PROG_RULES@
27 @ALL_WINETEST_DEPENDS@
29 clean::
30 $(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
32 build.rc: dummy
33 build="STRINGTABLE { 1 \"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
35 # Rules for building distributable executable
37 .PHONY: dist
39 dist: winetest-dist.exe$(DLLEXT)
41 winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
42 $(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
43 -upx -9 -qqq $@
45 dist.res: build.nfo
47 @DEPENDENCIES@ # everything below this line is overwritten by make depend