]> git.saurik.com Git - apple/configd.git/blob - Plugins/QoSMarking/Makefile
configd-963.50.8.tar.gz
[apple/configd.git] / Plugins / QoSMarking / Makefile
1 ifeq ($(PLATFORM),)
2 PLATFORM=macosx
3 endif
4
5 ifeq ($(PLATFORM),iphoneos)
6 # iOS internal SDK
7 ARCHS=armv7
8 endif
9
10 ifeq ($(PLATFORM),macosx)
11 # Mac OS X internal SDK
12 ARCHS=x86_64
13 endif
14
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
19
20 all : qos-marking
21
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
24
25 qos-marking: qos-marking.o Makefile
26 $(CC) -o qos-marking qos-marking.o -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework NetworkExtension
27
28 clean:
29 rm -rf *.o qos-marking qos-marking.dSYM
30