mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-21 22:47:58 +01:00
78 lines
1.9 KiB
Plaintext
78 lines
1.9 KiB
Plaintext
#
|
|
# $Id: //poco/1.4/build/config/Darwin-clang#4 $
|
|
#
|
|
# Darwin
|
|
#
|
|
# Build settings for Mac OS X 10.6 (clang++)
|
|
# The build settings defined in this file are compatible
|
|
# with XCode 4 C++ projects.
|
|
#
|
|
# 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)
|
|
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
|
|
|
|
|
#
|
|
# Tools
|
|
#
|
|
CC = $(shell xcrun -find clang)
|
|
CXX = $(shell xcrun -find clang++)
|
|
LINK = $(CXX) -bind_at_load
|
|
LIB = libtool -static -o
|
|
RANLIB = ranlib
|
|
SHLIB = $(CXX) -dynamiclib -o $@
|
|
DYLIB = $(CXX) -dynamic -bundle -read_only_relocs suppress -Wl,-bind_at_load -o $@
|
|
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
|
|
#
|
|
CFLAGS = $(ARCHFLAGS)
|
|
CXXFLAGS = $(ARCHFLAGS) -stdlib=libc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
|
LINKFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
|
SHLIBFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
|
DYLIBFLAGS = $(ARCHFLAGS)
|
|
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
|
|
#
|
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64
|
|
|
|
#
|
|
# System Specific Libraries
|
|
#
|
|
SYSLIBS = -ldl
|