1 TOPSRCDIR = @top_srcdir@
7 IMPORTS = comctl32 version user32 gdi32 advapi32 wsock32 kernel32
9 EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
20 SVG_SRCS = winetest.svg
24 ALL_TEST_DIRS = @ALL_TEST_DIRS@
26 TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
28 @ALL_WINETEST_DEPENDS@
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)
38 $(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
42 # Rules for building distributable executable
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)
58 dist.res: winetest.rc tests.rc build.nfo tests.url winetest.ico $(TESTBINS)
60 @DEPENDENCIES@ # everything below this line is overwritten by make depend
62 winetest.res: tests.rc