summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2005-08-22 12:12:14 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2005-08-22 12:12:14 +0000
commitdcf754577e959d909494623795034be40e2b5e9f (patch)
tree3c65b2c86e0b17fedac95ccc293a217f41c0797f /templates
parent7efefc7676565a575ce72fd46e7c7f807e2fa346 (diff)
downloadMPC-dcf754577e959d909494623795034be40e2b5e9f.tar.gz
ChangeLogTag: Mon Aug 22 07:11:37 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/make.mpd6
-rw-r--r--templates/makedll.mpt24
2 files changed, 28 insertions, 2 deletions
diff --git a/templates/make.mpd b/templates/make.mpd
index 14b12d22..2bebf0c9 100644
--- a/templates/make.mpd
+++ b/templates/make.mpd
@@ -26,13 +26,15 @@ CPPFLAGS = $(PICFLAGS) $(GENFLAGS)<%if(compile_flags)%> <%compile_flags%><%
OBJEXT = <%obj_ext%>
OUTPUT_OPTION = <%output_option(-o \"$@\")%>
COMPILE.cc = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
+<%foreach(platforms)%>
<%if(build64bit && arflags64)%>
-ARFLAGS = <%arflags64%>
+ARFLAGS = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags64%>
<%else%>
<%if(arflags)%>
-ARFLAGS = <%arflags%>
+ARFLAGS = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
<%endif%>
<%endif%>
+<%endfor%>
<%if(tempinc)%>
TEMPINCDIR = <%tempinc%><%slash%><%project_name%>
<%endif%>
diff --git a/templates/makedll.mpt b/templates/makedll.mpt
index d93a85ce..58e9921c 100644
--- a/templates/makedll.mpt
+++ b/templates/makedll.mpt
@@ -138,6 +138,14 @@ NCC {
platforms = tandem
}
+ghsppc {
+ cxx = cxppc
+ ar = cxppc
+ arflags = -archive -o
+ compilerflags = --one_instantiation_per_object --exceptions
+ platforms = integrity
+}
+
// ***********************************************************************
// Platform Section
// ***********************************************************************
@@ -236,4 +244,20 @@ tandem {
extracppflags = -D_REENTRANT
}
+// For Integrity, the following should be set as environment variables, on
+// the make command line or within a verbatim section in your mpc file.
+//
+// GHSROOT The full path to your Green Hills installation.
+// RTOSROOT The full path to your BSP installation (probably $GHSROOT).
+// BSP The BSP name (ex. sim800).
+// TARGET_BSP The full path to your target BSP.
+// TARGET_LD The full path to your target ld file.
+//
+integrity {
+ dll_ext =
+ ldlibs = -lshm_client -lnet -livfssca -lposixsca
+ extraarflags = -bspname=$(RTOSROOT)/target/$(BSP).bld
+ extracppflags = -integrate -dynamic -bspname=$(RTOSROOT)/target/$(BSP).bld -os_dir $(GHSROOT) -non_shared -Uvector -bspfile=$(TARGET_BSP) $(TARGET_LD)
+}
+
conditional_include "user_makedll"