Debian Codegraph @

include/makeinclude/platform_macosx_icc.GNU

raw
1
2 threads ?= 1
3 debug ?= 1
4 optimize ?= 0
5 ssl ?= 1
6 versioned_so ?= 0
7 universal ?= 0
8 insure ?= 0
9
10 AR = xiar
11
12 ifeq ($(insure),0)
13 CC = icc
14 CXX = icpc
15 endif
16
17 ifndef CXX_VERSION
18 CXX_VERSION := $(shell $(CXX) --version)
19 endif
20
21 ifeq (10.0,$(findstring 10.0,$(CXX_VERSION)))
22 CFLAGS += -wd1684
23 endif
24 ifeq (10.1,$(findstring 10.1,$(CXX_VERSION)))
25 CFLAGS += -wd1684
26 endif
27
28 no_hidden_visibility ?= 1
29
30 ifeq ($(inline),0)
31 CPPFLAGS += -fno-inline
32 endif
33
34 ifeq ($(fast),1)
35 CPPFLAGS += -fast
36 endif
37
38 ifeq ($(ipo),1)
39 CPPFLAGS += -ipo
40 endif
41
42 CFLAGS += -w1
43 ifeq ($(threads),1)
44 CPPFLAGS += -D_REENTRANT $(PLATFORM_AIO_SUPPORT)
45 endif # threads
46
47 CCFLAGS += $(CFLAGS) -ip
48 DCFLAGS += -g -debug full
49 DLD = $(CXX)
50 LD = $(CXX)
51 LIBS += -ldl
52 RANLIB = ranlib
53 ifeq ($(threads),1)
54 LIBS += -lpthread
55 ifeq (-DACE_HAS_AIO_CALLS,$(PLATFORM_AIO_SUPPORT))
56 LIBS += -lrt
57 endif
58 endif
59
60 OCFLAGS += -O3
61
62 # Disable floating point optimizer solves problem with
63 # min/max float values in the TAO_IDL compiler tests
64 # If these options are not passed we can get overflows
65 # when testing min/max
66 ifeq ($(SYSARCH),ia64)
67 CPPFLAGS += -mp
68 else
69 CPPFLAGS += -fp-model double
70 endif
71
72 ifeq ($(optimize),0)
73 # Disable all optimizing in code
74 CPPFLAGS += -O0
75 endif
76
77 SOEXT = dylib
78 SOFLAGS += $(CPPFLAGS) -dynamiclib
79 SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.dylib $<; \
80 $(SOLINK.cc) -o $@ $(LDFLAGS) $(SOFLAGS) $(VSHDIR)$*.o
81 PRELIB = @true
82
83 ifeq ($(shared_libs), 1)
84 ifneq ($static_libs_only), 1)
85 LDFLAGS +=
86
87 ifneq ($(no_hidden_visibility),1)
88 CCFLAGS += -fvisibility=hidden
89 else
90 CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
91 endif # no_hidden_visibility
92 endif
93 endif
94
95
96 # Added line below to support "Executable Shared Object" files (as
97 # needed by the service configurator).
98 # Marius Kjeldahl <[email protected], [email protected]>
99 ifeq ($(threads),1)
100 ESOBUILD = $(COMPILEESO.cc) $(PIC) -dynamiclib -o $(VSHDIR)$*.dylib $<
101 ifndef PRELIB
102 PRELIB = @true
103 endif # ! PRELIB
104 endif