63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ../..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
MODULE = winetest.exe
|
|
APPMODE = -mconsole
|
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
|
|
|
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
|
|
|
|
@MAKE_PROG_RULES@
|
|
|
|
ALL_TEST_DIRS = @ALL_TEST_DIRS@
|
|
|
|
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
|
|
|
|
@ALL_WINETEST_DEPENDS@
|
|
|
|
# Special rules
|
|
|
|
winetest.res: $(TESTBINS)
|
|
|
|
tests.rc: Makefile.in $(TOPOBJDIR)/config.status
|
|
(for i in $(TESTBINS); do echo "$$i TESTRES \"$$i\""; done) >$@ || ($(RM) $@ && false)
|
|
|
|
clean::
|
|
$(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
|
|
|
|
depend: tests.rc
|
|
|
|
# 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) $(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 $@ -L$(DLLDIR) $(IMPORTS:%=-L$(DLLDIR)/%) $(ALL_LIBS)
|
|
-upx -9 -qqq $@
|
|
|
|
dist.res: winetest.rc tests.rc build.nfo tests.url winetest.ico $(TESTBINS)
|
|
|
|
@DEPENDENCIES@ # everything below this line is overwritten by make depend
|
|
|
|
winetest.res: tests.rc
|