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 \
70 # MIG-generated headers that are traditionally used by user
74 audit_triggers_server.h \
75 clock_reply_server.h \
76 coalition_notification_server.h \
78 fairplayd_notification_server.h \
79 arcade_upcall_server.h \
81 memory_object_default_server.h \
83 task_access_server.h \
84 telemetry_notification_server.h \
85 sysdiagnose_notification_server.h \
99 mach_voucher_attr_control.h \
101 memory_object_control.h \
111 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
114 audit_triggers_types.h \
124 host_special_ports.h \
131 mach_voucher_types.h \
134 memory_object_types.h \
138 mig_voucher_support.h \
139 mig_strncpy_zerofill_support.h \
148 shared_memory_server.h \
156 task_special_ports.h \
159 thread_special_ports.h \
180 # installed into System.framework's PrivateHeaders/mach subdirectory
181 PRIVATE_DATAFILES = \
184 coalition_notification.defs \
185 fairplayd_notification.defs \
188 ktrace_background.defs \
189 mach_eventlink_types.h \
192 memory_object_types.h \
196 resource_notify.defs \
197 resource_monitors.h \
201 sysdiagnose_notification.defs \
211 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
213 INSTALL_KF_MI_LIST = \
215 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
217 INSTALL_KF_MI_LCL_LIST = \
220 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
222 INSTALL_MI_GEN_LIST =
224 INSTALL_MI_DIR = mach
229 resource_monitors.h \
230 mach_eventlink_types.h \
234 EXPORT_MI_GEN_LIST = \
239 ${MIGINCLUDES} : ${MIG_TYPES}
244 $(_v)$(MIG) $(MIGFLAGS) \
253 $(_v)$(MIG) $(MIGFLAGS) \
264 INCFLAGS_MAKEFILE= -I..
266 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
267 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
269 # MIG-generated headers that are traditionally used by kernel
273 # sender-side ("user") headers generated by MIG from corresponding .defs
278 host_notify_reply.h \
279 ktrace_background.h \
283 memory_object_control.h \
284 memory_object_default.h \
290 # sender-side ("user") source files generated by MIG from corresponding .defs
292 audit_triggers_user.c \
294 coalition_notification_user.c \
296 fairplayd_notification_user.c \
297 arcade_upcall_user.c \
298 host_notify_reply_user.c \
299 ktrace_background_user.c \
302 memory_object_user.c \
303 memory_object_control_user.c \
304 memory_object_default_user.c \
305 resource_notify_user.c \
307 telemetry_notification_user.c \
311 sysdiagnose_notification_user.c
314 arcade_register_server.h \
316 clock_priv_server.h \
317 mach_eventlink_server.h \
320 host_security_server.h \
324 mach_notify_server.h \
327 mach_voucher_server.h \
328 mach_voucher_attr_control_server.h \
329 memory_entry_server.h \
330 memory_object_control_server.h \
331 memory_object_default_server.h \
333 processor_set_server.h \
334 restartable_server.h \
336 thread_act_server.h \
342 arcade_register_server.c \
344 clock_priv_server.c \
345 mach_eventlink_server.c \
348 host_security_server.c \
352 mach_notify_server.c \
355 mach_voucher_server.c \
356 mach_voucher_attr_control_server.c \
357 memory_entry_server.c \
358 memory_object_control_server.c \
359 memory_object_default_server.c \
361 processor_set_server.c \
362 restartable_server.c \
364 thread_act_server.c \
371 # Since there are two generated header files with the same name, one for
372 # install and export, the other for internal use (and they are different)
373 # we can't explicitly list two rules for the same target. So rules for
374 # generating internal headers will be handled implicitly by creating rules
375 # to generate the internal C sources, and the headers get created as a
379 # This is all temporary scaffolding, as we are moving to a model where
380 # the MIG-generated code is identical in all environments. At first, it
381 # will contain some environment-specific ifdefs, but over time should not
382 # even require that as we move towards making all the environments look
385 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
387 do_build_all:: $(COMP_FILES)
389 ${COMP_FILES} : ${MIG_TYPES}
394 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
404 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
407 -server $*_server.c \
408 -sheader $*_server.h \
411 include $(MakeInc_rule)
412 include $(MakeInc_dir)