|
|
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: MD_DIR = i386 ! 13: EXCLUDE_HEADERS = ! 14: ! 15: INSTINC_SUBDIRS = ! 16: INSTINC_SUBDIRS_PPC = ! 17: INSTINC_SUBDIRS_I386 = ! 18: ! 19: EXPINC_SUBDIRS = ${INSTINC_SUBDIRS} ! 20: EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC} ! 21: EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386} ! 22: ! 23: ALL_HEADERS = $(shell (cd $(SOURCE); echo *.h)) ! 24: DATAFILES = $(filter-out $(EXCLUDE_HEADERS), $(ALL_HEADERS)) ! 25: ! 26: INSTALL_MD_LIST = ${DATAFILES} ! 27: INSTALL_MD_LCL_LIST = ${DATAFILES} ! 28: INSTALL_MD_DIR = $(MD_DIR) ! 29: ! 30: EXPORT_MD_LIST = ${DATAFILES} ! 31: EXPORT_MD_DIR = IOKit/$(MD_DIR) ! 32: ! 33: include $(MakeInc_rule) ! 34: include $(MakeInc_dir) ! 35: ! 36: RED_INST_SCAFFOLD = $(filter $(INSTALL_MD_LIST), $(INSTALL_MD_LCL_LIST)) ! 37: PRE_INST_SCAFFOLD = $(filter-out $(INSTALL_MD_LIST), $(INSTALL_MD_LCL_LIST)) ! 38: ! 39: build_installhdrs_md:: ! 40: @echo "[ $(SOURCE) ] Removing old IOKit headers"; \ ! 41: cd $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR); \ ! 42: IOKitdir=$(EXPORT_MD_DIR); \ ! 43: iokitdir=iok`expr "$$IOKitdir" : 'IOK\(.*\)'`; \ ! 44: chmod +w $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \ ! 45: rm $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \ ! 46: echo "[ $(SOURCE) ] Constructing redirected scoffold headers"; \ ! 47: for targetfile in $(RED_INST_SCAFFOLD); \ ! 48: do \ ! 49: headerName=$$IOKitdir/$$targetfile; \ ! 50: target=$$iokitdir/$$targetfile; \ ! 51: echo "#warning $$target deprecated: use $$headerName" \ ! 52: > $$targetfile; \ ! 53: echo "#include <$$headerName>" >> $$targetfile; \ ! 54: done; \ ! 55: echo "[ $(SOURCE) ] Constructing deprecated scoffold headers"; \ ! 56: for targetfile in $(PRE_INST_SCAFFOLD); \ ! 57: do \ ! 58: target=$$iokitdir/$$targetfile; \ ! 59: echo "#warning $$target deprecated: about to be deleted" \ ! 60: > $$targetfile; \ ! 61: cat $(SOURCE)/$$targetfile >> $$targetfile; \ ! 62: done; \ ! 63: 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.