1 TOPSRCDIR
= @top_srcdir@
7 IMPORTS
= uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
10 EXTRARCFLAGS
= -DBUILD_SHA1
=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
21 SVG_SRCS
= winetest.svg
25 ALL_TEST_DIRS
= @ALL_TEST_DIRS@
27 TESTBINS
= $(ALL_TEST_DIRS
:%/tests
=%_test.exe
)
29 @ALL_WINETEST_DEPENDS@
33 winetest.res
: $(TESTBINS
)
35 tests.rc
: Makefile.in
$(TOPOBJDIR
)/config.status
36 (for i in
$(TESTBINS
); do echo
"$$i TESTRES \"$$i\""; done
) >$@ ||
($(RM
) $@
&& false
)
39 $(RM
) tests.rc
dist.res winetest-dist.exe
$(TESTBINS
)
43 # Rules for building distributable executable
47 dist: winetest-dist.exe
$(DLLEXT
)
49 winetest-dist.exe.so
: $(OBJS
) dist.res Makefile.in
50 $(WINEGCC
) $(APPMODE
) $(OBJS
) dist.res
-o
$@
-L
$(DLLDIR
) $(DELAYIMPORTS
:%=-Wb
,-d
%) $(ALL_LIBS
)
52 winetest-dist.exe
: $(OBJS
) dist.res.o Makefile.in
53 $(CC
) $(APPMODE
) $(OBJS
) dist.res.o
-o
$@
-L
$(DLLDIR
) $(IMPORTS
:%=-L
$(DLLDIR
)/%) $(ALL_LIBS
)
56 dist.res
: winetest.rc tests.rc build.nfo winetest.ico
$(TESTBINS
)
58 @DEPENDENCIES@
# everything below this line is overwritten by make depend
60 winetest.res
: tests.rc