| 1 |
# |
| 2 |
# QNX/RTP hosted, using GCC |
| 3 |
|
| 4 |
ACE_PLATFORM_CONFIG ?= config-qnx.h |
| 5 |
|
| 6 |
inline ?= 1 |
| 7 |
debug ?= 1 |
| 8 |
optimize ?= 0 |
| 9 |
threads ?= 1 |
| 10 |
pipes ?= 0 |
| 11 |
c++std ?= gnu++17 |
| 12 |
|
| 13 |
CCFLAGS += -fexceptions |
| 14 |
LDFLAGS += -fexceptions |
| 15 |
|
| 16 |
ifeq ($(inline),1) |
| 17 |
CCFLAGS += -finline-functions |
| 18 |
else |
| 19 |
CCFLAGS += -fno-inline |
| 20 |
endif # inline |
| 21 |
|
| 22 |
DCFLAGS += -ggdb |
| 23 |
DCCFLAGS += -ggdb |
| 24 |
|
| 25 |
ifeq ($(optimize),1) |
| 26 |
OCFLAGS += -O3 |
| 27 |
endif #optimize |
| 28 |
|
| 29 |
CC ?= qcc |
| 30 |
CXX ?= q++ |
| 31 |
DLD = $(CXX) |
| 32 |
LD = $(CXX) |
| 33 |
|
| 34 |
LIBS += -lsocket -lstdc++ -lm |
| 35 |
|
| 36 |
PIC = -fPIC |
| 37 |
ARFLAGS = ruv |
| 38 |
SOFLAGS += $(CPPFLAGS) -shared |
| 39 |
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< |
| 40 |
PRELIB = @true |
| 41 |
|
| 42 |
# Test for template instantiation, add to SOFLAGS if SONAME set, |
| 43 |
# add -E to LDFLAGS if using GNU ld |
| 44 |
# |
| 45 |
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU |