poco/build/config/iPhone
2009-03-17 15:25:13 +00:00

78 lines
1.8 KiB
Plaintext

#
# $Id: //poco/1.3/build/config/iPhone#1 $
#
# iPhone
#
# Build settings for iPhone OS, using Apple's iPhone SDK
#
#
# General Settings
#
LINKMODE = STATIC
IPHONE_SDK_VERSION = 2.2.1
IPHONE_SDK = iPhoneOS
POCO_TARGET_OSNAME = iPhone
POCO_TARGET_OSARCH = armv6
TOOL_PREFIX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-
OSFLAGS = -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/$(IPHONE_SDK)$(IPHONE_SDK_VERSION).sdk -mthumb -miphoneos-version-min=$(IPHONE_SDK_VERSION)
#
# Tools
#
CC = $(TOOL_PREFIX)gcc-4.0.1
CXX = $(TOOL_PREFIX)g++-4.0.1
LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = $(CXX) $(OSFLAGS) -dynamiclib -Wl,-install_name,$@ -o $@
DYLIB = $(CXX) $(OSFLAGS) -dynamic -bundle -read_only_relocs suppress -Wl,-bind_at_load -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
STRIP =
DEP = $(POCO_BASE)/build/script/makedepend.gcc
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 = $(OSFLAGS)
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = $(OSFLAGS) -Wall -Wno-sign-compare
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS = $(OSFLAGS)
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK =
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK =
RELEASEOPT_CC = -DNDEBUG -O2
RELEASEOPT_CXX = -DNDEBUG -O
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64
#
# System Specific Libraries
#
SYSLIBS = -ldl