]> git.saurik.com Git - apple/configd.git/blame - Plugins/InterfaceNamer/Makefile
configd-1109.101.1.tar.gz
[apple/configd.git] / Plugins / InterfaceNamer / Makefile
CommitLineData
6bb65964 1
78deefe8
A
2ifeq ($(PLATFORM),)
3PLATFORM=macosx
4endif
6bb65964 5
78deefe8
A
6ifeq ($(PLATFORM),iphoneos)
7# iOS internal SDK
8ARCHS=arm64
9endif
6bb65964 10
78deefe8
A
11ifeq ($(PLATFORM),macosx)
12# Mac OS X internal SDK
13ARCHS=x86_64
14endif
15
16
17ifeq ($(USER),ajn)
18 ifeq ($(PLATFORM),macosx)
19 PLATFORM=macosx$(OSX_VERSION)
20 EXTRA=-target $(ARCHS)-apple-macos$(OSX_VERSION) -F${BUILDIT_DIR}/configd-999.roots/Shared/SDKContentRoot/osx/System/Library/Frameworks
21 endif
22 ifeq ($(PLATFORM),iphoneos)
23 PLATFORM=ios$(EMBEDDED_VERSION)
24 EXTRA=-target $(ARCHS)-apple-ios$(EMBEDDED_VERSION) -F${BUILDIT_DIR}_Embedded/configd-999.roots/Shared/SDKContentRoot/ios/System/Library/Frameworks
25 endif
26 EXTRA+=-DDEBUG
27endif
28
29
30# Mac OS X or iOS internal SDK
31SDK=$(PLATFORM)internal
32SYSROOT=$(shell xcodebuild -version -sdk $(SDK) Path)
33CC = xcrun -sdk $(SDK) cc
34
35
36all : ifnamer snapshot
37
38# ---------- ---------- ---------- ---------- ----------
39
40InterfaceNamerControlPrefs.o : ../../Plugins/common/InterfaceNamerControlPrefs.c ../../Plugins/common/InterfaceNamerControlPrefs.h Makefile
41 $(CC) -DOS_ACTIVITY_OBJECT_API=1 -I../../SystemConfiguration.fproj -I../../IPMonitorControl -I../../Plugins/common ${EXTRA} -I${SYSROOT}/System/Library/Frameworks/System.framework/PrivateHeaders -Wall -g -O0 -c ../../Plugins/common/InterfaceNamerControlPrefs.c
42
43# ---------- ---------- ---------- ---------- ----------
44
45ifnamer.o: ifnamer.c Makefile
46 $(CC) -DOS_ACTIVITY_OBJECT_API=1 -I../../SystemConfiguration.fproj -I../../IPMonitorControl -I../../Plugins/common ${EXTRA} -I${SYSROOT}/System/Library/Frameworks/System.framework/PrivateHeaders -Wall -g -DTEST_INTERFACE_ASSIGNMENT -O0 -c ifnamer.c
47
48ifnamer: ifnamer.o InterfaceNamerControlPrefs.o Makefile
49 $(CC) -o ifnamer ifnamer.o InterfaceNamerControlPrefs.o ${EXTRA} -framework CoreFoundation -framework SystemConfiguration -framework IOKit
50
51# ---------- ---------- ---------- ---------- ----------
52
53snapshot.o: ifnamer.c Makefile
54 $(CC) -DOS_ACTIVITY_OBJECT_API=1 -I../../SystemConfiguration.fproj -I../../IPMonitorControl -I../../Plugins/common ${EXTRA} -I${SYSROOT}/System/Library/Frameworks/System.framework/PrivateHeaders -Wall -g -DTEST_SNAPSHOT -O0 -c -o $@ ifnamer.c
55
56snapshot: snapshot.o InterfaceNamerControlPrefs.o Makefile
57 $(CC) -o snapshot snapshot.o InterfaceNamerControlPrefs.o ${EXTRA} -framework CoreFoundation -framework SystemConfiguration -framework IOKit
58
59# ---------- ---------- ---------- ---------- ----------
6bb65964
A
60
61clean:
78deefe8 62 rm -rf *.o ifnamer ifnamer.dSYM snapshot snapshot.dSYM
6bb65964 63