Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / include / makeinclude / platform_integrity_ghs.GNU
blob6b4994169e40e98a888caab247bce8ea4889b898
1 CROSS-COMPILE = 1
3 debug ?= 1
4 optimize ?= 1
6 shared_libs =
7 static_libs = 1
9 #### CPU type
10 ifndef CPU
11   CPU = ppc
12 endif # CPU
14 INTEGRITYTARGET = 1
16 #### Green Hills location, and target-specific definitions.
17 ifndef GHSROOT
18   GHSROOT = /home/scooter2/i40_solaris2
19 endif
21 ifndef RTOSROOT
22   RTOSROOT = /export/integrity/rtos
23 endif
25 ifndef BSP
26   BSP = mcp750
27 endif
29 ifndef TARGET_BSP
30   TARGET_BSP = $(ACE_ROOT)/tests/ACE.bsp
31 endif
33 ifndef TARGET_LD
34   TARGET_LD = $(ACE_ROOT)/tests/INTEGRITY.ld
35 endif
37 #### Set Integrity version
38 verline := $(shell ($(GHSROOT)/gversion 2>&1|grep "Green Hills Software"))
39 ifeq "$(verline)" ""
40   $(error Not Green Hills or the environment is not set-up)
41 endif
42 INTEGRITY_VERSION_STR := $(strip $(if ifeq $(word 4, $(verline)) "INTEGRITY", $(word 5, $(verline))))
43 ifeq "$(INTEGRITY_VERSION_STR)" ""
44   $(error This Green Hills setup is not for Integrity)
45 endif
46 ifeq "$(INTEGRITY_VERSION_STR)" "4.1.8"
47   CCFLAGS += -DINTEGRITY_VERSION=40108
48 endif
50 CC = $(GHSROOT)/cc$(CPU)
51 CXX = $(GHSROOT)/cx$(CPU)
53 # undefine "vector" because it's predefined for 7400 boards
54 IOPS = -bspname=$(RTOSROOT)/target/$(BSP).bld -os_dir $(RTOSROOT) --one_instantiation_per_object -non_shared -Uvector
55 IOPS += --exceptions
57 CCFLAGS  += $(CFLAGS) -integrate -dynamic -I$(RTOSROOT)/INTEGRITY-include-SCA $(IOPS) -bspfile=$(TARGET_BSP) $(TARGET_LD)
58 DCFLAGS  += -G
59 SOFLAGS  += -shared
60 DLD      = $(CXX)
61 LD       = $(CXX)
62 LIBS    += -lshm_client -lnet -livfssca -lposixsca -lsocket
63 PIC      =
64 AR := $(CXX) -archive $(IOPS)
65 ARFLAGS = -o