|
|
1.1 ! root 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 ! 5: ! 6: export INCDIR = $(FRAMEDIR)/IOKit.framework/Versions/A/Headers ! 7: export LCLDIR = $(FRAMEDIR)/System.framework/Versions/B/Headers/iokit ! 8: ! 9: include $(MakeInc_cmd) ! 10: include $(MakeInc_def) ! 11: ! 12: MI_DIR = pwr_mgt ! 13: EXCLUDE_HEADERS = \ ! 14: IOPMchangeNoteList.h \ ! 15: IOPMinformee.h \ ! 16: IOPMinformeeList.h \ ! 17: IOPMlog.h \ ! 18: IOPMpmChild.h ! 19: ! 20: INSTINC_SUBDIRS = ! 21: INSTINC_SUBDIRS_PPC = ! 22: INSTINC_SUBDIRS_I386 = ! 23: ! 24: EXPINC_SUBDIRS = ${INSTINC_SUBDIRS} ! 25: EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC} ! 26: EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386} ! 27: ! 28: ALL_HEADERS = $(shell (cd $(SOURCE); echo *.h)) ! 29: DATAFILES = $(filter-out $(EXCLUDE_HEADERS), $(ALL_HEADERS)) ! 30: ! 31: INSTALL_MI_LIST = IOPMLibDefs.h \ ! 32: IOPM.h ! 33: INSTALL_MI_LCL_LIST = ${DATAFILES} ! 34: INSTALL_MI_DIR = $(MI_DIR) ! 35: ! 36: EXPORT_MI_LIST = ${DATAFILES} ! 37: EXPORT_MI_DIR = IOKit/$(MI_DIR) ! 38: ! 39: include $(MakeInc_rule) ! 40: include $(MakeInc_dir) ! 41: ! 42: RED_INST_SCAFFOLD = $(filter $(INSTALL_MI_LIST), $(INSTALL_MI_LCL_LIST)) ! 43: PRE_INST_SCAFFOLD = $(filter-out $(INSTALL_MI_LIST), $(INSTALL_MI_LCL_LIST)) ! 44: ! 45: build_installhdrs_mi:: ! 46: @echo "[ $(SOURCE) ] Removing old IOKit headers"; \ ! 47: cd $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR); \ ! 48: IOKitdir=$(EXPORT_MI_DIR); \ ! 49: iokitdir=iok`expr "$$IOKitdir" : 'IOK\(.*\)'`; \ ! 50: chmod +w $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \ ! 51: rm $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \ ! 52: echo "[ $(SOURCE) ] Constructing redirected scoffold headers"; \ ! 53: for targetfile in $(RED_INST_SCAFFOLD); \ ! 54: do \ ! 55: headerName=$$IOKitdir/$$targetfile; \ ! 56: target=$$iokitdir/$$targetfile; \ ! 57: echo "#warning $$target deprecated: use $$headerName" \ ! 58: > $$targetfile; \ ! 59: echo "#include <$$headerName>" >> $$targetfile; \ ! 60: done; \ ! 61: echo "[ $(SOURCE) ] Constructing deprecated scoffold headers"; \ ! 62: for targetfile in $(PRE_INST_SCAFFOLD); \ ! 63: do \ ! 64: target=$$iokitdir/$$targetfile; \ ! 65: echo "#warning $$target deprecated: about to be deleted" \ ! 66: > $$targetfile; \ ! 67: cat $(SOURCE)/$$targetfile >> $$targetfile; \ ! 68: done; \ ! 69: chmod a-w $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.