X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/942cecd7bb3d0412e584f1a3ca1871e3c0384926..c956c85e3ac8d59d957268335ef7ccf1cc2bbcc2:/Plugins/QoSMarking/Makefile diff --git a/Plugins/QoSMarking/Makefile b/Plugins/QoSMarking/Makefile index 8efa982..3366265 100644 --- a/Plugins/QoSMarking/Makefile +++ b/Plugins/QoSMarking/Makefile @@ -4,7 +4,7 @@ endif ifeq ($(PLATFORM),iphoneos) # iOS internal SDK -ARCHS=armv7 +ARCHS=arm64 endif ifeq ($(PLATFORM),macosx) @@ -13,17 +13,21 @@ ARCHS=x86_64 endif # Mac OS X or iOS internal SDK -SDK=$(PLATFORM).internal +SDK=$(PLATFORM)internal SYSROOT=$(shell xcodebuild -version -sdk $(SDK) Path) CC = xcrun -sdk $(SDK) cc all : qos-marking +# ---------- ---------- ---------- ---------- ---------- + qos-marking.o: qos-marking.m Makefile - $(CC) -DOS_ACTIVITY_OBJECT_API=1 -I../../SystemConfiguration.fproj -I${SYSROOT}/System/Library/Frameworks/System.framework/PrivateHeaders -Wall -g -DMAIN -O0 -c qos-marking.m + $(CC) -DOS_ACTIVITY_OBJECT_API=1 -I../../SystemConfiguration.fproj ${EXTRA} -I${SYSROOT}/System/Library/Frameworks/System.framework/PrivateHeaders -Wall -g -DMAIN -O0 -c qos-marking.m qos-marking: qos-marking.o Makefile - $(CC) -o qos-marking qos-marking.o -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework NetworkExtension + $(CC) -o qos-marking qos-marking.o ${EXTRA} -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework NetworkExtension + +# ---------- ---------- ---------- ---------- ---------- clean: rm -rf *.o qos-marking qos-marking.dSYM