summaryrefslogtreecommitdiff
path: root/templates/make.mpd
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2006-12-14 14:34:44 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2006-12-14 14:34:44 +0000
commit5106ee1b63e11671f1e5f17c1a236f1b1e3b81c6 (patch)
tree3a2239f526738eb3cf5c7a9d252bdfbb1031c8b7 /templates/make.mpd
parent5d26c29ebd9bf0a5aa4a46b4a2a7c00dd8528f84 (diff)
downloadMPC-5106ee1b63e11671f1e5f17c1a236f1b1e3b81c6.tar.gz
ChangeLogTag: Thu Dec 14 14:30:58 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'templates/make.mpd')
-rw-r--r--templates/make.mpd20
1 files changed, 14 insertions, 6 deletions
diff --git a/templates/make.mpd b/templates/make.mpd
index c0838fa2..8203fda9 100644
--- a/templates/make.mpd
+++ b/templates/make.mpd
@@ -14,6 +14,9 @@ AR = <%ar("ar")%>
<%if(nm)%>
NM = <%nm%>
<%endif%>
+<%if(cxxint)%>
+CXXINT = <%cxxint%>
+<%endif%>
<%if(cputype)%>
CPUTYPE = <%cputype%>
<%endif%>
@@ -71,7 +74,7 @@ GENFLAGS = <%genflags("-O")%>
GENFLAGS = <%genflags("-g")%>
<%endif%>
<%endfor%>
-LDLIBS =<%foreach(libs)%> <%libopt%>"<%libname_prefix%><%lib%>$(LIBSUFFIX)"<%endfor%><%foreach(lit_libs)%> <%libopt%>"<%lit_lib%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
+LDLIBS =<%foreach(libs)%> <%libopt%><%libname_prefix%><%lib%>$(LIBSUFFIX)<%endfor%><%foreach(lit_libs)%> <%libopt%>"<%lit_lib%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
OBJS =<%if(pch_source && pchsupport)%> <%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT)<%endif%><%foreach(source_files)%> <%targetoutdir%><%obj_dir%><%noextension(source_file)%>$(OBJEXT)<%endfor%><%if(rc)%><%foreach(resource_files)%> <%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT)<%endfor%><%endif%>
<%if(lib_ext)%>
<%if(staticname)%>
@@ -114,28 +117,33 @@ all:<%if(prebuild)%> __prebuild__<%endif%> $(BIN)<%if(postbuild)%> __postbuild__
<%if(specialscript)%>
specialscript:
- @echo '<%specialscript%>' > specialscript
- @<%chmod("chmod")%> 755 specialscript
+ @echo '<%specialscript%>' > $@
+ @<%chmod("chmod")%> 755 $@
<%endif%>
<%if(prelinktarget)%>
<%prelinktarget%>: specialscript $(OBJS)
- @specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%foreach(libpaths)%><%if(targetoutdir)%><%libpath%><%slash%><%targetoutdir%> <%endif%><%libpath%><%fornotlast(" ")%><%endfor%><%else%>.<%endif%>" <%prelinktarget%>
+ @specialscript "$(NM)" "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%foreach(libpaths)%><%if(targetoutdir)%><%libpath%><%slash%><%targetoutdir%> <%endif%><%libpath%><%fornotlast(" ")%><%endfor%><%else%>.<%endif%>" "$(BIN)" "$@"
@$(RM) specialscript
-<%targetoutdir%><%obj_dir%><%noextension(prelinktarget)%>$(OBJEXT): <%prelinktarget%>
+<%if(prelinktargetobj)%>
+<%targetoutdir%><%obj_dir%><%prelinktargetobj%>: <%prelinktarget%>
$(COMPILE.cc) $(OUTPUT_OPTION) <%prelinktarget%>
@$(RM) <%prelinktarget%>
<%endif%>
+<%endif%>
$(BTARGETDIR):
@$(MKDIR) "$@"
-$(BIN): $(BTARGETDIR)<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelinktarget)%> <%targetoutdir%><%obj_dir%><%noextension(prelinktarget)%>$(OBJEXT)<%endif%> $(OBJS)
+$(BIN): $(BTARGETDIR)<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelinktargetobj)%> <%targetoutdir%><%obj_dir%><%prelinktargetobj%><%else%><%if(prelinktarget)%> <%prelinktarget%><%endif%><%endif%> $(OBJS)
<%if(prelink)%>
<%eval(prelink)%>
<%endif%>
$(LINK.cc) $(OBJS) $(LDLIBS) $(OUTPUT_OPTION)
+<%if(postlinkbinary)%>
+ <%postlinkbinary%>
+<%endif%>
<%endif%>
<%if(dll_ext && sharedname)%>