16 #### Green Hills location, and target-specific definitions.
18 GHSROOT = /home/scooter2/i40_solaris2
22 RTOSROOT = /export/integrity/rtos
30 TARGET_BSP = $(ACE_ROOT)/tests/ACE.bsp
34 TARGET_LD = $(ACE_ROOT)/tests/INTEGRITY.ld
37 #### Set Integrity version
38 verline := $(shell ($(GHSROOT)/gversion 2>&1|grep "Green Hills Software"))
40 $(error Not Green Hills or the environment is not set-up)
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)
46 ifeq "$(INTEGRITY_VERSION_STR)" "4.1.8"
47 CCFLAGS += -DINTEGRITY_VERSION=40108
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
57 CCFLAGS += $(CFLAGS) -integrate -dynamic -I$(RTOSROOT)/INTEGRITY-include-SCA $(IOPS) -bspfile=$(TARGET_BSP) $(TARGET_LD)
62 LIBS += -lshm_client -lnet -livfssca -lposixsca -lsocket
64 AR := $(CXX) -archive $(IOPS)