]>
Commit | Line | Data |
---|---|---|
6bb65964 | 1 | |
78deefe8 A |
2 | ifeq ($(PLATFORM),) |
3 | PLATFORM=macosx | |
4 | endif | |
6bb65964 | 5 | |
78deefe8 A |
6 | ifeq ($(PLATFORM),iphoneos) |
7 | # iOS internal SDK | |
8 | ARCHS=arm64 | |
9 | endif | |
6bb65964 | 10 | |
78deefe8 A |
11 | ifeq ($(PLATFORM),macosx) |
12 | # Mac OS X internal SDK | |
13 | ARCHS=x86_64 | |
14 | endif | |
15 | ||
16 | ||
17 | ifeq ($(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 | |
27 | endif | |
28 | ||
29 | ||
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 | |
34 | ||
35 | ||
36 | all : ifnamer snapshot | |
37 | ||
38 | # ---------- ---------- ---------- ---------- ---------- | |
39 | ||
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 | |
42 | ||
43 | # ---------- ---------- ---------- ---------- ---------- | |
44 | ||
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 | |
47 | ||
48 | ifnamer: ifnamer.o InterfaceNamerControlPrefs.o Makefile | |
49 | $(CC) -o ifnamer ifnamer.o InterfaceNamerControlPrefs.o ${EXTRA} -framework CoreFoundation -framework SystemConfiguration -framework IOKit | |
50 | ||
51 | # ---------- ---------- ---------- ---------- ---------- | |
52 | ||
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 | |
55 | ||
56 | snapshot: 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 | |
61 | clean: | |
78deefe8 | 62 | rm -rf *.o ifnamer ifnamer.dSYM snapshot snapshot.dSYM |
6bb65964 | 63 |