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
|
2004-03-09 05:54:07 +01:00
|
|
|
IMPORTS = comctl32 user32 wsock32
|
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
|
|
|
|
2004-06-16 00:45:15 +02:00
|
|
|
RC_BINSRC = winetest.rc
|
2004-01-15 02:48:05 +01:00
|
|
|
RC_BINARIES = wine.ico
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2004-08-11 22:59:09 +02:00
|
|
|
TESTBINS = \
|
|
|
|
advapi32_test.exe$(DLLEXT) \
|
|
|
|
comctl32_test.exe$(DLLEXT) \
|
|
|
|
dsound_test.exe$(DLLEXT) \
|
|
|
|
gdi32_test.exe$(DLLEXT) \
|
|
|
|
iphlpapi_test.exe$(DLLEXT) \
|
|
|
|
kernel32_test.exe$(DLLEXT) \
|
|
|
|
mapi32_test.exe$(DLLEXT) \
|
|
|
|
mlang_test.exe$(DLLEXT) \
|
|
|
|
msacm32_test.exe$(DLLEXT) \
|
|
|
|
msvcrt_test.exe$(DLLEXT) \
|
|
|
|
msvcrtd_test.exe$(DLLEXT) \
|
|
|
|
netapi32_test.exe$(DLLEXT) \
|
|
|
|
ntdll_test.exe$(DLLEXT) \
|
|
|
|
oleaut32_test.exe$(DLLEXT) \
|
|
|
|
psapi_test.exe$(DLLEXT) \
|
|
|
|
rpcrt4_test.exe$(DLLEXT) \
|
|
|
|
shell32_test.exe$(DLLEXT) \
|
|
|
|
shlwapi_test.exe$(DLLEXT) \
|
|
|
|
urlmon_test.exe$(DLLEXT) \
|
|
|
|
user32_test.exe$(DLLEXT) \
|
|
|
|
version_test.exe$(DLLEXT) \
|
|
|
|
wininet_test.exe$(DLLEXT) \
|
|
|
|
winmm_test.exe$(DLLEXT) \
|
|
|
|
winspool.drv_test.exe$(DLLEXT) \
|
|
|
|
ws2_32_test.exe$(DLLEXT)
|
2003-12-04 03:01:39 +01:00
|
|
|
|
|
|
|
@MAKE_PROG_RULES@
|
|
|
|
|
|
|
|
# Special rules
|
|
|
|
|
2004-06-16 00:45:15 +02:00
|
|
|
tests.rc: maketest Makefile.in
|
2004-03-25 00:40:06 +01:00
|
|
|
$(SRCDIR)/maketest $(TOPSRCDIR) $(TESTBINS) > $@ || ( $(RM) $@ && exit 1 )
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2004-06-16 21:04:11 +02:00
|
|
|
winetest.res: tests.rc $(TESTBINS)
|
2003-12-04 03:01:39 +01:00
|
|
|
|
|
|
|
clean::
|
2004-06-16 00:45:15 +02:00
|
|
|
$(RM) tests.rc dist.res winetest-dist winetest-dist.exe $(TESTBINS)
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2004-06-16 00:45:15 +02:00
|
|
|
depend: tests.rc
|
2003-12-04 03:01:39 +01:00
|
|
|
|
2004-06-16 00:45:15 +02:00
|
|
|
# Rules for building distributable executable
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
|
|
|
|
dist: winetest-dist.exe$(DLLEXT) winetest-dist$(EXEEXT)
|
|
|
|
|
|
|
|
winetest-dist.exe.so: $(ALL_OBJS) dist.res Makefile.in
|
|
|
|
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(ALL_OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
|
|
|
|
|
|
|
|
winetest-dist: $(WINEWRAPPER)
|
|
|
|
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
|
|
|
|
|
|
|
|
winetest-dist.exe: $(ALL_OBJS) dist.res.o Makefile.in
|
|
|
|
$(CC) $(APPMODE) $(ALL_OBJS) dist.res.o -o $@ $(DELAYIMPORTS:%=-l%) $(ALL_LIBS)
|
|
|
|
|
|
|
|
dist.res: winetest.rc tests.rc build.id build.nfo tests.url $(TESTBINS) $(RC_BINARIES)
|
|
|
|
|
|
|
|
# Rules for stripping the test executables
|
2003-12-04 03:01:39 +01:00
|
|
|
|
|
|
|
advapi32_test.exe$(DLLEXT): $(DLLDIR)/advapi32/tests/advapi32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/advapi32/tests/advapi32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
comctl32_test.exe$(DLLEXT): $(DLLDIR)/comctl32/tests/comctl32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/comctl32/tests/comctl32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-07-22 21:43:42 +02:00
|
|
|
dsound_test.exe$(DLLEXT): $(DLLDIR)/dsound/tests/dsound_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/dsound/tests/dsound_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
gdi32_test.exe$(DLLEXT): $(DLLDIR)/gdi/tests/gdi32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/gdi/tests/gdi32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-06-18 01:01:14 +02:00
|
|
|
iphlpapi_test.exe$(DLLEXT): $(DLLDIR)/iphlpapi/tests/iphlpapi_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/iphlpapi/tests/iphlpapi_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
kernel32_test.exe$(DLLEXT): $(DLLDIR)/kernel/tests/kernel32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/kernel/tests/kernel32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-06-18 01:01:14 +02:00
|
|
|
mapi32_test.exe$(DLLEXT): $(DLLDIR)/mapi32/tests/mapi32_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/mapi32/tests/mapi32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-08-11 20:53:02 +02:00
|
|
|
mlang_test.exe$(DLLEXT): $(DLLDIR)/mlang/tests/mlang_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/mlang/tests/mlang_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-05-05 03:01:31 +02:00
|
|
|
msacm32_test.exe$(DLLEXT): $(DLLDIR)/msacm/tests/msacm32_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/msacm/tests/msacm32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
msvcrt_test.exe$(DLLEXT): $(DLLDIR)/msvcrt/tests/msvcrt_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/msvcrt/tests/msvcrt_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-06-18 01:01:14 +02:00
|
|
|
msvcrtd_test.exe$(DLLEXT): $(DLLDIR)/msvcrtd/tests/msvcrtd_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/msvcrtd/tests/msvcrtd_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
netapi32_test.exe$(DLLEXT): $(DLLDIR)/netapi32/tests/netapi32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/netapi32/tests/netapi32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
ntdll_test.exe$(DLLEXT): $(DLLDIR)/ntdll/tests/ntdll_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/ntdll/tests/ntdll_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
oleaut32_test.exe$(DLLEXT): $(DLLDIR)/oleaut32/tests/oleaut32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/oleaut32/tests/oleaut32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-06-18 01:01:14 +02:00
|
|
|
psapi_test.exe$(DLLEXT): $(DLLDIR)/psapi/tests/psapi_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/psapi/tests/psapi_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
rpcrt4_test.exe$(DLLEXT): $(DLLDIR)/rpcrt4/tests/rpcrt4_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/rpcrt4/tests/rpcrt4_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
shell32_test.exe$(DLLEXT): $(DLLDIR)/shell32/tests/shell32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/shell32/tests/shell32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
shlwapi_test.exe$(DLLEXT): $(DLLDIR)/shlwapi/tests/shlwapi_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/shlwapi/tests/shlwapi_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
urlmon_test.exe$(DLLEXT): $(DLLDIR)/urlmon/tests/urlmon_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/urlmon/tests/urlmon_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
user32_test.exe$(DLLEXT): $(DLLDIR)/user/tests/user32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/user/tests/user32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
wininet_test.exe$(DLLEXT): $(DLLDIR)/wininet/tests/wininet_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/wininet/tests/wininet_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2004-06-18 01:01:14 +02:00
|
|
|
version_test.exe$(DLLEXT): $(DLLDIR)/version/tests/version_test.exe$(DLLEXT)
|
|
|
|
cp $(DLLDIR)/version/tests/version_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
winmm_test.exe$(DLLEXT): $(DLLDIR)/winmm/tests/winmm_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/winmm/tests/winmm_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
winspool.drv_test.exe$(DLLEXT): $(DLLDIR)/winspool/tests/winspool.drv_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/winspool/tests/winspool.drv_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
ws2_32_test.exe$(DLLEXT): $(DLLDIR)/winsock/tests/ws2_32_test.exe$(DLLEXT)
|
2004-01-15 01:22:10 +01:00
|
|
|
cp $(DLLDIR)/winsock/tests/ws2_32_test.exe$(DLLEXT) $@ && $(STRIP) $@
|
2003-12-04 03:01:39 +01:00
|
|
|
|
|
|
|
### Dependencies:
|