]> git.cameronkatri.com Git - snaprestore.git/commitdiff
Use a variable to specify the SDK
authorTheRealKeto <therealketo@gmail.com>
Thu, 5 Aug 2021 21:06:27 +0000 (17:06 -0400)
committerCameron Katri <me@cameronkatri.com>
Fri, 6 Aug 2021 12:39:09 +0000 (08:39 -0400)
- Allow users to specify an SDK path
- Use a new var, TARGET_SYSROOT, to specify the SDK

Signed-off-by: Cameron Katri <me@cameronkatri.com>
Makefile

index ee3311742185c954bd628463094cc2f9d43f240a..cb49dc13d36703bb0cd205675b7e9e4e6b67c168 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
 CC              ?= aarch64-apple-darwin-clang
 STRIP           ?= aarch64-apple-darwin-strip
 LDID            ?= ldid
-CFLAGS          ?= -arch arm64  -isysroot /home/cameron/Documents/SDK/iPhoneOS14.2.sdk -miphoneos-version-min=13.0
 INSTALL         ?= install
 FAKEROOT        ?= fakeroot
 PREFIX          ?= /usr
+TARGET_SYSROOT  ?= /home/cameron/Documents/SDK/iPhoneOS14.2.sdk
+CFLAGS          ?= -arch arm64 -isysroot $(TARGET_SYSROOT) -miphoneos-version-min=13.0
 
 DEB_MAINTAINER  ?= Cameron Katri <me@cameronkatri.com>
 DEB_ARCH        ?= iphoneos-arm