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 \
56 coalition_notification.defs \
57 fairplayd_notification.defs \
59 ktrace_background.defs \
61 memory_object_control.defs \
62 memory_object_default.defs \
63 sysdiagnose_notification.defs \
69 # MIG-generated headers that are traditionally used by user
73 audit_triggers_server.h \
74 clock_reply_server.h \
75 coalition_notification_server.h \
77 fairplayd_notification_server.h \
78 arcade_upcall_server.h \
80 memory_object_default_server.h \
82 task_access_server.h \
83 telemetry_notification_server.h \
84 sysdiagnose_notification_server.h \
98 mach_voucher_attr_control.h \
100 memory_object_control.h \
110 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
122 host_special_ports.h \
129 mach_voucher_types.h \
132 memory_object_types.h \
136 mig_voucher_support.h \
137 mig_strncpy_zerofill_support.h \
146 shared_memory_server.h \
154 task_special_ports.h \
157 thread_special_ports.h \
178 # installed into System.framework's PrivateHeaders/mach subdirectory
179 PRIVATE_DATAFILES = \
182 coalition_notification.defs \
183 fairplayd_notification.defs \
186 ktrace_background.defs \
189 memory_object_types.h \
193 resource_notify.defs \
194 resource_monitors.h \
198 sysdiagnose_notification.defs \
208 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
210 INSTALL_KF_MI_LIST = \
212 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
214 INSTALL_KF_MI_LCL_LIST = \
217 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
219 INSTALL_MI_GEN_LIST =
221 INSTALL_MI_DIR = mach
226 resource_monitors.h \
230 EXPORT_MI_GEN_LIST = \
235 ${MIGINCLUDES} : ${MIG_TYPES}
239 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
240 $(_v)$(MIG) $(MIGFLAGS) \
248 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
249 $(_v)$(MIG) $(MIGFLAGS) \
260 INCFLAGS_MAKEFILE= -I..
262 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
263 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
265 # MIG-generated headers that are traditionally used by kernel
269 # sender-side ("user") headers generated by MIG from corresponding .defs
274 host_notify_reply.h \
275 ktrace_background.h \
279 memory_object_control.h \
280 memory_object_default.h \
286 # sender-side ("user") source files generated by MIG from corresponding .defs
288 audit_triggers_user.c \
290 coalition_notification_user.c \
292 fairplayd_notification_user.c \
293 arcade_upcall_user.c \
294 host_notify_reply_user.c \
295 ktrace_background_user.c \
298 memory_object_user.c \
299 memory_object_control_user.c \
300 memory_object_default_user.c \
301 resource_notify_user.c \
303 telemetry_notification_user.c \
307 sysdiagnose_notification_user.c
310 arcade_register_server.h \
312 clock_priv_server.h \
315 host_security_server.h \
319 mach_notify_server.h \
322 mach_voucher_server.h \
323 mach_voucher_attr_control_server.h \
324 memory_entry_server.h \
325 memory_object_control_server.h \
326 memory_object_default_server.h \
328 processor_set_server.h \
329 restartable_server.h \
331 thread_act_server.h \
337 arcade_register_server.c \
339 clock_priv_server.c \
342 host_security_server.c \
346 mach_notify_server.c \
349 mach_voucher_server.c \
350 mach_voucher_attr_control_server.c \
351 memory_entry_server.c \
352 memory_object_control_server.c \
353 memory_object_default_server.c \
355 processor_set_server.c \
356 restartable_server.c \
358 thread_act_server.c \
365 # Since there are two generated header files with the same name, one for
366 # install and export, the other for internal use (and they are different)
367 # we can't explicitly list two rules for the same target. So rules for
368 # generating internal headers will be handled implicitly by creating rules
369 # to generate the internal C sources, and the headers get created as a
373 # This is all temporary scaffolding, as we are moving to a model where
374 # the MIG-generated code is identical in all environments. At first, it
375 # will contain some environment-specific ifdefs, but over time should not
376 # even require that as we move towards making all the environments look
379 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
381 do_build_all:: $(COMP_FILES)
383 ${COMP_FILES} : ${MIG_TYPES}
387 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
388 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
397 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
398 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
401 -server $*_server.c \
402 -sheader $*_server.h \
405 include $(MakeInc_rule)
406 include $(MakeInc_dir)