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