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 \
47 telemetry_notification.defs \
52 coalition_notification.defs \
53 ktrace_background.defs \
55 memory_object_control.defs \
56 memory_object_default.defs \
57 sysdiagnose_notification.defs \
62 # MIG-generated headers that are traditionally used by user
66 audit_triggers_server.h \
67 clock_reply_server.h \
68 coalition_notification_server.h \
71 memory_object_default_server.h \
73 task_access_server.h \
74 telemetry_notification_server.h \
75 sysdiagnose_notification_server.h
88 mach_voucher_attr_control.h \
89 memory_object_control.h \
98 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
110 host_special_ports.h \
117 mach_voucher_types.h \
120 memory_object_types.h \
124 mig_voucher_support.h \
125 mig_strncpy_zerofill_support.h \
134 shared_memory_server.h \
142 task_special_ports.h \
145 thread_special_ports.h \
166 # installed into System.framework's PrivateHeaders/mach subdirectory
167 PRIVATE_DATAFILES = \
169 branch_predicates.h \
171 coalition_notification.defs \
173 ktrace_background.defs \
176 memory_object_types.h \
180 resource_notify.defs \
181 resource_monitors.h \
185 sysdiagnose_notification.defs \
193 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
195 INSTALL_KF_MI_LIST = \
197 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
199 INSTALL_KF_MI_LCL_LIST = \
202 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
204 INSTALL_MI_GEN_LIST =
206 INSTALL_MI_DIR = mach
209 branch_predicates.h \
212 resource_monitors.h \
216 EXPORT_MI_GEN_LIST = \
221 ${MIGINCLUDES} : ${MIG_TYPES}
225 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
226 $(_v)$(MIG) $(MIGFLAGS) \
234 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
235 $(_v)$(MIG) $(MIGFLAGS) \
246 INCFLAGS_MAKEFILE= -I..
248 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
249 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
251 # MIG-generated headers that are traditionally used by kernel
255 # sender-side ("user") headers generated by MIG from corresponding .defs
260 host_notify_reply.h \
261 ktrace_background.h \
265 memory_object_control.h \
266 memory_object_default.h \
272 # sender-side ("user") source files generated by MIG from corresponding .defs
274 audit_triggers_user.c \
276 coalition_notification_user.c \
278 host_notify_reply_user.c \
279 ktrace_background_user.c \
282 memory_object_user.c \
283 memory_object_control_user.c \
284 memory_object_default_user.c \
285 resource_notify_user.c \
287 telemetry_notification_user.c \
290 sysdiagnose_notification_user.c
294 clock_priv_server.h \
297 host_security_server.h \
301 mach_notify_server.h \
304 mach_voucher_server.h \
305 mach_voucher_attr_control_server.h \
306 memory_object_control_server.h \
307 memory_object_default_server.h \
309 processor_set_server.h \
311 thread_act_server.h \
318 clock_priv_server.c \
321 host_security_server.c \
325 mach_notify_server.c \
328 mach_voucher_server.c \
329 mach_voucher_attr_control_server.c \
330 memory_object_control_server.c \
331 memory_object_default_server.c \
333 processor_set_server.c \
335 thread_act_server.c \
342 # Since there are two generated header files with the same name, one for
343 # install and export, the other for internal use (and they are different)
344 # we can't explicitly list two rules for the same target. So rules for
345 # generating internal headers will be handled implicitly by creating rules
346 # to generate the internal C sources, and the headers get created as a
350 # This is all temporary scaffolding, as we are moving to a model where
351 # the MIG-generated code is identical in all environments. At first, it
352 # will contain some environment-specific ifdefs, but over time should not
353 # even require that as we move towards making all the environments look
356 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
358 do_build_all:: $(COMP_FILES)
360 ${COMP_FILES} : ${MIG_TYPES}
364 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
365 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
374 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
375 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
378 -server $*_server.c \
379 -sheader $*_server.h \
382 include $(MakeInc_rule)
383 include $(MakeInc_dir)