xref: /xnu-11417.140.69/bsd/sys/Makefile (revision 43a90889846e00bfb5cf1d255cdc0a701a1e05a4)
1*43a90889SApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2*43a90889SApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3*43a90889SApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4*43a90889SApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5*43a90889SApple OSS Distributions
6*43a90889SApple OSS Distributionsinclude $(MakeInc_cmd)
7*43a90889SApple OSS Distributionsinclude $(MakeInc_def)
8*43a90889SApple OSS Distributions
9*43a90889SApple OSS DistributionsINSTINC_SUBDIRS = \
10*43a90889SApple OSS Distributions	_types
11*43a90889SApple OSS Distributions
12*43a90889SApple OSS DistributionsEXPINC_SUBDIRS = \
13*43a90889SApple OSS Distributions	_types
14*43a90889SApple OSS Distributions
15*43a90889SApple OSS Distributions# Files that are public on macOS, but private on embedded
16*43a90889SApple OSS DistributionsEMBEDDED_PRIVATE_DATAFILES = \
17*43a90889SApple OSS Distributions	disk.h dtrace.h dtrace_glue.h dtrace_impl.h fasttrap.h fasttrap_isa.h ioctl_compat.h kdebug.h \
18*43a90889SApple OSS Distributions	kern_control.h kernel_types.h proc_info.h protosw.h reboot.h ttychars.h ttydev.h ubc.h vnode.h
19*43a90889SApple OSS Distributions
20*43a90889SApple OSS Distributionsifeq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS) $(SUPPORTED_SIMULATOR_PLATFORMS),$(PLATFORM)),)
21*43a90889SApple OSS DistributionsEXTRA_DATAFILES = $(EMBEDDED_PRIVATE_DATAFILES)
22*43a90889SApple OSS Distributionselse
23*43a90889SApple OSS DistributionsEXTRA_PRIVATE_DATAFILES = $(EMBEDDED_PRIVATE_DATAFILES)
24*43a90889SApple OSS Distributionsendif
25*43a90889SApple OSS Distributions
26*43a90889SApple OSS Distributions# Installs header file for user level -
27*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
28*43a90889SApple OSS Distributions#	  $(DSTROOT)/usr/include/
29*43a90889SApple OSS Distributions# Most of these are covered by CoreOSModuleMaps because some of them are mixed
30*43a90889SApple OSS Distributions# in with related headers in other directories from other projects, or mixed
31*43a90889SApple OSS Distributions# in with headers from other projects in sys/.
32*43a90889SApple OSS DistributionsDATAFILES = $(sort \
33*43a90889SApple OSS Distributions	appleapiopts.h	acct.h aio.h attr.h \
34*43a90889SApple OSS Distributions	buf.h cdefs.h clonefile.h conf.h constrained_ctypes.h \
35*43a90889SApple OSS Distributions	dir.h dirent.h dkstat.h \
36*43a90889SApple OSS Distributions	errno.h ev.h event.h fcntl.h file.h filedesc.h \
37*43a90889SApple OSS Distributions	fileport.h filio.h fsgetpath.h gmon.h \
38*43a90889SApple OSS Distributions	ioccom.h ioctl.h \
39*43a90889SApple OSS Distributions	ipc.h kernel.h kern_event.h lctx.h loadable_fs.h lock.h lockf.h \
40*43a90889SApple OSS Distributions	kauth.h kdebug_signpost.h lockstat.h malloc.h \
41*43a90889SApple OSS Distributions	mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
42*43a90889SApple OSS Distributions	proc.h ptrace.h queue.h quota.h resource.h resourcevar.h \
43*43a90889SApple OSS Distributions	sbuf.h posix_sem.h posix_shm.h random.h sdt.h\
44*43a90889SApple 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 \
45*43a90889SApple OSS Distributions	sysctl.h syslimits.h syslog.h sys_domain.h termios.h  time.h \
46*43a90889SApple OSS Distributions	timeb.h times.h trace.h tty.h ttycom.h \
47*43a90889SApple OSS Distributions	ttydefaults.h types.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
48*43a90889SApple OSS Distributions	user.h utfconv.h utsname.h vadvise.h vcmd.h \
49*43a90889SApple OSS Distributions	vm.h vmmeter.h vmparam.h vnode_if.h vsock.h vstat.h wait.h xattr.h \
50*43a90889SApple OSS Distributions	_select.h _structs.h _types.h _endian.h __endian.h domain.h \
51*43a90889SApple OSS Distributions	spawn.h timex.h commpage.h log_data.h \
52*43a90889SApple OSS Distributions	$(EXTRA_DATAFILES))
53*43a90889SApple OSS Distributions
54*43a90889SApple OSS Distributions# Installs header file for DriverKit drivers -
55*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/DriverKit/System/usr/include/
56*43a90889SApple OSS DistributionsDRIVERKIT_DATAFILES = \
57*43a90889SApple OSS Distributions	cdefs.h _types.h _endian.h __endian.h time.h
58*43a90889SApple OSS Distributions
59*43a90889SApple OSS Distributions# Installs header file for Apple internal use in user level -
60*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
61*43a90889SApple OSS Distributions# These are covered by CoreOSModuleMaps because they're mixed in with headers
62*43a90889SApple OSS Distributions# from other projects in sys/.
63*43a90889SApple OSS DistributionsPRIVATE_DATAFILES = $(sort \
64*43a90889SApple OSS Distributions	attr.h \
65*43a90889SApple OSS Distributions	attr_private.h \
66*43a90889SApple OSS Distributions	cdefs.h \
67*43a90889SApple OSS Distributions	clonefile.h \
68*43a90889SApple OSS Distributions	coalition.h \
69*43a90889SApple OSS Distributions	coalition_private.h \
70*43a90889SApple OSS Distributions	codesign.h \
71*43a90889SApple OSS Distributions	constrained_ctypes.h \
72*43a90889SApple OSS Distributions	content_protection.h \
73*43a90889SApple OSS Distributions	crossarch.h \
74*43a90889SApple OSS Distributions	csr.h \
75*43a90889SApple OSS Distributions	decmpfs.h \
76*43a90889SApple OSS Distributions	dirent_private.h \
77*43a90889SApple OSS Distributions	disk.h \
78*43a90889SApple OSS Distributions	disklabel.h \
79*43a90889SApple OSS Distributions	domain.h \
80*43a90889SApple OSS Distributions	event.h \
81*43a90889SApple OSS Distributions	event_log.h \
82*43a90889SApple OSS Distributions	event_private.h \
83*43a90889SApple OSS Distributions	fcntl.h \
84*43a90889SApple OSS Distributions	fileport.h \
85*43a90889SApple OSS Distributions	fsctl.h \
86*43a90889SApple OSS Distributions	fsevents.h \
87*43a90889SApple OSS Distributions	fsgetpath.h \
88*43a90889SApple OSS Distributions	fsgetpath_private.h \
89*43a90889SApple OSS Distributions	fslog.h \
90*43a90889SApple OSS Distributions	guarded.h \
91*43a90889SApple OSS Distributions	imgsrc.h \
92*43a90889SApple OSS Distributions	ipcs.h \
93*43a90889SApple OSS Distributions	kas_info.h \
94*43a90889SApple OSS Distributions	kdebug.h \
95*43a90889SApple OSS Distributions	kdebug_private.h \
96*43a90889SApple OSS Distributions	kdebug_triage.h \
97*43a90889SApple OSS Distributions	kern_debug.h \
98*43a90889SApple OSS Distributions	kern_event.h \
99*43a90889SApple OSS Distributions	kern_memorystatus.h \
100*43a90889SApple OSS Distributions	kern_memorystatus_freeze.h \
101*43a90889SApple OSS Distributions	kern_overrides.h \
102*43a90889SApple OSS Distributions	kern_sysctl.h \
103*43a90889SApple OSS Distributions	mbuf.h \
104*43a90889SApple OSS Distributions	mman.h \
105*43a90889SApple OSS Distributions	monotonic.h \
106*43a90889SApple OSS Distributions	persona.h \
107*43a90889SApple OSS Distributions	preoslog.h \
108*43a90889SApple OSS Distributions	priv.h \
109*43a90889SApple OSS Distributions	proc.h \
110*43a90889SApple OSS Distributions	proc_info_private.h \
111*43a90889SApple OSS Distributions	proc_uuid_policy.h \
112*43a90889SApple OSS Distributions	process_policy.h \
113*43a90889SApple OSS Distributions	reason.h \
114*43a90889SApple OSS Distributions	resource.h \
115*43a90889SApple OSS Distributions	resource_private.h \
116*43a90889SApple OSS Distributions	sfi.h \
117*43a90889SApple OSS Distributions	shm_internal.h \
118*43a90889SApple OSS Distributions	snapshot.h \
119*43a90889SApple OSS Distributions	socket.h \
120*43a90889SApple OSS Distributions	socket_private.h \
121*43a90889SApple OSS Distributions	socketvar.h \
122*43a90889SApple OSS Distributions	sockio.h \
123*43a90889SApple OSS Distributions	sockio_private.h \
124*43a90889SApple OSS Distributions	spawn.h \
125*43a90889SApple OSS Distributions	spawn_internal.h \
126*43a90889SApple OSS Distributions	stackshot.h \
127*43a90889SApple OSS Distributions	sys_domain.h \
128*43a90889SApple OSS Distributions	tree.h \
129*43a90889SApple OSS Distributions	ulock.h \
130*43a90889SApple OSS Distributions	unpcb.h \
131*43a90889SApple OSS Distributions	ux_exception.h \
132*43a90889SApple OSS Distributions	variant_internal.h \
133*43a90889SApple OSS Distributions	vsock.h \
134*43a90889SApple OSS Distributions	work_interval.h \
135*43a90889SApple OSS Distributions	process_policy.h \
136*43a90889SApple OSS Distributions	proc_uuid_policy.h \
137*43a90889SApple OSS Distributions	priv.h \
138*43a90889SApple OSS Distributions	pgo.h \
139*43a90889SApple OSS Distributions	memory_maintenance.h \
140*43a90889SApple OSS Distributions	commpage.h \
141*43a90889SApple OSS Distributions	os_log_coprocessor.h \
142*43a90889SApple OSS Distributions	$(EXTRA_PRIVATE_DATAFILES))
143*43a90889SApple OSS Distributions
144*43a90889SApple OSS Distributions# Installs header file for Apple internal use by DriverKit drivers -
145*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/DriverKit/System/usr/local/include/
146*43a90889SApple OSS DistributionsDRIVERKIT_PRIVATE_DATAFILES = \
147*43a90889SApple OSS Distributions	appleapiopts.h kdebug.h kdebug_private.h queue.h
148*43a90889SApple OSS Distributions
149*43a90889SApple OSS Distributions# Installs header file for kernel extensions -
150*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
151*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
152*43a90889SApple OSS DistributionsKERNELFILES = \
153*43a90889SApple OSS Distributions	appleapiopts.h	 attr.h \
154*43a90889SApple OSS Distributions	buf.h cdefs.h conf.h constrained_ctypes.h \
155*43a90889SApple OSS Distributions	dir.h dirent.h disk.h disklabel.h dkstat.h  \
156*43a90889SApple OSS Distributions	errno.h ev.h event.h fcntl.h file.h filio.h \
157*43a90889SApple OSS Distributions	ioccom.h ioctl.h ipc.h \
158*43a90889SApple OSS Distributions	ioctl_compat.h  kernel.h kernel_types.h kern_event.h lock.h lockf.h \
159*43a90889SApple OSS Distributions	kauth.h kdebug.h kdebug_private.h kdebug_kernel.h md5.h kern_control.h \
160*43a90889SApple OSS Distributions	imgact.h malloc.h namei.h mman.h mbuf.h mount.h netport.h param.h paths.h \
161*43a90889SApple OSS Distributions	proc.h  queue.h random.h resource.h \
162*43a90889SApple OSS Distributions	sbuf.h posix_sem.h posix_shm.h resource_private.h sem.h shm.h \
163*43a90889SApple OSS Distributions	select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
164*43a90889SApple OSS Distributions	sysctl.h syslimits.h syslog.h systm.h sys_domain.h  time.h \
165*43a90889SApple OSS Distributions	types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
166*43a90889SApple OSS Distributions	utfconv.h unicode.h vm.h vmparam.h vnode.h vnode_if.h vsock.h xattr.h \
167*43a90889SApple OSS Distributions	_select.h _structs.h _types.h _endian.h __endian.h protosw.h domain.h \
168*43a90889SApple OSS Distributions	kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
169*43a90889SApple OSS Distributions	ttycom.h termios.h msg.h \
170*43a90889SApple OSS Distributions	wait.h \
171*43a90889SApple OSS Distributions	spawn.h timex.h commpage.h
172*43a90889SApple OSS Distributions# The last line was added to export needed headers for the MAC calls
173*43a90889SApple OSS Distributions# whose source is outside of the xnu/bsd tree.
174*43a90889SApple OSS Distributions
175*43a90889SApple OSS Distributions# Installs header file for Apple internal use for kernel extensions -
176*43a90889SApple OSS Distributions#	  $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
177*43a90889SApple OSS DistributionsPRIVATE_KERNELFILES = \
178*43a90889SApple OSS Distributions	acct.h \
179*43a90889SApple OSS Distributions	attr_private.h \
180*43a90889SApple OSS Distributions	codesign.h \
181*43a90889SApple OSS Distributions	cprotect.h \
182*43a90889SApple OSS Distributions	content_protection.h \
183*43a90889SApple OSS Distributions	csr.h \
184*43a90889SApple OSS Distributions	decmpfs.h \
185*43a90889SApple OSS Distributions	dirent_private.h \
186*43a90889SApple OSS Distributions	disktab.h \
187*43a90889SApple OSS Distributions	eventhandler.h \
188*43a90889SApple OSS Distributions	event_log.h \
189*43a90889SApple OSS Distributions	event_private.h \
190*43a90889SApple OSS Distributions	fbt.h \
191*43a90889SApple OSS Distributions	fileport.h \
192*43a90889SApple OSS Distributions	fsctl.h \
193*43a90889SApple OSS Distributions	fslog.h \
194*43a90889SApple OSS Distributions	kern_memorystatus.h \
195*43a90889SApple OSS Distributions	kern_memorystatus_freeze.h \
196*43a90889SApple OSS Distributions	kpi_private.h \
197*43a90889SApple OSS Distributions	ktrace.h \
198*43a90889SApple OSS Distributions	kdebug_triage.h \
199*43a90889SApple OSS Distributions	linker_set.h \
200*43a90889SApple OSS Distributions	mach_swapon.h \
201*43a90889SApple OSS Distributions	monotonic.h \
202*43a90889SApple OSS Distributions	msgbuf.h \
203*43a90889SApple OSS Distributions	eventvar.h \
204*43a90889SApple OSS Distributions	persona.h \
205*43a90889SApple OSS Distributions	preoslog.h \
206*43a90889SApple OSS Distributions	proc_info.h \
207*43a90889SApple OSS Distributions	proc_info_private.h \
208*43a90889SApple OSS Distributions	pthread_shims.h \
209*43a90889SApple OSS Distributions	quota.h \
210*43a90889SApple OSS Distributions	reboot.h \
211*43a90889SApple OSS Distributions	resourcevar.h \
212*43a90889SApple OSS Distributions	sem_internal.h \
213*43a90889SApple OSS Distributions	shm_internal.h \
214*43a90889SApple OSS Distributions	signalvar.h \
215*43a90889SApple OSS Distributions	socket_private.h \
216*43a90889SApple OSS Distributions	sockio_private.h \
217*43a90889SApple OSS Distributions	stackshot.h \
218*43a90889SApple OSS Distributions	timeb.h times.h \
219*43a90889SApple OSS Distributions	tprintf.h \
220*43a90889SApple OSS Distributions	tty.h  ttychars.h \
221*43a90889SApple OSS Distributions	ttydefaults.h ttydev.h \
222*43a90889SApple OSS Distributions	user.h \
223*43a90889SApple OSS Distributions	variant_internal.h \
224*43a90889SApple OSS Distributions	vfs_context.h \
225*43a90889SApple OSS Distributions	vmmeter.h \
226*43a90889SApple OSS Distributions	reason.h \
227*43a90889SApple OSS Distributions	spawn_internal.h \
228*43a90889SApple OSS Distributions	priv.h \
229*43a90889SApple OSS Distributions	pgo.h \
230*43a90889SApple OSS Distributions	memory_maintenance.h \
231*43a90889SApple OSS Distributions	doc_tombstone.h \
232*43a90889SApple OSS Distributions	fsevents.h \
233*43a90889SApple OSS Distributions	work_interval.h \
234*43a90889SApple OSS Distributions	kern_sysctl.h \
235*43a90889SApple OSS Distributions	vsock_transport.h \
236*43a90889SApple OSS Distributions	trust_caches.h \
237*43a90889SApple OSS Distributions	code_signing.h \
238*43a90889SApple OSS Distributions	lockdown_mode.h \
239*43a90889SApple OSS Distributions
240*43a90889SApple OSS DistributionsXNU_ONLY_EXPORTS = \
241*43a90889SApple OSS Distributions	bsdtask_info.h \
242*43a90889SApple OSS Distributions	file_internal.h \
243*43a90889SApple OSS Distributions	filedesc.h \
244*43a90889SApple OSS Distributions	guarded.h \
245*43a90889SApple OSS Distributions	kern_memorystatus_xnu.h \
246*43a90889SApple OSS Distributions	mount_internal.h \
247*43a90889SApple OSS Distributions	munge.h \
248*43a90889SApple OSS Distributions	pipe.h \
249*43a90889SApple OSS Distributions	proc_internal.h \
250*43a90889SApple OSS Distributions	proc_require.h \
251*43a90889SApple OSS Distributions	proc_ro.h \
252*43a90889SApple OSS Distributions	pthread_internal.h \
253*43a90889SApple OSS Distributions	resourcevar.h \
254*43a90889SApple OSS Distributions	semaphore.h \
255*43a90889SApple OSS Distributions	tree.h \
256*43a90889SApple OSS Distributions	uio_internal.h \
257*43a90889SApple OSS Distributions	ulock.h \
258*43a90889SApple OSS Distributions	ux_exception.h \
259*43a90889SApple OSS Distributions	vnode_internal.h \
260*43a90889SApple OSS Distributions	vsock_domain.h \
261*43a90889SApple OSS Distributions	code_signing_internal.h \
262*43a90889SApple OSS Distributions	trusted_execution_monitor.h \
263*43a90889SApple OSS Distributions	coalition.h
264*43a90889SApple OSS Distributions
265*43a90889SApple OSS Distributions# /usr/include
266*43a90889SApple OSS DistributionsINSTALL_MI_LIST	= ${DATAFILES}
267*43a90889SApple OSS Distributions
268*43a90889SApple OSS DistributionsINSTALL_DRIVERKIT_MI_LIST = ${DRIVERKIT_DATAFILES}
269*43a90889SApple OSS Distributions
270*43a90889SApple OSS DistributionsINSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
271*43a90889SApple OSS Distributions
272*43a90889SApple OSS DistributionsINSTALL_DRIVERKIT_MI_GEN_LIST = _posix_availability.h _symbol_aliasing.h
273*43a90889SApple OSS Distributions
274*43a90889SApple OSS DistributionsINSTALL_MI_DIR = sys
275*43a90889SApple OSS Distributions
276*43a90889SApple OSS DistributionsEXPORT_MI_LIST	= $(sort ${KERNELFILES} ${PRIVATE_KERNELFILES} ${XNU_ONLY_EXPORTS})
277*43a90889SApple OSS Distributions
278*43a90889SApple OSS DistributionsEXPORT_MI_GEN_LIST = syscall.h sysproto.h
279*43a90889SApple OSS Distributions
280*43a90889SApple OSS DistributionsEXPORT_MI_DIR = sys
281*43a90889SApple OSS Distributions
282*43a90889SApple OSS Distributions# /usr/local/include
283*43a90889SApple OSS DistributionsINSTALL_MI_LCL_LIST = $(sort \
284*43a90889SApple OSS Distributions	attr_private.h coalition_private.h code_signing.h codesign.h content_protection.h csr.h decmpfs.h dirent_private.h \
285*43a90889SApple OSS Distributions	event_log.h event_private.h fsevents.h fsgetpath_private.h guarded.h kdebug_private.h \
286*43a90889SApple OSS Distributions	kern_memorystatus.h preoslog.h proc_info_private.h reason.h resource_private.h \
287*43a90889SApple OSS Distributions	socket_private.h sockio_private.h stackshot.h work_interval.h ${EXTRA_PRIVATE_DATAFILES})
288*43a90889SApple OSS Distributions
289*43a90889SApple OSS Distributions# /System/Library/Frameworks/System.framework/PrivateHeaders
290*43a90889SApple OSS DistributionsINSTALL_SF_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES}
291*43a90889SApple OSS Distributions
292*43a90889SApple OSS DistributionsINSTALL_SF_MI_LCL_GEN_LIST = ${INSTALL_MI_GEN_LIST}
293*43a90889SApple OSS Distributions
294*43a90889SApple OSS DistributionsINSTALL_DRIVERKIT_MI_LCL_LIST = ${DRIVERKIT_PRIVATE_DATAFILES}
295*43a90889SApple OSS Distributions
296*43a90889SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/PrivateHeaders
297*43a90889SApple OSS DistributionsINSTALL_KF_MI_LCL_LIST =  ${KERNELFILES} ${PRIVATE_KERNELFILES}
298*43a90889SApple OSS Distributions
299*43a90889SApple OSS DistributionsINSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
300*43a90889SApple OSS Distributions
301*43a90889SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/Headers
302*43a90889SApple OSS DistributionsINSTALL_KF_MI_LIST = ${KERNELFILES}
303*43a90889SApple OSS Distributions
304*43a90889SApple OSS DistributionsINSTALL_KF_MI_GEN_LIST =
305*43a90889SApple OSS Distributions
306*43a90889SApple OSS DistributionsMAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
307*43a90889SApple OSS Distributions
308*43a90889SApple OSS Distributions$(OBJROOT)/cscope.genhdrs:
309*43a90889SApple OSS Distributions	$(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
310*43a90889SApple OSS Distributions
311*43a90889SApple OSS Distributions$(OBJROOT)/syscall.codes: $(TARGET)/bsd.syscalls.master
312*43a90889SApple OSS Distributions	@$(LOG_GENERATE) "$(ColorLF)$@$(Color0) from $(ColorF)$(<F)$(Color0)"
313*43a90889SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< trace > $@
314*43a90889SApple OSS Distributions
315*43a90889SApple OSS Distributions
316*43a90889SApple OSS Distributions$(OBJROOT)/trace.codes: $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes
317*43a90889SApple OSS Distributions	$(_v)sort -g $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes >$@
318*43a90889SApple OSS Distributions
319*43a90889SApple OSS Distributionssyscall.h: $(TARGET)/bsd.syscalls.master $(OBJROOT)/cscope.genhdrs
320*43a90889SApple OSS Distributions	@$(LOG_GENERATE) "$(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$(<F)$(Color0)"
321*43a90889SApple OSS Distributions	@echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
322*43a90889SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< header > /dev/null
323*43a90889SApple OSS Distributions
324*43a90889SApple OSS Distributionssysproto.h: $(TARGET)/bsd.syscalls.master $(OBJROOT)/cscope.genhdrs
325*43a90889SApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0) from $(ColorF)$(<F)$(Color0)"
326*43a90889SApple OSS Distributions	@echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
327*43a90889SApple OSS Distributions	$(_v)$(MAKESYSCALLS) $< proto > /dev/null
328*43a90889SApple OSS Distributions
329*43a90889SApple OSS DistributionsMAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
330*43a90889SApple OSS Distributions_posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
331*43a90889SApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0)"
332*43a90889SApple OSS Distributions	$(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
333*43a90889SApple OSS Distributions
334*43a90889SApple OSS DistributionsMAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
335*43a90889SApple OSS Distributions_symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
336*43a90889SApple OSS Distributions	@$(LOG_GENERATE) "bsd/sys/$@$(Color0)"
337*43a90889SApple OSS Distributions	$(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
338*43a90889SApple OSS Distributions
339*43a90889SApple OSS Distributions# generated headers needed early (used by iig during installhdrs of iokit/DriverKit)
340*43a90889SApple OSS DistributionsSETUP_GEN_LIST = _posix_availability.h _symbol_aliasing.h
341*43a90889SApple OSS Distributionsifneq ($(filter 1,$(EXCLAVEKIT) $(EXCLAVECORE)),)
342*43a90889SApple OSS DistributionsSETUP_GEN_LIST =
343*43a90889SApple OSS Distributionsendif
344*43a90889SApple OSS Distributions
345*43a90889SApple OSS Distributionsdo_build_setup:: $(SETUP_GEN_LIST)
346*43a90889SApple OSS Distributions
347*43a90889SApple OSS DistributionsTRACE_CODES_DEST = \
348*43a90889SApple OSS Distributions	$(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/trace.codes
349*43a90889SApple OSS Distributions
350*43a90889SApple OSS Distributions$(TRACE_CODES_DEST): $(OBJROOT)/trace.codes
351*43a90889SApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)
352*43a90889SApple OSS Distributions	@$(LOG_INSTALL) "$(@F)"
353*43a90889SApple OSS Distributions	$(_v)$(INSTALL) $(INSTALL_FLAGS) $(OBJROOT)/trace.codes $@
354*43a90889SApple OSS Distributions
355*43a90889SApple OSS Distributionsdo_textfiles_install_mi:: $(TRACE_CODES_DEST)
356*43a90889SApple OSS Distributions
357*43a90889SApple OSS DistributionsARIADNE_PLISTS = \
358*43a90889SApple OSS Distributions	xnu_exclaves.plist \
359*43a90889SApple OSS Distributions	xnu_epoch_sync.plist \
360*43a90889SApple OSS Distributions	xnu_suspension.plist
361*43a90889SApple OSS Distributions
362*43a90889SApple OSS DistributionsARIADNE_PLISTS_SRC = $(patsubst %,$(SRCROOT)/bsd/kern/ariadne_plists/%,$(ARIADNE_PLISTS))
363*43a90889SApple OSS DistributionsARIADNE_PLISTS_DEST = $(patsubst %,$(DSTROOT)/$(INSTALL_ARIADNE_PLISTS_DIR)/%,$(ARIADNE_PLISTS))
364*43a90889SApple OSS Distributions
365*43a90889SApple OSS Distributions$(ARIADNE_PLISTS_DEST): $(ARIADNE_PLISTS_SRC)
366*43a90889SApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_ARIADNE_PLISTS_DIR)
367*43a90889SApple OSS Distributions	@$(LOG_INSTALL) "$(@F)"
368*43a90889SApple OSS Distributions	$(_v)$(INSTALL) $(INSTALL_FLAGS) $< $@
369*43a90889SApple OSS Distributions
370*43a90889SApple OSS Distributionsdo_textfiles_install_mi:: $(ARIADNE_PLISTS_DEST)
371*43a90889SApple OSS Distributions
372*43a90889SApple OSS Distributionsinclude $(MakeInc_rule)
373*43a90889SApple OSS Distributionsinclude $(MakeInc_dir)
374