summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-26 19:31:12 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-26 19:31:12 +0000
commit351056bbd4485f326e194b6434d5a07630d0e660 (patch)
tree2ec849246b938156e561979f5a481f9f059f74a3
parent3040668e27021fc161a70db48eb17a0e8604f828 (diff)
downloadATCD-351056bbd4485f326e194b6434d5a07630d0e660.tar.gz
added suport for x86 targets
-rw-r--r--include/makeinclude/platform_vxworks5.x_ghs.GNU59
1 files changed, 54 insertions, 5 deletions
diff --git a/include/makeinclude/platform_vxworks5.x_ghs.GNU b/include/makeinclude/platform_vxworks5.x_ghs.GNU
index ef37590d90d..05abe36938d 100644
--- a/include/makeinclude/platform_vxworks5.x_ghs.GNU
+++ b/include/makeinclude/platform_vxworks5.x_ghs.GNU
@@ -1,7 +1,31 @@
# $Id$
-
+#
# VxWorks 5.2-5.3.1 with Green Hills 1.8.8
+#### Notes:
+#### 1) This file requires that your PATH be set to include the location
+#### of the Green Hills executables. And, it usually requires that
+#### WIND_BASE and WIND_HOST_TYPE be set.
+####
+#### 2) If your CPU is not a ppc, you'll need to set your CPU environment
+#### variable.
+####
+#### 3) You'll probably need to set your GHS environment variable to the
+#### location of your Green Hills executables.
+####
+#### Here's an example platform_macros.GNU file:
+####
+#### WIND_BASE = /project/doc/wind
+#### WIND_HOST_TYPE = sun4-solaris2
+####
+#### ifeq (,$(findstring /project/doc/green,$PATH))
+#### PATH +=:/project/doc/green
+#### endif # PATH
+####
+#### CPU = 86
+#### GHS = /project/doc/green/vx$(CPU)
+#### include $(ACE_ROOT)/include/makeinclude/platform_vxworks5.x_ghs.GNU
+
VXWORKS = 1
CROSS-COMPILE = 1
@@ -9,16 +33,41 @@ debug = 1
shared_libs =
static_libs = 1
-CC = cxvxppc
+
+#### CPU type
+ifndef CPU
+ CPU = ppc
+endif # CPU
+
+#### Green Hills location, and target-specific definitions.
+ifeq ($(CPU),86)
+ # Without this RANLIB, ld386 complains that it can't read the
+ # archive symbol table.
+ RANLIB = $(WIND_BASE)/host/$(WIND_HOST_TYPE)/bin/ranlib386
+ ifndef GHS
+ GHS = /project/doc/green/vx$(CPU)
+ endif # GHS
+else
+ifeq ($(CPU,ppc)
+ ifndef GHS
+ GHS = /appl/newgreen/vx$(CPU)603
+ endif # GHS
+endif # ppc
+endif # CPU
+
+
+CC = cxvx$(CPU)
CXX = $(CC)
CCFLAGS += $(CFLAGS) --no_rtti -tnone
DCFLAGS += -g
DLD = $(CXX)
LD = $(CXX)
LDFLAGS = --no_auto_instantiation
-LIBS += /appl/newgreen/vxppc603/ghsbltin.o /appl/newgreen/vxppc603/ghsmath.o
+LIBS += $(GHS)/ghsbltin.o $(GHS)/ghsmath.o
OCFLAGS += -OL -OM
PIC =
AR = ax
-ARFLAGS = rv
-RANLIB = /bin/true
+ARFLAGS = r
+ifndef RANLIB
+ RANLIB = /bin/true
+endif # RANLIB