mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
44 lines
909 B
Makefile
44 lines
909 B
Makefile
MODULE = winetest.exe
|
|
APPMODE = -mconsole
|
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32
|
|
DELAYIMPORTS = ole32
|
|
|
|
C_SRCS = \
|
|
gui.c \
|
|
main.c \
|
|
send.c \
|
|
util.c
|
|
|
|
RC_SRCS = \
|
|
winetest.rc
|
|
|
|
SVG_SRCS = winetest.svg
|
|
|
|
TESTBINS = @ALL_TEST_BINARIES@
|
|
TESTRCS = build.rc $(TESTBINS:.exe=.rc)
|
|
EXTRA_OBJS = $(TESTRCS:.rc=.res)
|
|
|
|
@MAKE_PROG_RULES@
|
|
|
|
clean::
|
|
$(RM) build.nfo winetest-dist.exe $(TESTBINS) $(TESTRCS)
|
|
|
|
build.rc: dummy
|
|
build="BUILD_INFO STRINGRES build.nfo STRINGTABLE { 1 \"`GIT_DIR=$(top_srcdir)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
|
|
|
|
build.nfo:
|
|
-$(CC) -v 2>$@
|
|
|
|
build.res: build.nfo
|
|
|
|
# Rules for building distributable executable
|
|
|
|
.PHONY: dist
|
|
|
|
dist: winetest-dist.exe$(DLLEXT)
|
|
|
|
winetest-dist.exe$(DLLEXT): winetest.exe$(DLLEXT)
|
|
cp winetest.exe$(DLLEXT) $@
|
|
-upx -9 -qqq $@
|
|
|
|
@ALL_WINETEST_DEPENDS@
|