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 \
53 coalition_notification.defs \
54 ktrace_background.defs \
56 memory_object_control.defs \
57 memory_object_default.defs \
58 sysdiagnose_notification.defs \
63 # MIG-generated headers that are traditionally used by user
67 audit_triggers_server.h \
68 clock_reply_server.h \
69 coalition_notification_server.h \
72 memory_object_default_server.h \
74 task_access_server.h \
75 telemetry_notification_server.h \
76 sysdiagnose_notification_server.h
89 mach_voucher_attr_control.h \
91 memory_object_control.h \
100 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
112 host_special_ports.h \
119 mach_voucher_types.h \
122 memory_object_types.h \
126 mig_voucher_support.h \
127 mig_strncpy_zerofill_support.h \
136 shared_memory_server.h \
144 task_special_ports.h \
147 thread_special_ports.h \
168 # installed into System.framework's PrivateHeaders/mach subdirectory
169 PRIVATE_DATAFILES = \
172 coalition_notification.defs \
174 ktrace_background.defs \
177 memory_object_types.h \
181 resource_notify.defs \
182 resource_monitors.h \
186 sysdiagnose_notification.defs \
194 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
196 INSTALL_KF_MI_LIST = \
198 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
200 INSTALL_KF_MI_LCL_LIST = \
203 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
205 INSTALL_MI_GEN_LIST =
207 INSTALL_MI_DIR = mach
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_entry_server.h \
307 memory_object_control_server.h \
308 memory_object_default_server.h \
310 processor_set_server.h \
312 thread_act_server.h \
319 clock_priv_server.c \
322 host_security_server.c \
326 mach_notify_server.c \
329 mach_voucher_server.c \
330 mach_voucher_attr_control_server.c \
331 memory_entry_server.c \
332 memory_object_control_server.c \
333 memory_object_default_server.c \
335 processor_set_server.c \
337 thread_act_server.c \
344 # Since there are two generated header files with the same name, one for
345 # install and export, the other for internal use (and they are different)
346 # we can't explicitly list two rules for the same target. So rules for
347 # generating internal headers will be handled implicitly by creating rules
348 # to generate the internal C sources, and the headers get created as a
352 # This is all temporary scaffolding, as we are moving to a model where
353 # the MIG-generated code is identical in all environments. At first, it
354 # will contain some environment-specific ifdefs, but over time should not
355 # even require that as we move towards making all the environments look
358 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
360 do_build_all:: $(COMP_FILES)
362 ${COMP_FILES} : ${MIG_TYPES}
366 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
367 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
376 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
377 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
380 -server $*_server.c \
381 -sheader $*_server.h \
384 include $(MakeInc_rule)
385 include $(MakeInc_dir)