1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
16 INSTINC_SUBDIRS_I386 =
30 System.kext/Info.plist \
31 System.kext/PlugIns/Libkern.kext/Info.plist \
32 System.kext/PlugIns/Mach.kext/Info.plist \
33 System.kext/PlugIns/BSDKernel.kext/Info.plist \
34 System.kext/PlugIns/IOKit.kext/Info.plist \
35 System.kext/PlugIns/AppleNMI.kext/Info.plist \
36 System.kext/PlugIns/ApplePlatformFamily.kext/Info.plist \
37 System.kext/PlugIns/IONVRAMFamily.kext/Info.plist \
38 System.kext/PlugIns/IOSystemManagement.kext/Info.plist \
40 System.kext/PlugIns/System6.0.kext/Info.plist \
41 System.kext/PlugIns/Libkern6.0.kext/Info.plist \
42 System.kext/PlugIns/Mach6.0.kext/Info.plist \
43 System.kext/PlugIns/BSDKernel6.0.kext/Info.plist \
44 System.kext/PlugIns/IOKit6.0.kext/Info.plist \
48 /System/Library/Extensions/
54 KEXT_CREATE_SYMBOL_SET = /usr/local/bin/kextsymboltool
56 SYMBOL_COMPONENT_LIST = \
63 SYMBOL_SET_BUILD = $(foreach set, $(SYMBOL_COMPONENT_LIST), $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(set).symbolset)
64 SYMBOL_SET_FAT = $(foreach set, $(SYMBOL_COMPONENT_LIST), $(OBJROOT)/$(set).symbolset)
66 ## .SUFFIXES: .symbolset .symbollist
68 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/allsymbols: $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/mach_kernel
71 $(SYMBOL_SET_BUILD): $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/%.symbolset : %.exports %.$(ARCH_CONFIG_LC).exports $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/allsymbols
72 $(KEXT_CREATE_SYMBOL_SET) \
73 -arch $(ARCH_CONFIG_LC) \
74 -import $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/allsymbols \
76 -export $*.$(ARCH_CONFIG_LC).exports \
79 $(SYMBOL_SET_FAT): $(OBJROOT)/%.symbolset : $(foreach arch, $(INSTALL_ARCHS), $(OBJROOT)/$(KERNEL_CONFIG)_$(arch)/%.symbolset)
80 $(LIPO) $(foreach arch, $(INSTALL_ARCHS), $(OBJROOT)/$(KERNEL_CONFIG)_$(arch)/$*.symbolset) -create -output $@;
83 build_symbol_sets: $(SYMBOL_SET_BUILD)
85 install_symbol_sets: $(SYMBOL_SET_FAT)
86 install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset $(DSTROOT)/$(INSTALL_DATA_DIR)/System.kext/PlugIns/System6.0.kext/kernel.6.0;
87 install $(INSTALL_FLAGS) $(OBJROOT)/BSDKernel.symbolset $(DSTROOT)/$(INSTALL_DATA_DIR)/System.kext/PlugIns/BSDKernel.kext/BSDKernel;
88 install $(INSTALL_FLAGS) $(OBJROOT)/IOKit.symbolset $(DSTROOT)/$(INSTALL_DATA_DIR)/System.kext/PlugIns/IOKit.kext/IOKit;
89 install $(INSTALL_FLAGS) $(OBJROOT)/Libkern.symbolset $(DSTROOT)/$(INSTALL_DATA_DIR)/System.kext/PlugIns/Libkern.kext/Libkern;
90 install $(INSTALL_FLAGS) $(OBJROOT)/Mach.symbolset $(DSTROOT)/$(INSTALL_DATA_DIR)/System.kext/PlugIns/Mach.kext/Mach;
92 do_build_all: build_symbol_sets
94 do_build_install: install_symbol_sets
96 include $(MakeInc_rule)
97 include $(MakeInc_dir)