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
9 INSTINC_SUBDIRS = machine
10 INSTINC_SUBDIRS_X86_64 = i386
11 INSTINC_SUBDIRS_X86_64H = i386
12 INSTINC_SUBDIRS_ARM = arm arm64
13 INSTINC_SUBDIRS_ARM64 = arm arm64
15 EXPINC_SUBDIRS = machine
16 EXPINC_SUBDIRS_X86_64 = i386
17 EXPINC_SUBDIRS_X86_64H = i386
18 EXPINC_SUBDIRS_ARM = arm arm64
19 EXPINC_SUBDIRS_ARM64 = arm arm64
32 host_notify_reply.defs \
41 mach_voucher_attr_control.defs \
48 telemetry_notification.defs \
57 coalition_notification.defs \
58 fairplayd_notification.defs \
60 ktrace_background.defs \
62 memory_object_control.defs \
63 memory_object_default.defs \
64 sysdiagnose_notification.defs \
68 iocompressionstats_notification.defs
71 # MIG-generated headers that are traditionally used by user
75 audit_triggers_server.h \
76 clock_reply_server.h \
77 coalition_notification_server.h \
79 fairplayd_notification_server.h \
80 arcade_upcall_server.h \
82 memory_object_default_server.h \
84 task_access_server.h \
85 telemetry_notification_server.h \
86 sysdiagnose_notification_server.h \
87 iocompressionstats_notification_server.h \
101 mach_voucher_attr_control.h \
103 memory_object_control.h \
113 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
116 audit_triggers_types.h \
126 host_special_ports.h \
133 mach_voucher_types.h \
136 memory_object_types.h \
140 mig_voucher_support.h \
141 mig_strncpy_zerofill_support.h \
150 shared_memory_server.h \
158 task_special_ports.h \
161 thread_special_ports.h \
182 # installed into System.framework's PrivateHeaders/mach subdirectory
183 PRIVATE_DATAFILES = \
186 coalition_notification.defs \
187 fairplayd_notification.defs \
188 iocompressionstats_notification.defs \
191 ktrace_background.defs \
192 mach_eventlink_types.h \
195 memory_object_types.h \
199 resource_notify.defs \
200 resource_monitors.h \
204 sysdiagnose_notification.defs \
214 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
216 INSTALL_KF_MI_LIST = \
218 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
220 INSTALL_KF_MI_LCL_LIST = \
223 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
225 INSTALL_MI_GEN_LIST =
227 INSTALL_MI_DIR = mach
232 resource_monitors.h \
233 mach_eventlink_types.h \
237 EXPORT_MI_GEN_LIST = \
242 ${MIGINCLUDES} : ${MIG_TYPES}
247 $(_v)$(MIG) $(MIGFLAGS) \
256 $(_v)$(MIG) $(MIGFLAGS) \
267 INCFLAGS_MAKEFILE= -I..
269 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
270 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
272 # MIG-generated headers that are traditionally used by kernel
276 # sender-side ("user") headers generated by MIG from corresponding .defs
281 host_notify_reply.h \
282 ktrace_background.h \
286 memory_object_control.h \
287 memory_object_default.h \
293 # sender-side ("user") source files generated by MIG from corresponding .defs
295 audit_triggers_user.c \
297 coalition_notification_user.c \
299 fairplayd_notification_user.c \
300 arcade_upcall_user.c \
301 host_notify_reply_user.c \
302 ktrace_background_user.c \
305 memory_object_user.c \
306 memory_object_control_user.c \
307 memory_object_default_user.c \
308 resource_notify_user.c \
310 telemetry_notification_user.c \
311 iocompressionstats_notification_user.c \
315 sysdiagnose_notification_user.c
318 arcade_register_server.h \
320 clock_priv_server.h \
321 mach_eventlink_server.h \
324 host_security_server.h \
328 mach_notify_server.h \
331 mach_voucher_server.h \
332 mach_voucher_attr_control_server.h \
333 memory_entry_server.h \
334 memory_object_control_server.h \
335 memory_object_default_server.h \
337 processor_set_server.h \
338 restartable_server.h \
340 thread_act_server.h \
346 arcade_register_server.c \
348 clock_priv_server.c \
349 mach_eventlink_server.c \
352 host_security_server.c \
356 mach_notify_server.c \
359 mach_voucher_server.c \
360 mach_voucher_attr_control_server.c \
361 memory_entry_server.c \
362 memory_object_control_server.c \
363 memory_object_default_server.c \
365 processor_set_server.c \
366 restartable_server.c \
368 thread_act_server.c \
375 # Since there are two generated header files with the same name, one for
376 # install and export, the other for internal use (and they are different)
377 # we can't explicitly list two rules for the same target. So rules for
378 # generating internal headers will be handled implicitly by creating rules
379 # to generate the internal C sources, and the headers get created as a
383 # This is all temporary scaffolding, as we are moving to a model where
384 # the MIG-generated code is identical in all environments. At first, it
385 # will contain some environment-specific ifdefs, but over time should not
386 # even require that as we move towards making all the environments look
389 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
391 do_build_all:: $(COMP_FILES)
393 ${COMP_FILES} : ${MIG_TYPES}
398 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
408 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
411 -server $*_server.c \
412 -sheader $*_server.h \
415 include $(MakeInc_rule)
416 include $(MakeInc_dir)