comctl32: Process WM_CHAR instead of WM_KEYDOWN for numbers in datetime.
[wine] / programs / winetest / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = winetest.exe
6 APPMODE   = -mconsole
7 IMPORTS   = comctl32 version user32 gdi32 advapi32 wsock32 kernel32
8
9 EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
10
11 C_SRCS = \
12         gui.c \
13         main.c \
14         send.c \
15         util.c
16
17 RC_SRCS = \
18         winetest.rc
19
20 SVG_SRCS = winetest.svg
21
22 @MAKE_PROG_RULES@
23
24 ALL_TEST_DIRS = @ALL_TEST_DIRS@
25
26 TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
27
28 @ALL_WINETEST_DEPENDS@
29
30 # Special rules
31
32 winetest.res: $(TESTBINS)
33
34 tests.rc: Makefile.in $(TOPOBJDIR)/config.status
35         (for i in $(TESTBINS); do echo "$$i TESTRES \"$$i\""; done) >$@ || ($(RM) $@ && false)
36
37 clean::
38         $(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
39
40 depend: tests.rc
41
42 # Rules for building distributable executable
43
44 .PHONY: dist
45
46 dist: winetest-dist.exe$(DLLEXT) winetest-dist$(EXEEXT)
47
48 winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
49         $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
50
51 winetest-dist: $(WINEWRAPPER)
52         $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
53
54 winetest-dist.exe: $(OBJS) dist.res.o Makefile.in
55         $(CC) $(APPMODE) $(OBJS) dist.res.o -o $@ $(DELAYIMPORTS:%=-l%) $(ALL_LIBS)
56         -upx -9 -qqq $@
57
58 dist.res: winetest.rc tests.rc build.nfo tests.url winetest.ico $(TESTBINS)
59
60 @DEPENDENCIES@  # everything below this line is overwritten by make depend
61
62 winetest.res: tests.rc