Build the tests with winegcc.
diff --git a/Make.rules.in b/Make.rules.in index f38c990..26ba955 100644 --- a/Make.rules.in +++ b/Make.rules.in
@@ -70,6 +70,7 @@ BIN2RES = $(TOOLSDIR)/tools/bin2res WMC = $(TOOLSDIR)/tools/wmc/wmc WIDL = $(TOOLSDIR)/tools/widl/widl +WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc RC = $(WRC) RC16 = $(WRC) RCFLAGS = --nostdinc $(INCLUDES) $(DEFS) $(EXTRARCFLAGS)
diff --git a/dlls/Maketest.rules.in b/dlls/Maketest.rules.in index 569f4bb..4b287fc 100644 --- a/dlls/Maketest.rules.in +++ b/dlls/Maketest.rules.in
@@ -33,15 +33,10 @@ all: $(TESTPROGRAM) -# Rule for main module spec file - -$(MODULE).spec.c: $(RC_SRCS:.rc=.res) $(OBJS) $(IMPORTLIBS) $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe $(MODULE) --mode cui $(RC_SRCS:.rc=.res) $(OBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) - # Rules for .so main module -$(MODULE).so: $(MODULE).spec.o $(OBJS) Makefile.in - $(LDDLL) $(MODULE).spec.o $(OBJS) -o $@ -L$(DLLDIR) $(ALL_LIBS) -lc +$(MODULE).so: $(OBJS) $(RC_SRCS:.rc=.res) $(IMPORTLIBS) Makefile.in + WINEBUILD=$(WINEBUILD) $(WINEGCC) -mconsole $(OBJS) $(RC_SRCS:.rc=.res) -o $@ -L$(DLLDIR) $(IMPORTS:%=-l%) $(ALL_LIBS) -lc # Rules for .exe main module