X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/tools/tests/zero-to-n/Makefile diff --git a/tools/tests/zero-to-n/Makefile b/tools/tests/zero-to-n/Makefile index 4c3b62c8e..63e5484c9 100644 --- a/tools/tests/zero-to-n/Makefile +++ b/tools/tests/zero-to-n/Makefile @@ -1,23 +1,18 @@ -SDKROOT ?= / -ifeq "$(RC_TARGET_CONFIG)" "iPhone" -Embedded?=YES -else -Embedded?=$(shell echo $(SDKROOT) | grep -iq iphoneos && echo YES || echo NO) -endif +include ../Makefile.common -CC:=xcrun -sdk "$(SDKROOT)" cc +CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc) ifdef RC_ARCHS ARCHS:=$(RC_ARCHS) else ifeq "$(Embedded)" "YES" - ARCHS:=armv7 armv7s + ARCHS:=armv7 armv7s arm64 armv7k else ARCHS:=x86_64 i386 endif endif -CFLAGS := -g $(patsubst %, -arch %, $(ARCHS)) +CFLAGS := -Os -g $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders DSTROOT?=$(shell /bin/pwd) SYMROOT?=$(shell /bin/pwd)