summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_integrity_ghs.GNU
blob: 17786c44e362f2c15c3537b97638fdb046011892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CROSS-COMPILE = 1

ifndef debug
  debug = 1
endif
ifndef optimize
  optimize = 1
endif
ifndef rtti
  rtti = 0
endif # rtti
shared_libs =
static_libs = 1
ifndef exceptions
  exceptions = 1
endif

#### CPU type
ifndef CPU
  CPU = ppc
endif # CPU

INTEGRITYTARGET = 1

#### Green Hills location, and target-specific definitions.
ifndef GHSROOT
  GHSROOT = /home/scooter2/i40_solaris2
endif

ifndef RTOSROOT
  RTOSROOT = /export/integrity/rtos
endif

ifndef BSP
  BSP = mcp750
endif

CC = $(GHSROOT)/cc$(CPU)
CXX = $(GHSROOT)/cx$(CPU)

# undefine "vector" because it's predefined for 7400 boards
IOPS = -bspname=$(RTOSROOT)/target/$(BSP).bld -os_dir $(RTOSROOT) --one_instantiation_per_object -non_shared -Uvector
ifeq (1, $(exceptions))
   IOPS += --exceptions
   override rtti = 1
endif # exceptions

CCFLAGS  += $(CFLAGS) -integrate -dynamic -I$(RTOSROOT)/INTEGRITY-include-SCA $(IOPS) -bspfile=$(ACE_ROOT)/tests/ACE.bsp $(ACE_ROOT)/tests/INTEGRITY.ld
DCFLAGS  += -G
SOFLAGS  += -shared
DLD      = $(CXX)
LD       = $(CXX)
LDLIBS += -lACE -lshm_client -lnet -livfssca -lposixsca -lsocket
LDFLAGS = -lACE -lshm_client -lnet -livfssca -lposixsca -lsocket
#LDFLAGS  = --no_auto_instantiation
#OCFLAGS  += -OL -OM
PIC      =
AR := $(CXX) -archive $(IOPS)
ARFLAGS = -o


ifeq (0, $(rtti))
  CCFLAGS += --no_rtti
endif # rtti