5 ifeq ($(PLATFORM),iphoneos)
10 ifeq ($(PLATFORM),macosx)
11 # Mac OS X internal SDK
15 # Mac OS X or iOS internal SDK
16 SDK=$(PLATFORM).internal
17 SYSROOT=$(shell xcodebuild -version -sdk $(SDK) Path)
18 CC = xcrun -sdk $(SDK) cc
22 qos-marking.o: qos-marking.m Makefile
23 $(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
25 qos-marking: qos-marking.o Makefile
26 $(CC) -o qos-marking qos-marking.o -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework NetworkExtension
29 rm -rf *.o qos-marking qos-marking.dSYM