]> git.saurik.com Git - apple/configd.git/blob - Plugins/QoSMarking/Makefile
configd-1109.101.1.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=arm64
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 # ---------- ---------- ---------- ---------- ----------
23
24 qos-marking.o: qos-marking.m Makefile
25 $(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
26
27 qos-marking: qos-marking.o Makefile
28 $(CC) -o qos-marking qos-marking.o ${EXTRA} -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework NetworkExtension
29
30 # ---------- ---------- ---------- ---------- ----------
31
32 clean:
33 rm -rf *.o qos-marking qos-marking.dSYM
34