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 \
141 task_special_ports.h \
144 thread_special_ports.h \
165 # installed into System.framework's PrivateHeaders/mach subdirectory
166 PRIVATE_DATAFILES = \
169 coalition_notification.defs \
171 ktrace_background.defs \
174 memory_object_types.h \
177 resource_notify.defs \
178 resource_monitors.h \
182 sysdiagnose_notification.defs \
189 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
191 INSTALL_KF_MI_LIST = \
193 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
195 INSTALL_KF_MI_LCL_LIST = \
198 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
200 INSTALL_MI_GEN_LIST =
202 INSTALL_MI_DIR = mach
205 branch_predicates.h \
208 resource_monitors.h \
212 EXPORT_MI_GEN_LIST = \
217 ${MIGINCLUDES} : ${MIG_TYPES}
221 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
222 $(_v)$(MIG) $(MIGFLAGS) \
230 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
231 $(_v)$(MIG) $(MIGFLAGS) \
242 INCFLAGS_MAKEFILE= -I..
244 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
245 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
247 # MIG-generated headers that are traditionally used by kernel
251 # sender-side ("user") headers generated by MIG from corresponding .defs
256 host_notify_reply.h \
257 ktrace_background.h \
261 memory_object_control.h \
262 memory_object_default.h \
268 # sender-side ("user") source files generated by MIG from corresponding .defs
270 audit_triggers_user.c \
272 coalition_notification_user.c \
274 host_notify_reply_user.c \
275 ktrace_background_user.c \
278 memory_object_user.c \
279 memory_object_control_user.c \
280 memory_object_default_user.c \
281 resource_notify_user.c \
283 telemetry_notification_user.c \
286 sysdiagnose_notification_user.c
290 clock_priv_server.h \
293 host_security_server.h \
297 mach_notify_server.h \
300 mach_voucher_server.h \
301 mach_voucher_attr_control_server.h \
302 memory_object_control_server.h \
303 memory_object_default_server.h \
305 processor_set_server.h \
307 thread_act_server.h \
314 clock_priv_server.c \
317 host_security_server.c \
321 mach_notify_server.c \
324 mach_voucher_server.c \
325 mach_voucher_attr_control_server.c \
326 memory_object_control_server.c \
327 memory_object_default_server.c \
329 processor_set_server.c \
331 thread_act_server.c \
338 # Since there are two generated header files with the same name, one for
339 # install and export, the other for internal use (and they are different)
340 # we can't explicitly list two rules for the same target. So rules for
341 # generating internal headers will be handled implicitly by creating rules
342 # to generate the internal C sources, and the headers get created as a
346 # This is all temporary scaffolding, as we are moving to a model where
347 # the MIG-generated code is identical in all environments. At first, it
348 # will contain some environment-specific ifdefs, but over time should not
349 # even require that as we move towards making all the environments look
352 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
354 do_build_all:: $(COMP_FILES)
356 ${COMP_FILES} : ${MIG_TYPES}
360 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
361 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
370 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
371 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
374 -server $*_server.c \
375 -sheader $*_server.h \
378 include $(MakeInc_rule)
379 include $(MakeInc_dir)