1 TOPSRCDIR
= @top_srcdir@
7 IMPORTS
= comctl32 user32 wsock32
18 RC_BINSRC
= winetest.rc
19 RC_BINARIES
= wine.ico
22 advapi32_test.exe
$(DLLEXT
) \
23 comctl32_test.exe
$(DLLEXT
) \
24 dsound_test.exe
$(DLLEXT
) \
25 gdi32_test.exe
$(DLLEXT
) \
26 iphlpapi_test.exe
$(DLLEXT
) \
27 kernel32_test.exe
$(DLLEXT
) \
28 mapi32_test.exe
$(DLLEXT
) \
29 mlang_test.exe
$(DLLEXT
) \
30 msacm32_test.exe
$(DLLEXT
) \
31 msvcrt_test.exe
$(DLLEXT
) \
32 msvcrtd_test.exe
$(DLLEXT
) \
33 netapi32_test.exe
$(DLLEXT
) \
34 ntdll_test.exe
$(DLLEXT
) \
35 oleaut32_test.exe
$(DLLEXT
) \
36 psapi_test.exe
$(DLLEXT
) \
37 rpcrt4_test.exe
$(DLLEXT
) \
38 shell32_test.exe
$(DLLEXT
) \
39 shlwapi_test.exe
$(DLLEXT
) \
40 urlmon_test.exe
$(DLLEXT
) \
41 user32_test.exe
$(DLLEXT
) \
42 version_test.exe
$(DLLEXT
) \
43 wininet_test.exe
$(DLLEXT
) \
44 winmm_test.exe
$(DLLEXT
) \
45 winspool.drv_test.exe
$(DLLEXT
) \
46 ws2_32_test.exe
$(DLLEXT
)
52 tests.rc
: maketest Makefile.in
53 $(SRCDIR
)/maketest
$(TOPSRCDIR
) $(TESTBINS
) > $@ ||
( $(RM
) $@
&& exit
1 )
55 winetest.res
: tests.rc
$(TESTBINS
)
58 $(RM
) tests.rc
dist.res winetest-dist winetest-dist.exe
$(TESTBINS
)
62 # Rules for building distributable executable
66 dist: winetest-dist.exe
$(DLLEXT
) winetest-dist
$(EXEEXT
)
68 winetest-dist.exe.so
: $(ALL_OBJS
) dist.res Makefile.in
69 $(WINEGCC
) -B
$(TOOLSDIR
)/tools
/winebuild
$(APPMODE
) $(ALL_OBJS
) dist.res
-o
$@
-L
$(DLLDIR
) $(DELAYIMPORTS
:%=-Wb
,-d
%) $(ALL_LIBS
)
71 winetest-dist
: $(WINEWRAPPER
)
72 $(RM
) $@
&& $(LN_S
) $(WINEWRAPPER
) $@
74 winetest-dist.exe
: $(ALL_OBJS
) dist.res.o Makefile.in
75 $(CC
) $(APPMODE
) $(ALL_OBJS
) dist.res.o
-o
$@
$(DELAYIMPORTS
:%=-l
%) $(ALL_LIBS
)
77 dist.res
: winetest.rc tests.rc build.id build.nfo tests.url
$(TESTBINS
) $(RC_BINARIES
)
79 # Rules for stripping the test executables
81 advapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/advapi32
/tests
/advapi32_test.exe
$(DLLEXT
)
82 cp
$(DLLDIR
)/advapi32
/tests
/advapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
83 comctl32_test.exe
$(DLLEXT
): $(DLLDIR
)/comctl32
/tests
/comctl32_test.exe
$(DLLEXT
)
84 cp
$(DLLDIR
)/comctl32
/tests
/comctl32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
85 dsound_test.exe
$(DLLEXT
): $(DLLDIR
)/dsound
/tests
/dsound_test.exe
$(DLLEXT
)
86 cp
$(DLLDIR
)/dsound
/tests
/dsound_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
87 gdi32_test.exe
$(DLLEXT
): $(DLLDIR
)/gdi
/tests
/gdi32_test.exe
$(DLLEXT
)
88 cp
$(DLLDIR
)/gdi
/tests
/gdi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
89 iphlpapi_test.exe
$(DLLEXT
): $(DLLDIR
)/iphlpapi
/tests
/iphlpapi_test.exe
$(DLLEXT
)
90 cp
$(DLLDIR
)/iphlpapi
/tests
/iphlpapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
91 kernel32_test.exe
$(DLLEXT
): $(DLLDIR
)/kernel
/tests
/kernel32_test.exe
$(DLLEXT
)
92 cp
$(DLLDIR
)/kernel
/tests
/kernel32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
93 mapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/mapi32
/tests
/mapi32_test.exe
$(DLLEXT
)
94 cp
$(DLLDIR
)/mapi32
/tests
/mapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
95 mlang_test.exe
$(DLLEXT
): $(DLLDIR
)/mlang
/tests
/mlang_test.exe
$(DLLEXT
)
96 cp
$(DLLDIR
)/mlang
/tests
/mlang_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
97 msacm32_test.exe
$(DLLEXT
): $(DLLDIR
)/msacm
/tests
/msacm32_test.exe
$(DLLEXT
)
98 cp
$(DLLDIR
)/msacm
/tests
/msacm32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
99 msvcrt_test.exe
$(DLLEXT
): $(DLLDIR
)/msvcrt
/tests
/msvcrt_test.exe
$(DLLEXT
)
100 cp
$(DLLDIR
)/msvcrt
/tests
/msvcrt_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
101 msvcrtd_test.exe
$(DLLEXT
): $(DLLDIR
)/msvcrtd
/tests
/msvcrtd_test.exe
$(DLLEXT
)
102 cp
$(DLLDIR
)/msvcrtd
/tests
/msvcrtd_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
103 netapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/netapi32
/tests
/netapi32_test.exe
$(DLLEXT
)
104 cp
$(DLLDIR
)/netapi32
/tests
/netapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
105 ntdll_test.exe
$(DLLEXT
): $(DLLDIR
)/ntdll
/tests
/ntdll_test.exe
$(DLLEXT
)
106 cp
$(DLLDIR
)/ntdll
/tests
/ntdll_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
107 oleaut32_test.exe
$(DLLEXT
): $(DLLDIR
)/oleaut32
/tests
/oleaut32_test.exe
$(DLLEXT
)
108 cp
$(DLLDIR
)/oleaut32
/tests
/oleaut32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
109 psapi_test.exe
$(DLLEXT
): $(DLLDIR
)/psapi
/tests
/psapi_test.exe
$(DLLEXT
)
110 cp
$(DLLDIR
)/psapi
/tests
/psapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
111 rpcrt4_test.exe
$(DLLEXT
): $(DLLDIR
)/rpcrt4
/tests
/rpcrt4_test.exe
$(DLLEXT
)
112 cp
$(DLLDIR
)/rpcrt4
/tests
/rpcrt4_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
113 shell32_test.exe
$(DLLEXT
): $(DLLDIR
)/shell32
/tests
/shell32_test.exe
$(DLLEXT
)
114 cp
$(DLLDIR
)/shell32
/tests
/shell32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
115 shlwapi_test.exe
$(DLLEXT
): $(DLLDIR
)/shlwapi
/tests
/shlwapi_test.exe
$(DLLEXT
)
116 cp
$(DLLDIR
)/shlwapi
/tests
/shlwapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
117 urlmon_test.exe
$(DLLEXT
): $(DLLDIR
)/urlmon
/tests
/urlmon_test.exe
$(DLLEXT
)
118 cp
$(DLLDIR
)/urlmon
/tests
/urlmon_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
119 user32_test.exe
$(DLLEXT
): $(DLLDIR
)/user
/tests
/user32_test.exe
$(DLLEXT
)
120 cp
$(DLLDIR
)/user
/tests
/user32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
121 wininet_test.exe
$(DLLEXT
): $(DLLDIR
)/wininet
/tests
/wininet_test.exe
$(DLLEXT
)
122 cp
$(DLLDIR
)/wininet
/tests
/wininet_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
123 version_test.exe
$(DLLEXT
): $(DLLDIR
)/version
/tests
/version_test.exe
$(DLLEXT
)
124 cp
$(DLLDIR
)/version
/tests
/version_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
125 winmm_test.exe
$(DLLEXT
): $(DLLDIR
)/winmm
/tests
/winmm_test.exe
$(DLLEXT
)
126 cp
$(DLLDIR
)/winmm
/tests
/winmm_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
127 winspool.drv_test.exe
$(DLLEXT
): $(DLLDIR
)/winspool
/tests
/winspool.drv_test.exe
$(DLLEXT
)
128 cp
$(DLLDIR
)/winspool
/tests
/winspool.drv_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
129 ws2_32_test.exe
$(DLLEXT
): $(DLLDIR
)/winsock
/tests
/ws2_32_test.exe
$(DLLEXT
)
130 cp
$(DLLDIR
)/winsock
/tests
/ws2_32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@