summaryrefslogtreecommitdiff
path: root/templates/nmake.mpd
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2006-01-23 19:06:51 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2006-01-23 19:06:51 +0000
commit669d85407df83b6b82be82bc327d143ff81fc38e (patch)
tree65d3d76edf5d289a042c528fdf88a25496f6a7d7 /templates/nmake.mpd
parent535d9adb7810972e35cc7696584bc40b52519fd3 (diff)
downloadMPC-669d85407df83b6b82be82bc327d143ff81fc38e.tar.gz
ChangeLogTag: Mon Jan 23 13:05:12 2006 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'templates/nmake.mpd')
-rw-r--r--templates/nmake.mpd7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/nmake.mpd b/templates/nmake.mpd
index 64593013..1b1c16ec 100644
--- a/templates/nmake.mpd
+++ b/templates/nmake.mpd
@@ -247,11 +247,14 @@ CPP_SWITCHES=/nologo <%if(add_compile)%><%add_compile%> <%endif%><%if(optimize)%
<%foreach(source_files)%>
SOURCE="<%source_file%>"
-"$(INTDIR)\<%noextension(source_file)%>.obj" : $(SOURCE) "$(INTDIR)"
<%if(dirname(source_file))%>
+"$(INTDIR)\<%noextension(source_file)%>.obj" : $(SOURCE) "$(INTDIR)"
@if not exist "$(INTDIR)\<%dirname(source_file)%>\$(NULL)" mkdir "$(INTDIR)\<%dirname(source_file)%>"
-<%endif%>
$(CPP) $(CPP_COMMON) /Fo"$(INTDIR)\<%noextension(source_file)%>.obj" $(SOURCE)
+<%else%>
+"$(INTDIR)\<%basenoextension(source_file)%>.obj" : $(SOURCE) "$(INTDIR)"
+ $(CPP) $(CPP_COMMON) /Fo"$(INTDIR)\<%basenoextension(source_file)%>.obj" $(SOURCE)
+<%endif%>
<%endfor%>
<%endif%>