| 1 |
# -*- Makefile -*- |
| 2 |
|
| 3 |
# support for Mac OS X 10.4 (Tiger) |
| 4 |
# By default, this uses the default compiler selected using gcc_select. |
| 5 |
|
| 6 |
boost = 1 |
| 7 |
zzip = 1 |
| 8 |
zlib = 1 |
| 9 |
threads ?= 1 |
| 10 |
debug ?= 1 |
| 11 |
optimize ?= 0 |
| 12 |
ssl ?= 1 |
| 13 |
versioned_so ?= 0 |
| 14 |
universal ?= 0 |
| 15 |
|
| 16 |
ifeq (,$(no_hidden_visibility)) |
| 17 |
# Disable symbol visibility support by default. |
| 18 |
# |
| 19 |
# Apple's g++ 4 compiler doesn't appear to correctly support |
| 20 |
# visibility attributes, at least as well as the vanilla g++. |
| 21 |
no_hidden_visibility = 1 |
| 22 |
endif |
| 23 |
|
| 24 |
with_ld = macosx |
| 25 |
|
| 26 |
CC ?= gcc |
| 27 |
CXX ?= g++ |
| 28 |
DCCFLAGS += -g |
| 29 |
DCFLAGS += -g |
| 30 |
DLD = $(CXX) |
| 31 |
LD = $(CXX) |
| 32 |
#LIBS += -lstdc++.6 -lSystem -lSystemStubs |
| 33 |
|
| 34 |
OCFLAGS += -O2 |
| 35 |
RANLIB = ranlib |
| 36 |
SOEXT = dylib |
| 37 |
SOFLAGS += -dynamiclib |
| 38 |
SOBUILD = -o $(VSHDIR)$*.dylib $< |
| 39 |
|
| 40 |
# Test for template instantiation, add to SOFLAGS if versioned_so set, |
| 41 |
# add -E to LDFLAGS if using GNU ld |
| 42 |
ifeq ($(findstring g++,$(CXX)),)# |
| 43 |
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU |
| 44 |
else |
| 45 |
c++std ?= c++17 |
| 46 |
include $(ACE_ROOT)/include/makeinclude/platform_clang_common.GNU |
| 47 |
endif |
| 48 |
|
| 49 |
LDFLAGS += -flat_namespace |
| 50 |
|
| 51 |
ifeq ($(universal),1) |
| 52 |
CFLAGS += -arch i386 -arch ppc |
| 53 |
LDFLAGS += -arch i386 -arch ppc |
| 54 |
endif |