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
|
2009-02-19 12:55:23 +01:00
|
|
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
2009-02-23 12:34:57 +01:00
|
|
|
DELAYIMPORTS = ole32
|
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::
|
2009-02-23 17:15:14 +01:00
|
|
|
$(RM) tests.rc dist.res winetest-dist.exe $(TESTBINS)
|
2008-08-28 12:17:42 +02:00
|
|
|
|
|
|
|
depend: tests.rc
|
2006-08-28 11:58:31 +02:00
|
|
|
|
|
|
|
# Rules for building distributable executable
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
|
2009-02-23 17:15:14 +01:00
|
|
|
dist: winetest-dist.exe$(DLLEXT)
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-06-02 13:31:22 +02:00
|
|
|
winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
|
2009-02-06 20:31:59 +01:00
|
|
|
$(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
|
2008-11-24 15:33:48 +01:00
|
|
|
-upx -9 -qqq $@
|
2006-08-28 11:58:31 +02:00
|
|
|
|
2009-06-02 15:50:57 +02:00
|
|
|
dist.res: build.nfo
|
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
|