push 93d38255e04d8d2fa525a0100c5e1cee4a9f11a8
[wine/hacks.git] / programs / winetest / Makefile.in
blobd153c047beee2747ac5c27608d271ef995e8f907
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = winetest.exe
6 APPMODE = -mconsole
7 IMPORTS = comctl32 version user32 gdi32 advapi32 wsock32 kernel32
9 EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
11 C_SRCS = \
12 gui.c \
13 main.c \
14 send.c \
15 util.c
17 RC_SRCS = \
18 winetest.rc
20 SVG_SRCS = winetest.svg
22 @MAKE_PROG_RULES@
24 ALL_TEST_DIRS = @ALL_TEST_DIRS@
26 TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
28 @ALL_WINETEST_DEPENDS@
30 # Special rules
32 winetest.res: $(TESTBINS)
34 tests.rc: Makefile.in $(TOPOBJDIR)/config.status
35 (for i in $(TESTBINS); do echo "$$i TESTRES \"$$i\""; done) >$@ || ($(RM) $@ && false)
37 clean::
38 $(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
40 depend: tests.rc
42 # Rules for building distributable executable
44 .PHONY: dist
46 dist: winetest-dist.exe$(DLLEXT) winetest-dist$(EXEEXT)
48 winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
49 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
51 winetest-dist: $(WINEWRAPPER)
52 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
54 winetest-dist.exe: $(OBJS) dist.res.o Makefile.in
55 $(CC) $(APPMODE) $(OBJS) dist.res.o -o $@ $(DELAYIMPORTS:%=-l%) $(ALL_LIBS)
57 dist.res: winetest.rc tests.rc build.nfo tests.url winetest.ico $(TESTBINS)
59 @DEPENDENCIES@ # everything below this line is overwritten by make depend
61 winetest.res: tests.rc