1 TOPSRCDIR
= @top_srcdir@
7 IMPORTS
= comctl32 user32 gdi32 wsock32
18 RC_BINSRC
= winetest.rc
19 RC_BINARIES
= wine.ico
22 advpack_test.exe
$(DLLEXT
) \
23 advapi32_test.exe
$(DLLEXT
) \
24 comctl32_test.exe
$(DLLEXT
) \
25 ddraw_test.exe
$(DLLEXT
) \
26 dinput_test.exe
$(DLLEXT
) \
27 dsound_test.exe
$(DLLEXT
) \
28 gdi32_test.exe
$(DLLEXT
) \
29 iphlpapi_test.exe
$(DLLEXT
) \
30 kernel32_test.exe
$(DLLEXT
) \
31 lz32_test.exe
$(DLLEXT
) \
32 mapi32_test.exe
$(DLLEXT
) \
33 mlang_test.exe
$(DLLEXT
) \
34 msacm32_test.exe
$(DLLEXT
) \
35 mscms_test.exe
$(DLLEXT
) \
36 msi_test.exe
$(DLLEXT
) \
37 msvcrt_test.exe
$(DLLEXT
) \
38 msvcrtd_test.exe
$(DLLEXT
) \
39 netapi32_test.exe
$(DLLEXT
) \
40 ntdll_test.exe
$(DLLEXT
) \
41 ole32_test.exe
$(DLLEXT
) \
42 oleaut32_test.exe
$(DLLEXT
) \
43 psapi_test.exe
$(DLLEXT
) \
44 quartz_test.exe
$(DLLEXT
) \
45 rpcrt4_test.exe
$(DLLEXT
) \
46 rsabase_test.exe
$(DLLEXT
) \
47 rsaenh_test.exe
$(DLLEXT
) \
48 shell32_test.exe
$(DLLEXT
) \
49 shlwapi_test.exe
$(DLLEXT
) \
50 urlmon_test.exe
$(DLLEXT
) \
51 user32_test.exe
$(DLLEXT
) \
52 version_test.exe
$(DLLEXT
) \
53 wininet_test.exe
$(DLLEXT
) \
54 winmm_test.exe
$(DLLEXT
) \
55 winspool.drv_test.exe
$(DLLEXT
) \
56 ws2_32_test.exe
$(DLLEXT
)
62 tests.rc
: maketest Makefile.in
63 $(SRCDIR
)/maketest
$(TOPSRCDIR
) $(TESTBINS
) > $@ ||
( $(RM
) $@
&& exit
1 )
65 winetest.res
: tests.rc
$(TESTBINS
)
68 $(RM
) tests.rc
dist.res winetest-dist winetest-dist.exe
$(TESTBINS
)
72 # Rules for building distributable executable
76 dist: winetest-dist.exe
$(DLLEXT
) winetest-dist
$(EXEEXT
)
78 winetest-dist.exe.so
: $(ALL_OBJS
) dist.res Makefile.in
79 $(WINEGCC
) -B
$(TOOLSDIR
)/tools
/winebuild
$(APPMODE
) $(ALL_OBJS
) dist.res
-o
$@
-L
$(DLLDIR
) $(DELAYIMPORTS
:%=-Wb
,-d
%) $(ALL_LIBS
)
81 winetest-dist
: $(WINEWRAPPER
)
82 $(RM
) $@
&& $(LN_S
) $(WINEWRAPPER
) $@
84 winetest-dist.exe
: $(ALL_OBJS
) dist.res.o Makefile.in
85 $(CC
) $(APPMODE
) $(ALL_OBJS
) dist.res.o
-o
$@
$(DELAYIMPORTS
:%=-l
%) $(ALL_LIBS
)
87 dist.res
: winetest.rc tests.rc build.id build.nfo tests.url
$(TESTBINS
) $(RC_BINARIES
)
89 # Rules for stripping the test executables
91 advpack_test.exe
$(DLLEXT
): $(DLLDIR
)/advpack
/tests
/advpack_test.exe
$(DLLEXT
)
92 cp
$(DLLDIR
)/advpack
/tests
/advpack_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
93 advapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/advapi32
/tests
/advapi32_test.exe
$(DLLEXT
)
94 cp
$(DLLDIR
)/advapi32
/tests
/advapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
95 comctl32_test.exe
$(DLLEXT
): $(DLLDIR
)/comctl32
/tests
/comctl32_test.exe
$(DLLEXT
)
96 cp
$(DLLDIR
)/comctl32
/tests
/comctl32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
97 ddraw_test.exe
$(DLLEXT
): $(DLLDIR
)/ddraw
/tests
/ddraw_test.exe
$(DLLEXT
)
98 cp
$(DLLDIR
)/ddraw
/tests
/ddraw_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
99 dinput_test.exe
$(DLLEXT
): $(DLLDIR
)/dinput
/tests
/dinput_test.exe
$(DLLEXT
)
100 cp
$(DLLDIR
)/dinput
/tests
/dinput_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
101 dsound_test.exe
$(DLLEXT
): $(DLLDIR
)/dsound
/tests
/dsound_test.exe
$(DLLEXT
)
102 cp
$(DLLDIR
)/dsound
/tests
/dsound_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
103 gdi32_test.exe
$(DLLEXT
): $(DLLDIR
)/gdi
/tests
/gdi32_test.exe
$(DLLEXT
)
104 cp
$(DLLDIR
)/gdi
/tests
/gdi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
105 iphlpapi_test.exe
$(DLLEXT
): $(DLLDIR
)/iphlpapi
/tests
/iphlpapi_test.exe
$(DLLEXT
)
106 cp
$(DLLDIR
)/iphlpapi
/tests
/iphlpapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
107 kernel32_test.exe
$(DLLEXT
): $(DLLDIR
)/kernel
/tests
/kernel32_test.exe
$(DLLEXT
)
108 cp
$(DLLDIR
)/kernel
/tests
/kernel32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
109 lz32_test.exe
$(DLLEXT
): $(DLLDIR
)/lzexpand
/tests
/lz32_test.exe
$(DLLEXT
)
110 cp
$(DLLDIR
)/lzexpand
/tests
/lz32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
111 mapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/mapi32
/tests
/mapi32_test.exe
$(DLLEXT
)
112 cp
$(DLLDIR
)/mapi32
/tests
/mapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
113 mlang_test.exe
$(DLLEXT
): $(DLLDIR
)/mlang
/tests
/mlang_test.exe
$(DLLEXT
)
114 cp
$(DLLDIR
)/mlang
/tests
/mlang_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
115 msacm32_test.exe
$(DLLEXT
): $(DLLDIR
)/msacm
/tests
/msacm32_test.exe
$(DLLEXT
)
116 cp
$(DLLDIR
)/msacm
/tests
/msacm32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
117 mscms_test.exe
$(DLLEXT
): $(DLLDIR
)/mscms
/tests
/mscms_test.exe
$(DLLEXT
)
118 cp
$(DLLDIR
)/mscms
/tests
/mscms_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
119 msi_test.exe
$(DLLEXT
): $(DLLDIR
)/msi
/tests
/msi_test.exe
$(DLLEXT
)
120 cp
$(DLLDIR
)/msi
/tests
/msi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
121 msvcrt_test.exe
$(DLLEXT
): $(DLLDIR
)/msvcrt
/tests
/msvcrt_test.exe
$(DLLEXT
)
122 cp
$(DLLDIR
)/msvcrt
/tests
/msvcrt_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
123 msvcrtd_test.exe
$(DLLEXT
): $(DLLDIR
)/msvcrtd
/tests
/msvcrtd_test.exe
$(DLLEXT
)
124 cp
$(DLLDIR
)/msvcrtd
/tests
/msvcrtd_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
125 netapi32_test.exe
$(DLLEXT
): $(DLLDIR
)/netapi32
/tests
/netapi32_test.exe
$(DLLEXT
)
126 cp
$(DLLDIR
)/netapi32
/tests
/netapi32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
127 ntdll_test.exe
$(DLLEXT
): $(DLLDIR
)/ntdll
/tests
/ntdll_test.exe
$(DLLEXT
)
128 cp
$(DLLDIR
)/ntdll
/tests
/ntdll_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
129 ole32_test.exe
$(DLLEXT
): $(DLLDIR
)/ole32
/tests
/ole32_test.exe
$(DLLEXT
)
130 cp
$(DLLDIR
)/ole32
/tests
/ole32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
131 oleaut32_test.exe
$(DLLEXT
): $(DLLDIR
)/oleaut32
/tests
/oleaut32_test.exe
$(DLLEXT
)
132 cp
$(DLLDIR
)/oleaut32
/tests
/oleaut32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
133 psapi_test.exe
$(DLLEXT
): $(DLLDIR
)/psapi
/tests
/psapi_test.exe
$(DLLEXT
)
134 cp
$(DLLDIR
)/psapi
/tests
/psapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
135 quartz_test.exe
$(DLLEXT
): $(DLLDIR
)/quartz
/tests
/quartz_test.exe
$(DLLEXT
)
136 cp
$(DLLDIR
)/quartz
/tests
/quartz_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
137 rpcrt4_test.exe
$(DLLEXT
): $(DLLDIR
)/rpcrt4
/tests
/rpcrt4_test.exe
$(DLLEXT
)
138 cp
$(DLLDIR
)/rpcrt4
/tests
/rpcrt4_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
139 rsabase_test.exe
$(DLLEXT
): $(DLLDIR
)/rsabase
/tests
/rsabase_test.exe
$(DLLEXT
)
140 cp
$(DLLDIR
)/rsabase
/tests
/rsabase_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
141 rsaenh_test.exe
$(DLLEXT
): $(DLLDIR
)/rsaenh
/tests
/rsaenh_test.exe
$(DLLEXT
)
142 cp
$(DLLDIR
)/rsaenh
/tests
/rsaenh_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
143 shell32_test.exe
$(DLLEXT
): $(DLLDIR
)/shell32
/tests
/shell32_test.exe
$(DLLEXT
)
144 cp
$(DLLDIR
)/shell32
/tests
/shell32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
145 shlwapi_test.exe
$(DLLEXT
): $(DLLDIR
)/shlwapi
/tests
/shlwapi_test.exe
$(DLLEXT
)
146 cp
$(DLLDIR
)/shlwapi
/tests
/shlwapi_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
147 urlmon_test.exe
$(DLLEXT
): $(DLLDIR
)/urlmon
/tests
/urlmon_test.exe
$(DLLEXT
)
148 cp
$(DLLDIR
)/urlmon
/tests
/urlmon_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
149 user32_test.exe
$(DLLEXT
): $(DLLDIR
)/user
/tests
/user32_test.exe
$(DLLEXT
)
150 cp
$(DLLDIR
)/user
/tests
/user32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
151 wininet_test.exe
$(DLLEXT
): $(DLLDIR
)/wininet
/tests
/wininet_test.exe
$(DLLEXT
)
152 cp
$(DLLDIR
)/wininet
/tests
/wininet_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
153 version_test.exe
$(DLLEXT
): $(DLLDIR
)/version
/tests
/version_test.exe
$(DLLEXT
)
154 cp
$(DLLDIR
)/version
/tests
/version_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
155 winmm_test.exe
$(DLLEXT
): $(DLLDIR
)/winmm
/tests
/winmm_test.exe
$(DLLEXT
)
156 cp
$(DLLDIR
)/winmm
/tests
/winmm_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
157 winspool.drv_test.exe
$(DLLEXT
): $(DLLDIR
)/winspool
/tests
/winspool.drv_test.exe
$(DLLEXT
)
158 cp
$(DLLDIR
)/winspool
/tests
/winspool.drv_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@
159 ws2_32_test.exe
$(DLLEXT
): $(DLLDIR
)/winsock
/tests
/ws2_32_test.exe
$(DLLEXT
)
160 cp
$(DLLDIR
)/winsock
/tests
/ws2_32_test.exe
$(DLLEXT
) $@
&& $(STRIP
) $@