tests: Use the Wine import libraries when compiling with MinGW.
This commit is contained in:
parent
0e3eda3425
commit
83a21c6886
|
@ -33,12 +33,12 @@ all: $(TESTPROGRAM)
|
|||
# Rules for .so main module
|
||||
|
||||
$(MODULE).so: $(OBJS) $(RC_SRCS:.rc=.res) Makefile.in
|
||||
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mconsole $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(LIBPORT) $(ALL_LIBS)
|
||||
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mconsole $(APPMODE) $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(LIBPORT) $(ALL_LIBS)
|
||||
|
||||
# Rules for .exe main module
|
||||
|
||||
$(MODULE): $(OBJS) $(RCOBJS) Makefile.in
|
||||
$(CC) $(OBJS) $(RCOBJS) -o $@ $(ALL_LIBS)
|
||||
$(CC) $(APPMODE) $(OBJS) $(RCOBJS) -o $@ -L$(DLLDIR) $(IMPORTS:%=-L$(DLLDIR)/%) $(ALL_LIBS)
|
||||
|
||||
# Rules for building test list
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@ TOPOBJDIR = ../../..
|
|||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
TESTDLL = msvcrt.dll
|
||||
IMPORTS = msvcrt kernel32
|
||||
APPMODE = -mno-cygwin
|
||||
IMPORTS = kernel32
|
||||
MODCFLAGS = @BUILTINFLAG@
|
||||
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt -I$(SRCDIR)/..
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@ TOPOBJDIR = ../../..
|
|||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
TESTDLL = msvcrtd.dll
|
||||
IMPORTS = msvcrt kernel32
|
||||
APPMODE = -mno-cygwin
|
||||
IMPORTS = kernel32
|
||||
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
|
||||
MODCFLAGS = @BUILTINFLAG@
|
||||
|
||||
|
|
Loading…
Reference in New Issue