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 \
178 resource_notify.defs \
179 resource_monitors.h \
183 sysdiagnose_notification.defs \
190 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
192 INSTALL_KF_MI_LIST = \
194 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
196 INSTALL_KF_MI_LCL_LIST = \
199 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
201 INSTALL_MI_GEN_LIST =
203 INSTALL_MI_DIR = mach
206 branch_predicates.h \
209 resource_monitors.h \
213 EXPORT_MI_GEN_LIST = \
218 ${MIGINCLUDES} : ${MIG_TYPES}
222 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
223 $(_v)$(MIG) $(MIGFLAGS) \
231 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
232 $(_v)$(MIG) $(MIGFLAGS) \
243 INCFLAGS_MAKEFILE= -I..
245 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
246 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
248 # MIG-generated headers that are traditionally used by kernel
252 # sender-side ("user") headers generated by MIG from corresponding .defs
257 host_notify_reply.h \
258 ktrace_background.h \
262 memory_object_control.h \
263 memory_object_default.h \
269 # sender-side ("user") source files generated by MIG from corresponding .defs
271 audit_triggers_user.c \
273 coalition_notification_user.c \
275 host_notify_reply_user.c \
276 ktrace_background_user.c \
279 memory_object_user.c \
280 memory_object_control_user.c \
281 memory_object_default_user.c \
282 resource_notify_user.c \
284 telemetry_notification_user.c \
287 sysdiagnose_notification_user.c
291 clock_priv_server.h \
294 host_security_server.h \
298 mach_notify_server.h \
301 mach_voucher_server.h \
302 mach_voucher_attr_control_server.h \
303 memory_object_control_server.h \
304 memory_object_default_server.h \
306 processor_set_server.h \
308 thread_act_server.h \
315 clock_priv_server.c \
318 host_security_server.c \
322 mach_notify_server.c \
325 mach_voucher_server.c \
326 mach_voucher_attr_control_server.c \
327 memory_object_control_server.c \
328 memory_object_default_server.c \
330 processor_set_server.c \
332 thread_act_server.c \
339 # Since there are two generated header files with the same name, one for
340 # install and export, the other for internal use (and they are different)
341 # we can't explicitly list two rules for the same target. So rules for
342 # generating internal headers will be handled implicitly by creating rules
343 # to generate the internal C sources, and the headers get created as a
347 # This is all temporary scaffolding, as we are moving to a model where
348 # the MIG-generated code is identical in all environments. At first, it
349 # will contain some environment-specific ifdefs, but over time should not
350 # even require that as we move towards making all the environments look
353 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
355 do_build_all:: $(COMP_FILES)
357 ${COMP_FILES} : ${MIG_TYPES}
361 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
362 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
371 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
372 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
375 -server $*_server.c \
376 -sheader $*_server.h \
379 include $(MakeInc_rule)
380 include $(MakeInc_dir)