X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/tools/tests/superpages/Makefile diff --git a/tools/tests/superpages/Makefile b/tools/tests/superpages/Makefile index 800265b20..4772a03e5 100644 --- a/tools/tests/superpages/Makefile +++ b/tools/tests/superpages/Makefile @@ -1,27 +1,20 @@ -SDKROOT ?= / -ifeq "$(RC_TARGET_CONFIG)" "iPhone" -Embedded?=YES -else -Embedded?=$(shell echo $(SDKROOT) | grep -iq iphoneos && echo YES || echo NO) -endif +include ../Makefile.common DSTROOT?=$(shell /bin/pwd) TARGETS := $(addprefix $(DSTROOT)/, measure_tlbs testsp) -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 else ARCHS:=x86_64 i386 endif endif -ifneq ($(ARCHS),) -CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -endif +CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT) all: $(TARGETS)