blob: cc0a6db11aac81b9b4ea0197c11fe31cd96c0670 (
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
|
# $Id$
#
# QNX/RTP hosted, using gcc-2.95.2
inline ?= 1
debug ?= 1
optimize ?= 0
exceptions ?= 1
threads ?= 1
ifeq ($(exceptions),1)
CCFLAGS += -fexceptions
LDFLAGS += -fexceptions
else
CCFLAGS += -fno-exceptions
LDFLAGS += -fno-exceptions
endif # ! exceptions
ifeq ($(inline),1)
CCFLAGS += -finline-functions
else
CCFLAGS += -fno-inline
endif # inline
ifeq ($(debug),1)
DCFLAGS += -gdwarf-2
else # debug excludes optimize due to g++ internal compiler error
ifeq ($(optimize),1)
OCFLAGS += -O3
endif #optimize
endif #debug
CC ?= gcc
CXX ?= g++
CFLAGS += -pipe -W -Wall -Wpointer-arith
DLD = $(CXX)
LD = $(CXX)
LIBS += -lsocket -lstdc++ -lm
PIC = -fPIC
AR ?= ar
ARFLAGS = ruv
SOFLAGS += $(CPPFLAGS) -shared
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = @true
# Test for template instantiation, add to SOFLAGS if SONAME set,
# add -E to LDFLAGS if using GNU ld
#
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
|