2012-04-23 03:14:34 +02:00
|
|
|
#
|
2017-01-10 16:57:22 +01:00
|
|
|
# $Id$
|
2012-04-23 03:14:34 +02:00
|
|
|
#
|
2017-01-10 16:57:22 +01:00
|
|
|
# Darwin-clang
|
2012-04-23 03:14:34 +02:00
|
|
|
#
|
2017-01-10 16:57:22 +01:00
|
|
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, x86_64)
|
2012-04-23 03:14:34 +02:00
|
|
|
#
|
|
|
|
# NOTE: This build configuration will build 64-bit binaries.
|
|
|
|
# Use the Darwin32-clang build configuration to build 32-bit binaries.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# General Settings
|
|
|
|
#
|
|
|
|
LINKMODE ?= SHARED
|
|
|
|
|
|
|
|
POCO_TARGET_OSARCH ?= x86_64
|
|
|
|
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
2017-01-10 16:57:22 +01:00
|
|
|
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
|
|
|
OSFLAGS ?= -mmacosx-version-min=10.7
|
2012-04-23 03:14:34 +02:00
|
|
|
|
2017-01-10 16:57:22 +01:00
|
|
|
OPENSSL_DIR ?= /usr/local/opt/openssl
|
2015-10-05 09:29:40 +02:00
|
|
|
|
2013-03-24 20:47:55 +01:00
|
|
|
ifeq ($(POCO_TARGET_OSARCH),i386)
|
|
|
|
RORELOCS = -read_only_relocs suppress
|
|
|
|
endif
|
2012-04-23 03:14:34 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Tools
|
|
|
|
#
|
2016-12-29 11:20:58 +01:00
|
|
|
CC = $(shell xcrun -find clang)
|
|
|
|
CXX = $(shell xcrun -find clang++)
|
2012-04-23 03:14:34 +02:00
|
|
|
LINK = $(CXX) -bind_at_load
|
|
|
|
LIB = libtool -static -o
|
|
|
|
RANLIB = ranlib
|
2015-01-13 14:40:02 +01:00
|
|
|
SHLIB = $(CXX) -dynamiclib -Wl,-install_name,$(POCO_LIB_INSTALLDIR)/$(notdir \$@) -o $@
|
2013-03-31 23:28:53 +02:00
|
|
|
DYLIB = $(CXX) -dynamic -bundle $(RORELOCS) -Wl,-bind_at_load -o $@
|
2012-04-23 03:14:34 +02:00
|
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
|
|
STRIP =
|
|
|
|
DEP = $(POCO_BASE)/build/script/makedepend.clang
|
|
|
|
SHELL = sh
|
|
|
|
RM = rm -rf
|
|
|
|
CP = cp
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
|
|
|
|
#
|
|
|
|
# Extension for Shared Libraries
|
|
|
|
#
|
|
|
|
SHAREDLIBEXT = .$(target_version).dylib
|
|
|
|
SHAREDLIBLINKEXT = .dylib
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compiler and Linker Flags
|
|
|
|
#
|
2017-01-10 16:57:22 +01:00
|
|
|
CFLAGS = $(ARCHFLAGS) $(OSFLAGS)
|
|
|
|
CXXFLAGS = $(ARCHFLAGS) $(OSFLAGS) -std=c++03 -stdlib=libstdc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
|
|
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
|
|
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
|
|
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
2012-04-23 03:14:34 +02:00
|
|
|
STATICOPT_CC =
|
|
|
|
STATICOPT_CXX =
|
|
|
|
STATICOPT_LINK =
|
|
|
|
SHAREDOPT_CC = -fPIC
|
|
|
|
SHAREDOPT_CXX = -fPIC
|
|
|
|
SHAREDOPT_LINK =
|
|
|
|
DEBUGOPT_CC = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
|
|
|
DEBUGOPT_CXX = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
|
|
|
DEBUGOPT_LINK =
|
|
|
|
RELEASEOPT_CC = -DNDEBUG -Os -fasm-blocks
|
|
|
|
RELEASEOPT_CXX = -DNDEBUG -O2 -fasm-blocks
|
|
|
|
RELEASEOPT_LINK =
|
|
|
|
|
|
|
|
#
|
|
|
|
# System Specific Flags
|
|
|
|
#
|
2015-10-05 09:29:40 +02:00
|
|
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64 -I$(OPENSSL_DIR)/include
|
2012-04-23 03:14:34 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# System Specific Libraries
|
|
|
|
#
|
2017-01-10 16:57:22 +01:00
|
|
|
SYSLIBS = -L$(OPENSSL_DIR)/lib -ldl
|