]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/kqueue_tests/Makefile
xnu-3248.60.10.tar.gz
[apple/xnu.git] / tools / tests / kqueue_tests / Makefile
index 7bd1baacddb1f10c1669ca16658ad9652b590e62..d8ffd2c16973dfb8f880bf228ca003ec07acbe64 100755 (executable)
@@ -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
     else
       ARCHS:=x86_64 i386
   endif
 endif
 
-CFLAGS :=-g $(patsubst %, -arch %,$(ARCHS))
+CFLAGS :=-g $(patsubst %, -arch %,$(ARCHS)) -isysroot $(SDKROOT)
 
 DSTROOT?=$(shell /bin/pwd)
 SYMROOT?=$(shell /bin/pwd)