summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/internal/Makefile.win10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/internal/Makefile.win b/test/internal/Makefile.win
index efda2da87..a881f0781 100644
--- a/test/internal/Makefile.win
+++ b/test/internal/Makefile.win
@@ -76,15 +76,17 @@ CFLAGS = /nologo /c /W3 /Gm /EHsc /Zi /Od $(INCLUDES) \
$(STATIC_CFLAGS) $(DEBUG_CFLAGS) /D "BINPATH=$(OUTDIR:\=/)" \
/D _DEBUG /D WIN32 /Fo"$(INTDIR)/" /FD
-LD_LIBS = $(LOCAL_LIB) kernel32.lib advapi32.lib ws2_32.lib wsock32.lib \
+LD_LIBS = kernel32.lib advapi32.lib ws2_32.lib wsock32.lib \
ole32.lib shell32.lib rpcrt4.lib
LDFLAGS = /nologo /debug /subsystem:console /incremental:no
SHLDFLAGS = /nologo /dll /debug /subsystem:windows /incremental:no
-.c{$(OUTDIR)}.exe:
- $(CL) $(CFLAGS) -c $** -Fd$(INTDIR)\ $(INCLUDES)
- $(LD) $(LDFLAGS) /out:"$@" $*.obj $(LD_LIBS)
+.c{$(INTDIR)}.obj:
+ $(CL) $(CFLAGS) -c $< -Fd$(INTDIR)\ $(INCLUDES)
+
+$(OUTDIR)\testucs.exe: $(INTDIR)\testucs.obj $(LOCAL_LIB)
+ $(LD) $(LDFLAGS) /out:"$@" $** $(LD_LIBS)
@if exist "$@.manifest" \
mt.exe -manifest "$@.manifest" -outputresource:$@;1