6 ifeq ($(PLATFORM),iphoneos)
11 ifeq ($(PLATFORM),macosx)
12 # Mac OS X internal SDK
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
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
30 # Mac OS X or iOS internal SDK
31 SDK=$(PLATFORM)internal
32 SYSROOT=$(shell xcodebuild -version -sdk $(SDK) Path)
33 CC = xcrun -sdk $(SDK) cc
36 all : ifnamer snapshot
38 # ---------- ---------- ---------- ---------- ----------
40 InterfaceNamerControlPrefs.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
43 # ---------- ---------- ---------- ---------- ----------
45 ifnamer.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
48 ifnamer: ifnamer.o InterfaceNamerControlPrefs.o Makefile
49 $(CC) -o ifnamer ifnamer.o InterfaceNamerControlPrefs.o ${EXTRA} -framework CoreFoundation -framework SystemConfiguration -framework IOKit
51 # ---------- ---------- ---------- ---------- ----------
53 snapshot.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
56 snapshot: snapshot.o InterfaceNamerControlPrefs.o Makefile
57 $(CC) -o snapshot snapshot.o InterfaceNamerControlPrefs.o ${EXTRA} -framework CoreFoundation -framework SystemConfiguration -framework IOKit
59 # ---------- ---------- ---------- ---------- ----------
62 rm -rf *.o ifnamer ifnamer.dSYM snapshot snapshot.dSYM