Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (16 sloc) 788 Bytes
include myconfig.ios
export PLATFORM = IOS
SDK_VERSION ?= 6.0
GCC ?= gcc
ARCH ?= armv7
PLAT ?= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
SDK ?= /Developer/SDKs/iPhoneOS$(SDK_VERSION).sdk
OCAMLDIR ?= /usr/local/ocaml/ios
export OCAMLFIND ?= ocamlfind -toolchain ios
OCAMLBINDIR = $(OCAMLDIR)/bin/
export CC = $(PLAT)/Developer/usr/bin/$(GCC) -arch $(ARCH)
export CFLAGS = -x objective-c -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -isysroot $(PLAT)$(SDK) -isystem $(OCAMLDIR)/lib -DCAML_NAME_SPACE -fexceptions -miphoneos-version-min=4.2 -gdwarf-2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT
export OCAMLOPT = $(OCAMLFIND) ocamlopt
export OCAMLC = $(OCAMLFIND) ocamlc
export OCAMLMKLIB = $(OCAMLDIR)/bin/ocamlmklib
LIB = native syntax