]>
Commit | Line | Data |
---|---|---|
1c79356b 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 | ||
7 | include $(MakeInc_cmd) | |
8 | include $(MakeInc_def) | |
9 | ||
10 | INSTINC_SUBDIRS = \ | |
11 | machine | |
12 | ||
13 | INSTINC_SUBDIRS_PPC = \ | |
14 | ppc | |
15 | ||
2d21ac55 A |
16 | INSTINC_SUBDIRS_ARM = \ |
17 | arm | |
18 | ||
1c79356b A |
19 | INSTINC_SUBDIRS_I386 = \ |
20 | i386 | |
21 | ||
22 | EXPINC_SUBDIRS = \ | |
23 | machine | |
24 | ||
25 | EXPINC_SUBDIRS_PPC = \ | |
26 | ppc | |
27 | ||
28 | EXPINC_SUBDIRS_I386 = \ | |
29 | i386 | |
30 | ||
2d21ac55 A |
31 | EXPINC_SUBDIRS_ARM = \ |
32 | arm | |
33 | ||
1c79356b A |
34 | MIG_TYPES = \ |
35 | clock_types.defs \ | |
36 | mach_types.defs \ | |
37 | std_types.defs | |
38 | ||
39 | MIG_DEFS = \ | |
e5568f75 | 40 | audit_triggers.defs \ |
1c79356b A |
41 | clock.defs \ |
42 | clock_priv.defs \ | |
43 | clock_reply.defs \ | |
44 | exc.defs \ | |
55e303ae | 45 | host_notify_reply.defs \ |
1c79356b A |
46 | host_priv.defs \ |
47 | host_security.defs \ | |
48 | ledger.defs \ | |
49 | lock_set.defs \ | |
2d21ac55 | 50 | mach_exc.defs \ |
1c79356b A |
51 | mach_host.defs \ |
52 | mach_port.defs \ | |
91447636 | 53 | mach_vm.defs \ |
1c79356b A |
54 | notify.defs \ |
55 | processor.defs \ | |
56 | processor_set.defs \ | |
2d21ac55 | 57 | security.defs \ |
1c79356b | 58 | task.defs \ |
2d21ac55 | 59 | task_access.defs \ |
1c79356b | 60 | thread_act.defs \ |
91447636 | 61 | vm_map.defs |
1c79356b | 62 | |
2d21ac55 | 63 | |
1c79356b | 64 | MACH_PRIVATE_DEFS = \ |
55e303ae | 65 | mach_notify.defs \ |
1c79356b A |
66 | memory_object.defs \ |
67 | memory_object_control.defs \ | |
68 | memory_object_default.defs \ | |
91447636 A |
69 | memory_object_name.defs \ |
70 | upl.defs | |
1c79356b A |
71 | |
72 | # | |
73 | # MIG-generated headers that are traditionally used by user | |
74 | # level code. | |
75 | # | |
76 | MIG_USHDRS = \ | |
91447636 | 77 | audit_triggers_server.h \ |
1c79356b A |
78 | clock_reply_server.h \ |
79 | exc_server.h \ | |
2d21ac55 | 80 | mach_exc_server.h \ |
1c79356b A |
81 | memory_object_server.h \ |
82 | memory_object_default_server.h \ | |
2d21ac55 A |
83 | notify_server.h \ |
84 | task_access_server.h | |
1c79356b A |
85 | |
86 | MIG_UUHDRS = \ | |
1c79356b A |
87 | clock.h \ |
88 | clock_priv.h \ | |
89 | host_priv.h \ | |
90 | host_security.h \ | |
91 | ledger.h \ | |
92 | lock_set.h \ | |
93 | mach_host.h \ | |
94 | mach_port.h \ | |
91447636 | 95 | mach_vm.h \ |
1c79356b A |
96 | memory_object_control.h \ |
97 | memory_object_name.h \ | |
98 | processor.h \ | |
99 | processor_set.h \ | |
2d21ac55 | 100 | security.h \ |
1c79356b | 101 | task.h \ |
2d21ac55 | 102 | task_access.h \ |
1c79356b A |
103 | thread_act.h \ |
104 | upl.h \ | |
105 | vm_map.h | |
106 | ||
107 | MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS} | |
108 | ||
109 | DATAFILES = \ | |
110 | boolean.h \ | |
1c79356b A |
111 | clock_types.h \ |
112 | error.h \ | |
113 | exception.h \ | |
114 | exception_types.h \ | |
55e303ae | 115 | host_notify.h \ |
1c79356b A |
116 | host_info.h \ |
117 | host_reboot.h \ | |
55e303ae | 118 | host_special_ports.h \ |
1c79356b A |
119 | kern_return.h \ |
120 | kmod.h \ | |
1c79356b A |
121 | mach_param.h \ |
122 | mach_time.h \ | |
123 | mach_traps.h \ | |
124 | mach_types.h \ | |
125 | machine.h \ | |
126 | mach_syscalls.h \ | |
127 | memory_object_types.h \ | |
128 | message.h \ | |
129 | mig.h \ | |
130 | mig_errors.h \ | |
1c79356b A |
131 | ndr.h \ |
132 | notify.h \ | |
133 | policy.h \ | |
134 | port.h \ | |
135 | processor_info.h \ | |
136 | rpc.h \ | |
2d21ac55 | 137 | sdt.h \ |
1c79356b A |
138 | semaphore.h \ |
139 | shared_memory_server.h \ | |
2d21ac55 | 140 | shared_region.h \ |
1c79356b A |
141 | std_types.h \ |
142 | sync_policy.h \ | |
143 | syscall_sw.h \ | |
144 | task_info.h \ | |
145 | task_ledger.h \ | |
146 | task_policy.h \ | |
147 | task_special_ports.h \ | |
148 | thread_info.h \ | |
149 | thread_policy.h \ | |
150 | thread_special_ports.h \ | |
151 | thread_status.h \ | |
152 | thread_switch.h \ | |
153 | time_value.h \ | |
154 | vm_attributes.h \ | |
155 | vm_behavior.h \ | |
156 | vm_inherit.h \ | |
157 | vm_param.h \ | |
158 | vm_prot.h \ | |
91447636 | 159 | vm_purgable.h \ |
1c79356b A |
160 | vm_region.h \ |
161 | vm_statistics.h \ | |
162 | vm_sync.h \ | |
163 | vm_types.h \ | |
164 | ${MIG_TYPES} \ | |
165 | ${MIG_DEFS} | |
166 | ||
167 | INSTALL_MI_LIST = \ | |
91447636 | 168 | bootstrap.h \ |
1c79356b A |
169 | ${DATAFILES} |
170 | ||
91447636 A |
171 | INSTALL_KF_MI_LIST = \ |
172 | mach_interface.h \ | |
173 | $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES}) | |
174 | ||
175 | INSTALL_KF_MI_LCL_LIST = \ | |
176 | mach_interface.h \ | |
177 | $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES}) | |
178 | ||
1c79356b A |
179 | INSTALL_MI_GEN_LIST = |
180 | ||
181 | INSTALL_MI_DIR = mach | |
182 | ||
183 | EXPORT_MI_LIST = \ | |
184 | mach_interface.h \ | |
1c79356b A |
185 | ${DATAFILES} |
186 | ||
187 | EXPORT_MI_GEN_LIST = \ | |
188 | ${MIGINCLUDES} | |
189 | ||
190 | EXPORT_MI_DIR = mach | |
191 | ||
192 | .ORDER: ${MIGINCLUDES} | |
193 | ||
194 | ${MIGINCLUDES} : ${MIG_TYPES} | |
195 | ||
196 | .ORDER: ${MIG_UUHDRS} | |
197 | ||
198 | ${MIG_UUHDRS} : \ | |
199 | %.h : %.defs | |
2d21ac55 A |
200 | @echo MIG $@ |
201 | $(_v)$(MIG) $(MIGFLAGS) \ | |
1c79356b A |
202 | -server /dev/null \ |
203 | -user /dev/null \ | |
204 | -header $@ \ | |
205 | $< | |
206 | ||
207 | .ORDER: ${MIG_USHDRS} | |
208 | ||
209 | ${MIG_USHDRS} : \ | |
210 | %_server.h : %.defs | |
2d21ac55 A |
211 | @echo MIG $@ |
212 | $(_v)$(MIG) $(MIGFLAGS) \ | |
1c79356b A |
213 | -server /dev/null \ |
214 | -user /dev/null \ | |
215 | -header /dev/null \ | |
216 | -sheader $@ \ | |
217 | $< | |
218 | ||
219 | # | |
220 | # Build path | |
221 | # | |
222 | COMP_SUBDIRS_I386 = \ | |
223 | i386 | |
224 | ||
225 | INCFLAGS_MAKEFILE= -I.. | |
226 | ||
227 | MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1 | |
228 | MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024 | |
229 | # | |
230 | # MIG-generated headers that are traditionally used by kernel | |
231 | # level code. | |
232 | # | |
233 | MIG_KUHDRS = \ | |
91447636 | 234 | audit_triggers.h \ |
1c79356b A |
235 | clock_reply.h \ |
236 | exc.h \ | |
55e303ae | 237 | host_notify_reply.h \ |
2d21ac55 | 238 | mach_exc.h \ |
55e303ae | 239 | mach_notify.h \ |
1c79356b | 240 | memory_object.h \ |
0b4e3aa0 | 241 | memory_object_control.h \ |
1c79356b | 242 | memory_object_default.h \ |
2d21ac55 | 243 | task_access.h \ |
1c79356b A |
244 | upl.h \ |
245 | vm_map.h | |
246 | ||
247 | MIG_KUSRC = \ | |
e5568f75 | 248 | audit_triggers_user.c \ |
1c79356b A |
249 | clock_reply_user.c \ |
250 | exc_user.c \ | |
55e303ae | 251 | host_notify_reply_user.c \ |
2d21ac55 | 252 | mach_exc_user.c \ |
55e303ae | 253 | mach_notify_user.c \ |
1c79356b | 254 | memory_object_user.c \ |
0b4e3aa0 | 255 | memory_object_control_user.c \ |
1c79356b | 256 | memory_object_default_user.c \ |
2d21ac55 | 257 | task_access_user.c \ |
1c79356b A |
258 | upl_user.c \ |
259 | vm_map_user.c | |
260 | ||
261 | MIG_KSHDRS = \ | |
262 | clock_server.h \ | |
263 | clock_priv_server.h \ | |
264 | exc_server.h \ | |
265 | host_priv_server.h \ | |
266 | host_security_server.h \ | |
267 | ledger_server.h \ | |
268 | lock_set_server.h \ | |
2d21ac55 | 269 | mach_exc_server.h \ |
1c79356b | 270 | mach_host_server.h \ |
55e303ae | 271 | mach_notify_server.h \ |
1c79356b | 272 | mach_port_server.h \ |
91447636 | 273 | mach_vm_server.h \ |
1c79356b A |
274 | memory_object_server.h \ |
275 | memory_object_control_server.h \ | |
276 | memory_object_default_server.h \ | |
277 | memory_object_name_server.h \ | |
1c79356b A |
278 | processor_server.h \ |
279 | processor_set_server.h \ | |
2d21ac55 | 280 | security_server.h \ |
1c79356b A |
281 | semaphore_server.h \ |
282 | task_server.h \ | |
283 | thread_act_server.h \ | |
284 | upl_server.h \ | |
285 | vm_map_server.h | |
286 | ||
287 | MIG_KSSRC = \ | |
288 | clock_server.c \ | |
289 | clock_priv_server.c \ | |
290 | exc_server.c \ | |
291 | host_priv_server.c \ | |
292 | host_security_server.c \ | |
293 | ledger_server.c \ | |
294 | lock_set_server.c \ | |
2d21ac55 | 295 | mach_exc_server.c \ |
1c79356b | 296 | mach_host_server.c \ |
55e303ae | 297 | mach_notify_server.c \ |
1c79356b | 298 | mach_port_server.c \ |
91447636 | 299 | mach_vm_server.c \ |
1c79356b A |
300 | memory_object_server.c \ |
301 | memory_object_control_server.c \ | |
302 | memory_object_default_server.c \ | |
303 | memory_object_name_server.c \ | |
1c79356b A |
304 | processor_server.c \ |
305 | processor_set_server.c \ | |
2d21ac55 | 306 | security_server.c \ |
1c79356b A |
307 | semaphore_server.c \ |
308 | task_server.c \ | |
309 | thread_act_server.c \ | |
310 | upl_server.c \ | |
311 | vm_map_server.c | |
312 | ||
313 | # | |
314 | # JMM - | |
315 | # Since there are two generated header files with the same name, one for | |
316 | # install and export, the other for internal use (and they are different) | |
317 | # we can't explicitly list two rules for the same target. So rules for | |
318 | # generating internal headers will be handled implicitly by creating rules | |
319 | # to generate the internal C sources, and the headers get created as a | |
320 | # side-effect. | |
321 | # | |
322 | # | |
323 | # This is all temporary scaffolding, as we are moving to a model where | |
324 | # the MIG-generated code is identical in all environments. At first, it | |
325 | # will contain some environment-specific ifdefs, but over time should not | |
326 | # even require that as we move towards making all the environments look | |
327 | # the same. | |
328 | # | |
329 | COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC} | |
330 | ||
331 | ${COMP_FILES} : ${MIG_TYPES} | |
332 | ||
333 | .ORDER: ${MIG_KUSRC} | |
334 | ||
335 | ${MIG_KUSRC} : \ | |
336 | %_user.c : %.defs | |
2d21ac55 A |
337 | @echo MIG $@ |
338 | $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \ | |
1c79356b A |
339 | -user $*_user.c \ |
340 | -header $*.h \ | |
341 | -server /dev/null \ | |
342 | -sheader /dev/null \ | |
343 | $< | |
344 | ||
345 | .ORDER: ${MIG_KSSRC} | |
346 | ||
347 | ${MIG_KSSRC}: \ | |
348 | %_server.c : %.defs | |
2d21ac55 A |
349 | @echo MIG $@ |
350 | $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \ | |
1c79356b A |
351 | -user /dev/null \ |
352 | -header /dev/null \ | |
353 | -server $*_server.c \ | |
354 | -sheader $*_server.h \ | |
355 | $< | |
1c79356b A |
356 | |
357 | include $(MakeInc_rule) | |
358 | include $(MakeInc_dir) |