summaryrefslogtreecommitdiff
path: root/MSVC/Tools/master.mak
diff options
context:
space:
mode:
Diffstat (limited to 'MSVC/Tools/master.mak')
-rw-r--r--MSVC/Tools/master.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/MSVC/Tools/master.mak b/MSVC/Tools/master.mak
index 4243a99..511c6c4 100644
--- a/MSVC/Tools/master.mak
+++ b/MSVC/Tools/master.mak
@@ -150,7 +150,9 @@ _RMDIR=deltree /y
#default compile and link for c++ files building an exe
#note: name.obj and name.exe must match
.obj.exe:
- $(_LINK) $(_LFLAGS) $(_LIBS) $**
+ if not exist $*.res $(_LINK) /SUBSYSTEM:CONSOLE $(_LFLAGS) $(_LIBS) $*.obj
+ if exist $*.res $(_LINK) /SUBSYSTEM:CONSOLE $(_LFLAGS) $(_LIBS) $*.obj $*.res
+ if exist $*.paq copy /b $*.exe+$*.paq $*.exe
#default compile and link for c++ files building a dll
.obj.dll: