]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/superpages/Makefile
xnu-3247.1.106.tar.gz
[apple/xnu.git] / tools / tests / superpages / Makefile
index 2698f2fdbfa354601deda1a298ff95c399320a3c..4772a03e540e1727a4bd8c08fd951825304569aa 100644 (file)
@@ -1,9 +1,4 @@
-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)
@@ -19,9 +14,7 @@ ifdef RC_ARCHS
   endif
 endif
 
-ifneq ($(ARCHS),)
-CFLAGS += $(patsubst %, -arch %, $(ARCHS))
-endif
+CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT)
 
 all: $(TARGETS)