-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-iOS
27 lines (20 loc) · 1.14 KB
/
Makefile-iOS
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
# make -f Makefile-ios
TARGET = arm64-apple-ios15.5
SYSROOT = /Applications/Xcode_13.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk
# first target is default target when no target specified
all: mkdir helloworld helloworld_thread do_exception exitcode
mkdir:
mkdir binaries | true
mkdir binaries/ios-arm64 | true
helloworld:
clang -target $(TARGET) -isysroot $(SYSROOT) src/helloworld.c -o binaries/ios-arm64/helloworld
codesign -f -s - --entitlements entitlements.plist binaries/ios-arm64/helloworld
helloworld_thread:
clang -target $(TARGET) -isysroot $(SYSROOT) src/helloworld_thread.c -o binaries/ios-arm64/helloworld_thread
codesign -f -s - --entitlements entitlements.plist binaries/ios-arm64/helloworld_thread
do_exception:
clang -target $(TARGET) -isysroot $(SYSROOT) -DARCH_IS_AARCH64 src/do_exception.c -o binaries/ios-arm64/do_exception
codesign -f -s - --entitlements entitlements.plist binaries/ios-arm64/do_exception
exitcode:
clang -target $(TARGET) -isysroot $(SYSROOT) src/exitcode.c -o binaries/ios-arm64/exitcode
codesign -f -s - --entitlements entitlements.plist binaries/ios-arm64/exitcode