2003-12-04 03:01:39 +01:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
MODULE = winetest.exe
|
2004-04-20 06:00:07 +02:00
|
|
|
APPMODE = -mconsole
|
2007-10-28 02:48:59 +02:00
|
|
|
IMPORTS = comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2008-04-10 12:02:04 +02:00
|
|
|
EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
|
2008-03-27 17:26:20 +01:00
|
|
|
|
2003-12-04 03:01:39 +01:00
|
|
|
C_SRCS = \
|
2004-01-15 02:48:05 +01:00
|
|
|
gui.c \
|
2003-12-04 03:01:39 +01:00
|
|
|
main.c \
|
|
|
|
send.c \
|
|
|
|
util.c
|
|
|
|
|
2004-01-15 02:48:05 +01:00
|
|
|
RC_SRCS = \
|
2004-06-16 00:45:15 +02:00
|
|
|
winetest.rc
|
2004-01-15 02:48:05 +01:00
|
|
|
|
2008-03-28 19:24:52 +01:00
|
|
|
SVG_SRCS = winetest.svg
|
|
|
|
|
2006-08-28 11:58:31 +02:00
|
|
|
@MAKE_PROG_RULES@
|
|
|
|
|
2008-08-28 12:09:46 +02:00
|
|
|
ALL_TEST_DIRS = @ALL_TEST_DIRS@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2008-08-28 12:09:46 +02:00
|
|
|
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
|
2006-09-11 14:32:00 +02:00
|
|
|
|
2008-08-28 12:09:46 +02:00
|
|
|
@ALL_WINETEST_DEPENDS@
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2006-08-28 11:58:31 +02:00
|
|
|
# Special rules
|
|
|
|
|
2006-09-11 14:32:00 +02:00
|
|
|
winetest.res: $(TESTBINS)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2008-08-28 12:17:42 +02:00
|
|
|
tests.rc: Makefile.in $(TOPOBJDIR)/config.status
|
|
|
|
(for i in $(TESTBINS); do echo "$$i TESTRES \"$$i\""; done) >$@ || ($(RM) $@ && false)
|
|
|
|
|
2006-08-28 11:58:31 +02:00
|
|
|
clean::
|
2008-08-28 12:17:42 +02:00
|
|
|
$(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
|
|
|
|
|
|
|
|
depend: tests.rc
|
2006-08-28 11:58:31 +02:00
|
|
|
|
|
|
|
# Rules for building distributable executable
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
|
|
|
|
dist: winetest-dist.exe$(DLLEXT) winetest-dist$(EXEEXT)
|
|
|
|
|
|
|
|
winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
|
|
|
|
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
|
|
|
|
|
|
|
|
winetest-dist: $(WINEWRAPPER)
|
|
|
|
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
|
|
|
|
|
|
|
|
winetest-dist.exe: $(OBJS) dist.res.o Makefile.in
|
|
|
|
$(CC) $(APPMODE) $(OBJS) dist.res.o -o $@ $(DELAYIMPORTS:%=-l%) $(ALL_LIBS)
|
2008-11-24 15:33:48 +01:00
|
|
|
-upx -9 -qqq $@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2008-08-28 12:17:42 +02:00
|
|
|
dist.res: winetest.rc tests.rc build.nfo tests.url winetest.ico $(TESTBINS)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2006-09-14 09:38:16 +02:00
|
|
|
@DEPENDENCIES@ # everything below this line is overwritten by make depend
|
2008-08-28 12:17:42 +02:00
|
|
|
|
|
|
|
winetest.res: tests.rc
|