|
|
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 = firewire
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_MI_LIST =
27: INSTALL_MI_LCL_LIST = ${DATAFILES}
28:
29: INSTALL_MI_DIR = $(MI_DIR)
30:
31: EXPORT_MI_LIST = ${DATAFILES}
32:
33: EXPORT_MI_DIR = IOKit/$(MI_DIR)
34:
35: include $(MakeInc_rule)
36: include $(MakeInc_dir)
37:
38: RED_INST_SCAFFOLD = $(filter $(INSTALL_MI_LIST), $(INSTALL_MI_LCL_LIST))
39: PRE_INST_SCAFFOLD = $(filter-out $(INSTALL_MI_LIST), $(INSTALL_MI_LCL_LIST))
40:
41: build_installhdrs_mi::
42: @echo "[ $(SOURCE) ] Removing old IOKit headers"; \
43: cd $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR); \
44: IOKitdir=$(EXPORT_MI_DIR); \
45: iokitdir=iok`expr "$$IOKitdir" : 'IOK\(.*\)'`; \
46: chmod +w $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \
47: rm $(RED_INST_SCAFFOLD) $(PRE_INST_SCAFFOLD); \
48: echo "[ $(SOURCE) ] Constructing redirected scoffold headers"; \
49: for targetfile in $(RED_INST_SCAFFOLD); \
50: do \
51: headerName=$$IOKitdir/$$targetfile; \
52: target=$$iokitdir/$$targetfile; \
53: echo "#warning $$target deprecated: use $$headerName" \
54: > $$targetfile; \
55: echo "#include <$$headerName>" >> $$targetfile; \
56: done; \
57: echo "[ $(SOURCE) ] Constructing deprecated scoffold headers"; \
58: for targetfile in $(PRE_INST_SCAFFOLD); \
59: do \
60: target=$$iokitdir/$$targetfile; \
61: echo "#warning $$target deprecated: about to be deleted" \
62: > $$targetfile; \
63: cat $(SOURCE)/$$targetfile >> $$targetfile; \
64: done; \
65: 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.