xref: /xnu-11215/bsd/sys/Makefile (revision 4f1223e8)
1c1dac77fSApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2c1dac77fSApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3c1dac77fSApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4c1dac77fSApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5c1dac77fSApple OSS Distributions
6c1dac77fSApple OSS Distributionsinclude $(MakeInc_cmd)
7c1dac77fSApple OSS Distributionsinclude $(MakeInc_def)
8c1dac77fSApple OSS Distributions
9186b8fceSApple OSS DistributionsINSTINC_SUBDIRS = \
10186b8fceSApple OSS Distributions	_types
113ca3bd55SApple OSS Distributions
12186b8fceSApple OSS DistributionsEXPINC_SUBDIRS = \
13186b8fceSApple OSS Distributions	_types
14c1dac77fSApple OSS Distributions
15e6231be0SApple OSS Distributions# Files that are public on macOS, but private on embedded
16e6231be0SApple OSS DistributionsEMBEDDED_PRIVATE_DATAFILES = \
17*4f1223e8SApple OSS Distributions	disk.h dtrace.h dtrace_glue.h dtrace_impl.h fasttrap.h fasttrap_isa.h ioctl_compat.h kdebug.h \
18*4f1223e8SApple OSS Distributions	kern_control.h kernel_types.h proc_info.h protosw.h reboot.h ttychars.h ttydev.h ubc.h vnode.h
19e6231be0SApple OSS Distributions
20e6231be0SApple OSS Distributionsifeq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS) $(SUPPORTED_SIMULATOR_PLATFORMS),$(PLATFORM)),)
21e6231be0SApple OSS DistributionsEXTRA_DATAFILES = $(EMBEDDED_PRIVATE_DATAFILES)
22e6231be0SApple OSS Distributionselse
23e6231be0SApple OSS DistributionsEXTRA_PRIVATE_DATAFILES = $(EMBEDDED_PRIVATE_DATAFILES)
24e6231be0SApple OSS Distributionsendif
25e6231be0SApple OSS Distributions
26e13b1fa5SApple OSS Distributions# Installs header file for user level -
27e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
28e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/usr/include/
29e6231be0SApple OSS Distributions# Most of these are covered by CoreOSModuleMaps because some of them are mixed
30e6231be0SApple OSS Distributions# in with related headers in other directories from other projects, or mixed
31e6231be0SApple OSS Distributions# in with headers from other projects in sys/.
32e6231be0SApple OSS DistributionsDATAFILES = $(sort \
33368ad365SApple OSS Distributions	appleapiopts.h	acct.h aio.h attr.h \
345c2921b0SApple OSS Distributions	buf.h cdefs.h clonefile.h conf.h constrained_ctypes.h \
35*4f1223e8SApple OSS Distributions	dir.h dirent.h dkstat.h \
36*4f1223e8SApple OSS Distributions	errno.h ev.h event.h fcntl.h file.h filedesc.h filio.h fsgetpath.h gmon.h \
3714e3d835SApple OSS Distributions	ioccom.h ioctl.h \
38e6231be0SApple OSS Distributions	ipc.h kernel.h kern_event.h lctx.h loadable_fs.h lock.h lockf.h \
391031c584SApple OSS Distributions	kauth.h kdebug_signpost.h lockstat.h malloc.h \
403ca3bd55SApple OSS Distributions	mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
411031c584SApple OSS Distributions	proc.h ptrace.h queue.h quota.h resource.h resourcevar.h \
4288cc0b97SApple OSS Distributions	sbuf.h posix_sem.h posix_shm.h random.h sdt.h\
4376e12aa3SApple OSS Distributions	select.h sem.h semaphore.h shm.h signal.h signalvar.h snapshot.h socket.h socketvar.h sockio.h stat.h stdio.h \
443ca3bd55SApple OSS Distributions	sysctl.h syslimits.h syslog.h sys_domain.h termios.h  time.h \
455c2921b0SApple OSS Distributions	timeb.h times.h trace.h tty.h ttycom.h \
46*4f1223e8SApple OSS Distributions	ttydefaults.h types.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
47e13b1fa5SApple OSS Distributions	user.h utfconv.h utsname.h vadvise.h vcmd.h \
485c2921b0SApple OSS Distributions	vm.h vmmeter.h vmparam.h vnode_if.h vsock.h vstat.h wait.h xattr.h \
49*4f1223e8SApple OSS Distributions	_select.h _structs.h _types.h _endian.h __endian.h domain.h \
50e6231be0SApple OSS Distributions	spawn.h timex.h commpage.h log_data.h \
51e6231be0SApple OSS Distributions	$(EXTRA_DATAFILES))
52e6231be0SApple OSS Distributions
53a5e72196SApple OSS Distributions# Installs header file for DriverKit drivers -
54a5e72196SApple OSS Distributions#	  $(DSTROOT)/System/DriverKit/System/usr/include/
55a5e72196SApple OSS DistributionsDRIVERKIT_DATAFILES = \
568d741a5dSApple OSS Distributions	cdefs.h _types.h _endian.h __endian.h time.h
5714e3d835SApple OSS Distributions
58e13b1fa5SApple OSS Distributions# Installs header file for Apple internal use in user level -
59e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
60e6231be0SApple OSS Distributions# These are covered by CoreOSModuleMaps because they're mixed in with headers
61e6231be0SApple OSS Distributions# from other projects in sys/.
62e6231be0SApple OSS DistributionsPRIVATE_DATAFILES = $(sort \
630f3703acSApple OSS Distributions	attr.h \
648d741a5dSApple OSS Distributions	attr_private.h \
650f3703acSApple OSS Distributions	cdefs.h \
6688cc0b97SApple OSS Distributions	clonefile.h \
67a3bb9fccSApple OSS Distributions	coalition.h \
688d741a5dSApple OSS Distributions	coalition_private.h \
69e13b1fa5SApple OSS Distributions	codesign.h \
705c2921b0SApple OSS Distributions	constrained_ctypes.h \
71855239e5SApple OSS Distributions	content_protection.h \
72aca3beaaSApple OSS Distributions	crossarch.h \
73a3bb9fccSApple OSS Distributions	csr.h \
74d0c1fef6SApple OSS Distributions	decmpfs.h \
758d741a5dSApple OSS Distributions	dirent_private.h \
760f3703acSApple OSS Distributions	disk.h \
7714e3d835SApple OSS Distributions	disklabel.h \
780f3703acSApple OSS Distributions	domain.h \
790f3703acSApple OSS Distributions	event.h \
805c2921b0SApple OSS Distributions	event_log.h \
811031c584SApple OSS Distributions	event_private.h \
820f3703acSApple OSS Distributions	fcntl.h \
83855239e5SApple OSS Distributions	fileport.h \
843ca3bd55SApple OSS Distributions	fsctl.h \
850f3703acSApple OSS Distributions	fsevents.h \
863ca3bd55SApple OSS Distributions	fsgetpath.h \
878d741a5dSApple OSS Distributions	fsgetpath_private.h \
88e13b1fa5SApple OSS Distributions	fslog.h \
89186b8fceSApple OSS Distributions	guarded.h \
90855239e5SApple OSS Distributions	imgsrc.h \
9114e3d835SApple OSS Distributions	ipcs.h \
92d0c1fef6SApple OSS Distributions	kas_info.h \
930f3703acSApple OSS Distributions	kdebug.h \
94e6231be0SApple OSS Distributions	kdebug_private.h \
95e6231be0SApple OSS Distributions	kdebug_triage.h \
96e6231be0SApple OSS Distributions	kern_debug.h \
970f3703acSApple OSS Distributions	kern_event.h \
98a3bb9fccSApple OSS Distributions	kern_memorystatus.h \
99a5e72196SApple OSS Distributions	kern_memorystatus_freeze.h \
100186b8fceSApple OSS Distributions	kern_overrides.h \
101a5e72196SApple OSS Distributions	kern_sysctl.h \
1020f3703acSApple OSS Distributions	mbuf.h \
1030f3703acSApple OSS Distributions	mman.h \
10476e12aa3SApple OSS Distributions	monotonic.h \
10588cc0b97SApple OSS Distributions	persona.h \
1065c2921b0SApple OSS Distributions	preoslog.h \
1070f3703acSApple OSS Distributions	priv.h \
1080f3703acSApple OSS Distributions	proc.h \
1091031c584SApple OSS Distributions	proc_info_private.h \
1100f3703acSApple OSS Distributions	proc_uuid_policy.h \
1110f3703acSApple OSS Distributions	process_policy.h \
11288cc0b97SApple OSS Distributions	reason.h \
1130f3703acSApple OSS Distributions	resource.h \
114e7776783SApple OSS Distributions	resource_private.h \
115a3bb9fccSApple OSS Distributions	sfi.h \
11614e3d835SApple OSS Distributions	shm_internal.h \
11788cc0b97SApple OSS Distributions	snapshot.h \
1180f3703acSApple OSS Distributions	socket.h \
1198d741a5dSApple OSS Distributions	socket_private.h \
1200f3703acSApple OSS Distributions	socketvar.h \
1210f3703acSApple OSS Distributions	sockio.h \
1228d741a5dSApple OSS Distributions	sockio_private.h \
1230f3703acSApple OSS Distributions	spawn.h \
124e13b1fa5SApple OSS Distributions	spawn_internal.h \
1250f3703acSApple OSS Distributions	stackshot.h \
1260f3703acSApple OSS Distributions	sys_domain.h \
1273ca3bd55SApple OSS Distributions	tree.h \
12888cc0b97SApple OSS Distributions	ulock.h \
1290f3703acSApple OSS Distributions	unpcb.h \
13014e3d835SApple OSS Distributions	ux_exception.h \
1315c2921b0SApple OSS Distributions	variant_internal.h \
132bb611c8fSApple OSS Distributions	vsock.h \
1330f3703acSApple OSS Distributions	work_interval.h \
134855239e5SApple OSS Distributions	process_policy.h \
135186b8fceSApple OSS Distributions	proc_uuid_policy.h \
1360f3703acSApple OSS Distributions	priv.h \
1370f3703acSApple OSS Distributions	pgo.h \
13876e12aa3SApple OSS Distributions	memory_maintenance.h \
139e6231be0SApple OSS Distributions	commpage.h \
140e6231be0SApple OSS Distributions	$(EXTRA_PRIVATE_DATAFILES))
14114e3d835SApple OSS Distributions
142a5e72196SApple OSS Distributions# Installs header file for Apple internal use by DriverKit drivers -
143a5e72196SApple OSS Distributions#	  $(DSTROOT)/System/DriverKit/System/usr/local/include/
144a5e72196SApple OSS DistributionsDRIVERKIT_PRIVATE_DATAFILES = \
14594d3b452SApple OSS Distributions	appleapiopts.h kdebug.h kdebug_private.h queue.h
146a5e72196SApple OSS Distributions
147e13b1fa5SApple OSS Distributions# Installs header file for kernel extensions -
148e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
149e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
15014e3d835SApple OSS DistributionsKERNELFILES = \
15114e3d835SApple OSS Distributions	appleapiopts.h	 attr.h \
1525c2921b0SApple OSS Distributions	buf.h cdefs.h conf.h constrained_ctypes.h \
153e13b1fa5SApple OSS Distributions	dir.h dirent.h disk.h disklabel.h dkstat.h  \
1543ca3bd55SApple OSS Distributions	errno.h ev.h event.h fcntl.h file.h filio.h \
155e13b1fa5SApple OSS Distributions	ioccom.h ioctl.h ipc.h \
1560f3703acSApple OSS Distributions	ioctl_compat.h  kernel.h kernel_types.h kern_event.h lock.h lockf.h \
157e6231be0SApple OSS Distributions	kauth.h kdebug.h kdebug_private.h kdebug_kernel.h md5.h kern_control.h \
158e6231be0SApple OSS Distributions	imgact.h malloc.h namei.h mman.h mbuf.h mount.h netport.h param.h paths.h \
15994d3b452SApple OSS Distributions	proc.h  queue.h random.h resource.h \
160e7776783SApple OSS Distributions	sbuf.h posix_sem.h posix_shm.h resource_private.h sem.h shm.h \
161a3bb9fccSApple OSS Distributions	select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
16214e3d835SApple OSS Distributions	sysctl.h syslimits.h syslog.h systm.h sys_domain.h  time.h \
16314e3d835SApple OSS Distributions	types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
164bb611c8fSApple OSS Distributions	utfconv.h unicode.h vm.h vmparam.h vnode.h vnode_if.h vsock.h xattr.h \
1658d741a5dSApple OSS Distributions	_select.h _structs.h _types.h _endian.h __endian.h protosw.h domain.h \
16614e3d835SApple OSS Distributions	kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
167e13b1fa5SApple OSS Distributions	ttycom.h termios.h msg.h \
1683ca3bd55SApple OSS Distributions	wait.h \
16976e12aa3SApple OSS Distributions	spawn.h timex.h commpage.h
170e13b1fa5SApple OSS Distributions# The last line was added to export needed headers for the MAC calls
171e13b1fa5SApple OSS Distributions# whose source is outside of the xnu/bsd tree.
17214e3d835SApple OSS Distributions
173e13b1fa5SApple OSS Distributions# Installs header file for Apple internal use for kernel extensions -
174e13b1fa5SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
17514e3d835SApple OSS DistributionsPRIVATE_KERNELFILES = \
176e6231be0SApple OSS Distributions	acct.h \
1778d741a5dSApple OSS Distributions	attr_private.h \
178855239e5SApple OSS Distributions	codesign.h \
179855239e5SApple OSS Distributions	cprotect.h \
180855239e5SApple OSS Distributions	content_protection.h \
181a3bb9fccSApple OSS Distributions	csr.h \
1823ca3bd55SApple OSS Distributions	decmpfs.h \
1838d741a5dSApple OSS Distributions	dirent_private.h \
18414e3d835SApple OSS Distributions	disktab.h \
18576e12aa3SApple OSS Distributions	eventhandler.h \
1865c2921b0SApple OSS Distributions	event_log.h \
1871031c584SApple OSS Distributions	event_private.h \
188e13b1fa5SApple OSS Distributions	fbt.h \
189855239e5SApple OSS Distributions	fileport.h \
1903ca3bd55SApple OSS Distributions	fsctl.h \
191e13b1fa5SApple OSS Distributions	fslog.h \
192a3bb9fccSApple OSS Distributions	kern_memorystatus.h \
193a5e72196SApple OSS Distributions	kern_memorystatus_freeze.h \
1940f3703acSApple OSS Distributions	kpi_private.h \
19588cc0b97SApple OSS Distributions	ktrace.h \
196e6231be0SApple OSS Distributions	kdebug_triage.h \
197bb611c8fSApple OSS Distributions	linker_set.h \
19814e3d835SApple OSS Distributions	mach_swapon.h \
19976e12aa3SApple OSS Distributions	monotonic.h \
20014e3d835SApple OSS Distributions	msgbuf.h \
20114e3d835SApple OSS Distributions	eventvar.h \
20288cc0b97SApple OSS Distributions	persona.h \
2035c2921b0SApple OSS Distributions	preoslog.h \
204a3bb9fccSApple OSS Distributions	proc_info.h \
2051031c584SApple OSS Distributions	proc_info_private.h \
206186b8fceSApple OSS Distributions	pthread_shims.h \
2073ca3bd55SApple OSS Distributions	quota.h \
20876e12aa3SApple OSS Distributions	reboot.h \
209e6231be0SApple OSS Distributions	resourcevar.h \
210e13b1fa5SApple OSS Distributions	sem_internal.h \
211e13b1fa5SApple OSS Distributions	shm_internal.h \
21214e3d835SApple OSS Distributions	signalvar.h \
2138d741a5dSApple OSS Distributions	socket_private.h \
2148d741a5dSApple OSS Distributions	sockio_private.h \
2150f3703acSApple OSS Distributions	stackshot.h \
216e6231be0SApple OSS Distributions	timeb.h times.h \
2175c2921b0SApple OSS Distributions	tprintf.h \
21814e3d835SApple OSS Distributions	tty.h  ttychars.h \
21914e3d835SApple OSS Distributions	ttydefaults.h ttydev.h \
22014e3d835SApple OSS Distributions	user.h \
2211031c584SApple OSS Distributions	variant_internal.h \
222e13b1fa5SApple OSS Distributions	vfs_context.h \
223e13b1fa5SApple OSS Distributions	vmmeter.h \
22488cc0b97SApple OSS Distributions	reason.h \
225855239e5SApple OSS Distributions	spawn_internal.h \
2260f3703acSApple OSS Distributions	priv.h \
2270f3703acSApple OSS Distributions	pgo.h \
22888cc0b97SApple OSS Distributions	memory_maintenance.h \
22988cc0b97SApple OSS Distributions	doc_tombstone.h \
23076e12aa3SApple OSS Distributions	fsevents.h \
23176e12aa3SApple OSS Distributions	work_interval.h \
232a5e72196SApple OSS Distributions	kern_sysctl.h \
233bb611c8fSApple OSS Distributions	vsock_transport.h \
2345c2921b0SApple OSS Distributions	trust_caches.h \
2355c2921b0SApple OSS Distributions	code_signing.h \
2361031c584SApple OSS Distributions	lockdown_mode.h \
237c1dac77fSApple OSS Distributions
238cc9a6355SApple OSS DistributionsXNU_ONLY_EXPORTS = \
239cc9a6355SApple OSS Distributions	bsdtask_info.h \
240cc9a6355SApple OSS Distributions	file_internal.h \
241cc9a6355SApple OSS Distributions	filedesc.h \
242cc9a6355SApple OSS Distributions	guarded.h \
243*4f1223e8SApple OSS Distributions	kern_memorystatus_xnu.h \
244cc9a6355SApple OSS Distributions	mount_internal.h \
245cc9a6355SApple OSS Distributions	munge.h \
246cc9a6355SApple OSS Distributions	pipe.h \
247cc9a6355SApple OSS Distributions	proc_internal.h \
248bb611c8fSApple OSS Distributions	proc_require.h \
249e7776783SApple OSS Distributions	proc_ro.h \
250cc9a6355SApple OSS Distributions	pthread_internal.h \
251cc9a6355SApple OSS Distributions	resourcevar.h \
252cc9a6355SApple OSS Distributions	semaphore.h \
253cc9a6355SApple OSS Distributions	tree.h \
254cc9a6355SApple OSS Distributions	uio_internal.h \
255cc9a6355SApple OSS Distributions	ulock.h \
256cc9a6355SApple OSS Distributions	ux_exception.h \
257bb611c8fSApple OSS Distributions	vnode_internal.h \
258aca3beaaSApple OSS Distributions	vsock_domain.h \
2591031c584SApple OSS Distributions	code_signing_internal.h \
2608d741a5dSApple OSS Distributions	trusted_execution_monitor.h \
2618d741a5dSApple OSS Distributions	coalition.h
262bb611c8fSApple OSS Distributions
2630f3703acSApple OSS Distributions# /usr/include
264c1dac77fSApple OSS DistributionsINSTALL_MI_LIST	= ${DATAFILES}
265c1dac77fSApple OSS Distributions
266e6231be0SApple OSS DistributionsINSTALL_DRIVERKIT_MI_LIST = ${DRIVERKIT_DATAFILES}
267bb611c8fSApple OSS Distributions
268855239e5SApple OSS DistributionsINSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
2693ca3bd55SApple OSS Distributions
270a5e72196SApple OSS DistributionsINSTALL_DRIVERKIT_MI_GEN_LIST = _posix_availability.h _symbol_aliasing.h
271a5e72196SApple OSS Distributions
272c1dac77fSApple OSS DistributionsINSTALL_MI_DIR = sys
273c1dac77fSApple OSS Distributions
274e6231be0SApple OSS DistributionsEXPORT_MI_LIST	= $(sort ${KERNELFILES} ${PRIVATE_KERNELFILES} ${XNU_ONLY_EXPORTS})
2753ca3bd55SApple OSS Distributions
276bb611c8fSApple OSS DistributionsEXPORT_MI_GEN_LIST = syscall.h sysproto.h
277c1dac77fSApple OSS Distributions
278c1dac77fSApple OSS DistributionsEXPORT_MI_DIR = sys
279c1dac77fSApple OSS Distributions
280e6231be0SApple OSS Distributions# /usr/local/include
281e6231be0SApple OSS DistributionsINSTALL_MI_LCL_LIST = $(sort \
2828d741a5dSApple OSS Distributions	attr_private.h coalition_private.h code_signing.h codesign.h content_protection.h csr.h decmpfs.h dirent_private.h \
2838d741a5dSApple OSS Distributions	event_log.h event_private.h fsevents.h fsgetpath_private.h guarded.h kdebug_private.h \
2848d741a5dSApple OSS Distributions	kern_memorystatus.h preoslog.h proc_info_private.h reason.h resource_private.h \
2858d741a5dSApple OSS Distributions	socket_private.h sockio_private.h stackshot.h work_interval.h ${EXTRA_PRIVATE_DATAFILES})
286e6231be0SApple OSS Distributions
28714e3d835SApple OSS Distributions# /System/Library/Frameworks/System.framework/PrivateHeaders
288e6231be0SApple OSS DistributionsINSTALL_SF_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES}
289e6231be0SApple OSS Distributions
290e6231be0SApple OSS DistributionsINSTALL_SF_MI_LCL_GEN_LIST = ${INSTALL_MI_GEN_LIST}
29114e3d835SApple OSS Distributions
292a5e72196SApple OSS DistributionsINSTALL_DRIVERKIT_MI_LCL_LIST = ${DRIVERKIT_PRIVATE_DATAFILES}
293a5e72196SApple OSS Distributions
29414e3d835SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/PrivateHeaders
29514e3d835SApple OSS DistributionsINSTALL_KF_MI_LCL_LIST =  ${KERNELFILES} ${PRIVATE_KERNELFILES}
29614e3d835SApple OSS Distributions
2973ca3bd55SApple OSS DistributionsINSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
2983ca3bd55SApple OSS Distributions
29914e3d835SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/Headers
30014e3d835SApple OSS DistributionsINSTALL_KF_MI_LIST = ${KERNELFILES}
301c1dac77fSApple OSS Distributions
3023ca3bd55SApple OSS DistributionsINSTALL_KF_MI_GEN_LIST =
3033ca3bd55SApple OSS Distributions
3043ca3bd55SApple OSS DistributionsMAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
3053ca3bd55SApple OSS Distributions
306a3bb9fccSApple OSS Distributions$(OBJROOT)/cscope.genhdrs:
307a3bb9fccSApple OSS Distributions	$(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
308a3bb9fccSApple OSS Distributions
309bb611c8fSApple OSS Distributions$(OBJROOT)/syscall.codes: $(TARGET)/bsd.syscalls.master
310bb611c8fSApple OSS Distributions	@$(LOG_GENERATE) "$(ColorLF)$@$(Color0) from $(ColorF)$(<F)$(Color0)"
31188cc0b97SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< trace > $@
31288cc0b97SApple OSS Distributions
3135c2921b0SApple OSS Distributions
31488cc0b97SApple OSS Distributions$(OBJROOT)/trace.codes: $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes
31588cc0b97SApple OSS Distributions	$(_v)sort -g $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes >$@
31688cc0b97SApple OSS Distributions
317bb611c8fSApple OSS Distributionssyscall.h: $(TARGET)/bsd.syscalls.master $(OBJROOT)/cscope.genhdrs
318bb611c8fSApple OSS Distributions	@$(LOG_GENERATE) "$(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$(<F)$(Color0)"
319a3bb9fccSApple OSS Distributions	@echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
3203ca3bd55SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< header > /dev/null
3213ca3bd55SApple OSS Distributions
322bb611c8fSApple OSS Distributionssysproto.h: $(TARGET)/bsd.syscalls.master $(OBJROOT)/cscope.genhdrs
323bb611c8fSApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0) from $(ColorF)$(<F)$(Color0)"
324a3bb9fccSApple OSS Distributions	@echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
3253ca3bd55SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< proto > /dev/null
3263ca3bd55SApple OSS Distributions
327855239e5SApple OSS DistributionsMAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
328855239e5SApple OSS Distributions_posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
329bb611c8fSApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0)"
330d0c1fef6SApple OSS Distributions	$(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
331855239e5SApple OSS Distributions
332855239e5SApple OSS DistributionsMAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
333855239e5SApple OSS Distributions_symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
334bb611c8fSApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0)"
335d0c1fef6SApple OSS Distributions	$(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
336855239e5SApple OSS Distributions
337a5e72196SApple OSS Distributions# generated headers needed early (used by iig during installhdrs of iokit/DriverKit)
338a5e72196SApple OSS DistributionsSETUP_GEN_LIST = _posix_availability.h _symbol_aliasing.h
3391031c584SApple OSS Distributionsifneq ($(filter 1,$(EXCLAVEKIT) $(EXCLAVECORE)),)
3401031c584SApple OSS DistributionsSETUP_GEN_LIST =
3411031c584SApple OSS Distributionsendif
342a5e72196SApple OSS Distributions
343a5e72196SApple OSS Distributionsdo_build_setup:: $(SETUP_GEN_LIST)
344a5e72196SApple OSS Distributions
34588cc0b97SApple OSS DistributionsTRACE_CODES_DEST = \
34688cc0b97SApple OSS Distributions	$(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/trace.codes
34788cc0b97SApple OSS Distributions
34888cc0b97SApple OSS Distributions$(TRACE_CODES_DEST): $(OBJROOT)/trace.codes
34988cc0b97SApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)
350e6231be0SApple OSS Distributions	@$(LOG_INSTALL) "$(@F)"
35188cc0b97SApple OSS Distributions	$(_v)$(INSTALL) $(INSTALL_FLAGS) $(OBJROOT)/trace.codes $@
35288cc0b97SApple OSS Distributions
353bb611c8fSApple OSS Distributionsdo_textfiles_install_mi:: $(TRACE_CODES_DEST)
35488cc0b97SApple OSS Distributions
3558d741a5dSApple OSS DistributionsARIADNE_PLISTS = \
3568d741a5dSApple OSS Distributions	xnu_exclaves.plist \
35733de042dSApple OSS Distributions	xnu_epoch_sync.plist \
35833de042dSApple OSS Distributions	xnu_suspension.plist
3598d741a5dSApple OSS Distributions
3608d741a5dSApple OSS DistributionsARIADNE_PLISTS_SRC = $(patsubst %,$(SRCROOT)/bsd/kern/ariadne_plists/%,$(ARIADNE_PLISTS))
3618d741a5dSApple OSS DistributionsARIADNE_PLISTS_DEST = $(patsubst %,$(DSTROOT)/$(INSTALL_ARIADNE_PLISTS_DIR)/%,$(ARIADNE_PLISTS))
3628d741a5dSApple OSS Distributions
3638d741a5dSApple OSS Distributions$(ARIADNE_PLISTS_DEST): $(ARIADNE_PLISTS_SRC)
3648d741a5dSApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_ARIADNE_PLISTS_DIR)
3658d741a5dSApple OSS Distributions	@$(LOG_INSTALL) "$(@F)"
3668d741a5dSApple OSS Distributions	$(_v)$(INSTALL) $(INSTALL_FLAGS) $< $@
3678d741a5dSApple OSS Distributions
3688d741a5dSApple OSS Distributionsdo_textfiles_install_mi:: $(ARIADNE_PLISTS_DEST)
3698d741a5dSApple OSS Distributions
370c1dac77fSApple OSS Distributionsinclude $(MakeInc_rule)
371c1dac77fSApple OSS Distributionsinclude $(MakeInc_dir)
372