wine/programs/winetest/Makefile.in
2009-07-06 14:33:32 +02:00

48 lines
1 KiB
Makefile

TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = winetest.exe
APPMODE = -mconsole
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
DELAYIMPORTS = ole32
EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
C_SRCS = \
gui.c \
main.c \
send.c \
util.c
RC_SRCS = \
winetest.rc
SVG_SRCS = winetest.svg
ALL_TEST_DIRS = @ALL_TEST_DIRS@
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
TESTRCS = $(TESTBINS:.exe=.rc)
EXTRA_OBJS = $(TESTRCS:.rc=.res)
@MAKE_PROG_RULES@
@ALL_WINETEST_DEPENDS@
clean::
$(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
# Rules for building distributable executable
.PHONY: dist
dist: winetest-dist.exe$(DLLEXT)
winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
$(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
-upx -9 -qqq $@
dist.res: build.nfo
@DEPENDENCIES@ # everything below this line is overwritten by make depend