]>
Commit | Line | Data |
---|---|---|
fe8ab488 A |
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 | include $(MakeInc_cmd) | |
7 | include $(MakeInc_def) | |
8 | ||
39037602 | 9 | MIG_TYPES = |
fe8ab488 | 10 | |
39037602 | 11 | MIG_DEFS = |
fe8ab488 | 12 | |
39037602 | 13 | MACH_PRIVATE_DEFS = |
fe8ab488 A |
14 | |
15 | # | |
16 | # MIG-generated headers that are traditionally used by user | |
17 | # level code. | |
18 | # | |
39037602 | 19 | MIG_USHDRS = |
fe8ab488 | 20 | |
39037602 | 21 | MIG_UUHDRS = |
fe8ab488 A |
22 | |
23 | MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS} | |
24 | ||
25 | DATAFILES = \ | |
26 | bank_types.h \ | |
27 | ${MIG_TYPES} \ | |
28 | ${MIG_DEFS} | |
29 | ||
30 | INSTALL_MI_LIST = \ | |
31 | ${DATAFILES} | |
32 | ||
33 | INSTALL_KF_MI_LIST = \ | |
34 | ${DATAFILES} | |
35 | ||
36 | INSTALL_KF_MI_LCL_LIST = \ | |
37 | ${DATAFILES} | |
38 | ||
39 | INSTALL_MI_GEN_LIST = | |
40 | ||
41 | INSTALL_MI_DIR = bank | |
42 | ||
43 | EXPORT_MI_LIST = \ | |
44 | ${DATAFILES} | |
45 | ||
46 | EXPORT_MI_GEN_LIST = \ | |
47 | ${MIGINCLUDES} | |
48 | ||
49 | EXPORT_MI_DIR = bank | |
50 | ||
51 | ${MIGINCLUDES} : ${MIG_TYPES} | |
52 | ||
53 | ${MIG_UUHDRS} : \ | |
54 | %.h : %.defs | |
39037602 | 55 | @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)" |
fe8ab488 A |
56 | $(_v)$(MIG) $(MIGFLAGS) \ |
57 | -server /dev/null \ | |
58 | -user /dev/null \ | |
39037602 | 59 | -header $@ \ |
fe8ab488 A |
60 | $< |
61 | ||
62 | ${MIG_USHDRS} : \ | |
63 | %_server.h : %.defs | |
39037602 | 64 | @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)" |
fe8ab488 A |
65 | $(_v)$(MIG) $(MIGFLAGS) \ |
66 | -server /dev/null \ | |
67 | -user /dev/null \ | |
68 | -header /dev/null \ | |
39037602 | 69 | -sheader $@ \ |
fe8ab488 A |
70 | $< |
71 | ||
72 | # | |
73 | # Build path | |
74 | # | |
75 | ||
76 | INCFLAGS_MAKEFILE= -I.. | |
77 | ||
78 | MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1 | |
79 | MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024 | |
80 | # | |
81 | # MIG-generated headers that are traditionally used by kernel | |
82 | # level code. | |
83 | # | |
39037602 | 84 | MIG_KUHDRS = |
fe8ab488 | 85 | |
39037602 | 86 | MIG_KUSRC = |
fe8ab488 | 87 | |
39037602 | 88 | MIG_KSHDRS = |
fe8ab488 | 89 | |
39037602 | 90 | MIG_KSSRC = |
fe8ab488 A |
91 | |
92 | COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC} | |
93 | ||
94 | do_build_all:: $(COMP_FILES) | |
95 | ||
96 | ${COMP_FILES} : ${MIG_TYPES} | |
97 | ||
98 | ${MIG_KUSRC} : \ | |
99 | %_user.c : %.defs | |
39037602 | 100 | @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)" |
fe8ab488 A |
101 | $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \ |
102 | -user $*_user.c \ | |
103 | -header $*.h \ | |
104 | -server /dev/null \ | |
105 | -sheader /dev/null \ | |
106 | $< | |
107 | ||
108 | ${MIG_KSSRC}: \ | |
39037602 A |
109 | %_server.c : %.defs |
110 | @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)" | |
fe8ab488 A |
111 | $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \ |
112 | -user /dev/null \ | |
113 | -header /dev/null \ | |
114 | -server $*_server.c \ | |
115 | -sheader $*_server.h \ | |
116 | $< | |
117 | ||
118 | include $(MakeInc_rule) | |
119 | include $(MakeInc_dir) |