summaryrefslogtreecommitdiff
path: root/templates/make.mpd
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2006-10-26 15:45:22 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2006-10-26 15:45:22 +0000
commit6393096c05c8b6001f56c10ae74be7484a58e045 (patch)
tree82b189219170a02f221d289820e53a10d0af842d /templates/make.mpd
parenta4dd10ffa8be9cb56a1719f8655c297e89dcb81e (diff)
downloadMPC-6393096c05c8b6001f56c10ae74be7484a58e045.tar.gz
ChangeLogTag: Thu Oct 26 15:45:18 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'templates/make.mpd')
-rw-r--r--templates/make.mpd20
1 files changed, 13 insertions, 7 deletions
diff --git a/templates/make.mpd b/templates/make.mpd
index de5acbdb..a98c32b5 100644
--- a/templates/make.mpd
+++ b/templates/make.mpd
@@ -118,20 +118,23 @@ specialscript:
@<%chmod("chmod")%> 755 specialscript
<%endif%>
-<%if(prelink)%>
-<%prelink%>: specialscript $(OBJS)
- @specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
+<%if(prelinktarget)%>
+<%prelinktarget%>: specialscript $(OBJS)
+ @specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelinktarget%>
@$(RM) specialscript
-<%targetoutdir%><%obj_dir%><%noextension(prelink)%>$(OBJEXT): <%prelink%>
- $(COMPILE.cc) $(OUTPUT_OPTION) <%prelink%>
- @$(RM) <%prelink%>
+<%targetoutdir%><%obj_dir%><%noextension(prelinktarget)%>$(OBJEXT): <%prelinktarget%>
+ $(COMPILE.cc) $(OUTPUT_OPTION) <%prelinktarget%>
+ @$(RM) <%prelinktarget%>
<%endif%>
$(BTARGETDIR):
@$(MKDIR) "$@"
-$(BIN): $(BTARGETDIR)<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelink)%> <%targetoutdir%><%obj_dir%><%noextension(prelink)%>$(OBJEXT)<%endif%> $(OBJS)
+$(BIN): $(BTARGETDIR)<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelinktarget)%> <%targetoutdir%><%obj_dir%><%noextension(prelinktarget)%>$(OBJEXT)<%endif%> $(OBJS)
+<%if(prelink)%>
+ <%eval(prelink)%>
+<%endif%>
$(LINK.cc) $(OBJS) $(LDLIBS) $(OUTPUT_OPTION)
<%endif%>
@@ -149,6 +152,9 @@ $(SHLIB):
<%endif%>
$(SHLIB)<%if(version && versupport)%>.<%version%><%endif%>: $(SHTARGETDIR) <%if(tempinc)%>$(TEMPINCDIR) <%endif%>$(OBJS)
+<%if(prelink)%>
+ <%eval(prelink)%>
+<%endif%>
<%if(dmclink)%>
link /impl <%if(pch_source && pchsupport)%><%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT)+<%endif%><%foreach(source_files)%><%targetoutdir%><%obj_dir%><%noextension(source_file)%>$(OBJEXT)<%fornotlast("+")%><%endfor%>,$@,<%ldlibs%><%if(rc)%><%foreach(resource_files)%><%forfirst(",,")%><%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT)<%fornotlast("+")%><%endfor%><%endif%>
<%else%>