summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_chorus.GNU
blob: efce4c7d7c3fb2b8e506e2e105c3322ce082f0d4 (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
# $Id$

# Chorus 3.1b with GNU g++ 2.7.2

include         $(CLASSIXDIR)/dtool/htgt-cf.rf
INC_DIR         = $(CLASSIXDIR)/include
BIN_DIR		= 
LIB_DIR		= $(CLASSIXDIR)/lib
#CC		= gcc
#CXX		= g++
CXX             = $(CC)
CFLAGS		+= $(DCFLAGS) -w -O2
CCFLAGS		+= $(CFLAGS) -fno-implicit-templates	\
		   -fno-strict-prototypes     		\
		   -nostdinc 				\
		   -D_POSIX_THREADS 			\
		   -D_POSIX_THREAD_SAFE_FUNCTIONS
DCFLAGS		+= -g
INCLDIRS	+= -I$(INC_DIR)/posix			\
		   -I$(INC_DIR)/stdc			\
		   -I$(INC_DIR)/chorus/ 		\
		   -I$(INC_DIR)/chorus/iom		\
		   -I$(INC_DIR)/CC
DLD             =
LD              = $(CXX)
LDFLAGS		+= -r -Ur -nostdlib			\
		   -L$(LIB_DIR)/CC			\
		   -L$(LIB_DIR)/classix
#LIBS		+= -lC -lcx.u
PIC		= -fPIC
#AR		= ar
AR		= $(XDIR)/bin/ar
#ARFLAGS		= rv
ARFLAGS		= srv
#RANLIB		= /bin/true
RANLIB		= $(XDIR)/bin/ranlib
PRELIB	= (echo "main() { }" > gcctemp.c && \
	  $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
	  $(LD) $^ $(LDFLAGS) $(LIBS); \
	  status=$$?; rm -f gcctemp.* a.out; exit $$status)
#### don't build shared objects:
BUILD           = $(VOBJS) $(VLIB) $(VBIN)