-
Notifications
You must be signed in to change notification settings - Fork 10
/
include.mk
28 lines (26 loc) · 1.03 KB
/
include.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PREFIX ?= $(CURDIR)/prefix
NATIVEPREFIX ?= $(CURDIR)/native-prefix
SOURCES_PATH ?= $(CURDIR)/sources
BUILD_BASE=$(CURDIR)/build
PATCHES_DIR=$(CURDIR)/patches
HOST=x86_64-apple-darwin11
SDK=$(CURDIR)/SDKs/MacOSX10.6.sdk
MIN_VERSION=10.6
CFLAGS=-target $(HOST) -mmacosx-version-min=$(MIN_VERSION) --sysroot $(SDK) -msse2 -Qunused-arguments
CXXFLAGS=$(CFLAGS)
LDFLAGS=-L$(PREFIX)/lib -L$(SDK)/usr/lib/i686-apple-darwin10/4.2.1
LDFLAGS_CLANG=-B$(NATIVEPREFIX)/bin
CPPFLAGS=-I$(PREFIX)/include
CC=clang
CXX=clang++
OBJC=clang
OBJCXX=clang++
AR=$(HOST)-ar
RANLIB=$(HOST)-ranlib
LIBTOOL=$(HOST)-libtool
INSTALL_NAME_TOOL=$(HOST)-install_name_tool
export PATH:=$(NATIVEPREFIX)/bin:$(PATH)
export ZERO_AR_DATE=1
export REFERENCE_DATETIME ?= Sat Jan 1 00:00:00export REFERENCE_DATE ?= Jan 01 2000
export REFERENCE_TIME ?= 00:00:00
CONFIGURE=./configure --host=$(HOST) --prefix=$(PREFIX) CC=$(CC) CXX=$(CXX) AR=$(AR) RANLIB=$(RANLIB) OBJC=$(OBJC) OBJCXX=$(OBJCXX) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(CLANG_LDFLAGS) $(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"