]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/Makefile
xnu-1228.12.14.tar.gz
[apple/xnu.git] / libsyscall / Makefile
index ab642795b8be35c0845b16975e090bcc8bd73a05..a40b4fb5e94dc8eee418bd299cf243c05e91b387 100644 (file)
@@ -22,12 +22,16 @@ CC = gcc
 .ifdef ALTFRAMEWORKSPATH
 PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
 .else
-PRIVINC = -I${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
+PRIVINC = -I${SDKROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
 .endif
 CFLAGS += ${PRIVINC}
-CFLAGS += -no-cpp-precomp -force_cpusubtype_ALL
+.if empty $(MACHINE_ARCH:Marm*)
+CFLAGS += -force_cpusubtype_ALL
+AINC= -force_cpusubtype_ALL
+.endif
+CFLAGS += -no-cpp-precomp
 CFLAGS += -fno-common -pipe -Wmost -g
-AINC= -no-cpp-precomp -force_cpusubtype_ALL
+AINC+= -no-cpp-precomp
 AINC+= -arch ${MACHINE_ARCH} -g
 CLEANFILES+=tags
 INSTALL_PIC_ARCHIVE=   yes
@@ -43,7 +47,7 @@ MAKEOBJDIR ?= ${OBJROOT}
 # add version string
 SRCS += libsyscall_version.c
 libsyscall_version.c:
-       ${NEXT_ROOT}/Developer/Makefiles/bin/version.pl Libsyscall > $@
+       ${SDKROOT}/Developer/Makefiles/bin/version.pl Libsyscall > $@
 
 CFLAGS += -I${SYMROOT}
 .include "${.CURDIR}/Makefile.inc"