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
15 # Installs header file for user level -
16 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
17 # $(DSTROOT)/usr/include/
19 appleapiopts.h acct.h aio.h attr.h \
20 buf.h cdefs.h clonefile.h conf.h \
21 dir.h dirent.h disk.h dkstat.h dtrace.h dtrace_glue.h dtrace_impl.h \
22 errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h gmon.h \
24 ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h lctx.h loadable_fs.h lock.h lockf.h \
25 kauth.h kdebug.h kdebug_signpost.h kern_control.h lockstat.h malloc.h \
26 mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
27 proc.h proc_info.h ptrace.h queue.h quota.h reboot.h resource.h resourcevar.h \
28 sbuf.h posix_sem.h posix_shm.h random.h sdt.h\
29 select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h stdio.h \
30 sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \
31 timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
32 ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
33 user.h utfconv.h utsname.h vadvise.h vcmd.h \
34 vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \
35 _select.h _structs.h _types.h _endian.h domain.h protosw.h \
38 # Installs header file for Apple internal use in user level -
39 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
46 content_protection.h \
99 # Installs header file for kernel extensions -
100 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
101 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
103 appleapiopts.h attr.h \
104 buf.h cdefs.h conf.h \
105 dir.h dirent.h disk.h disklabel.h dkstat.h \
106 errno.h ev.h event.h fcntl.h file.h filio.h \
107 ioccom.h ioctl.h ipc.h \
108 ioctl_compat.h kernel.h kernel_types.h kern_event.h lock.h lockf.h \
109 kauth.h kdebug.h md5.h kern_control.h imgact.h malloc.h namei.h \
110 mman.h mbuf.h mount.h netport.h param.h paths.h \
111 proc.h queue.h random.h resource.h \
112 sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
113 select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
114 sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \
115 types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
116 utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \
117 _select.h _structs.h _types.h _endian.h protosw.h domain.h \
118 kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
119 ttycom.h termios.h msg.h \
122 # The last line was added to export needed headers for the MAC calls
123 # whose source is outside of the xnu/bsd tree.
125 # Installs header file for Apple internal use for kernel extensions -
126 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
127 PRIVATE_KERNELFILES = \
130 content_protection.h \
139 kern_memorystatus.h \
154 ttydefaults.h ttydev.h \
162 memory_maintenance.h \
167 INSTALL_MI_LIST = ${DATAFILES}
169 INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
173 EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h pthread_internal.h filedesc.h pipe.h resourcevar.h semaphore.h \
174 vnode_internal.h proc_internal.h file_internal.h mount_internal.h \
175 uio_internal.h tree.h munge.h guarded.h ulock.h
177 EXPORT_MI_GEN_LIST = syscall.h sysproto.h kdebugevents.h
181 # /System/Library/Frameworks/System.framework/PrivateHeaders
182 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
184 # /System/Library/Frameworks/Kernel.framework/PrivateHeaders
185 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
187 INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
189 # /System/Library/Frameworks/Kernel.framework/Headers
190 INSTALL_KF_MI_LIST = ${KERNELFILES}
192 INSTALL_KF_MI_GEN_LIST =
194 MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
195 MAKEKDEBUGEVENTS = $(SRCROOT)/bsd/kern/makekdebugevents.py
197 $(OBJROOT)/cscope.genhdrs:
198 $(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
200 $(OBJROOT)/syscall.codes: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
201 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)$@$(Color0) from $(ColorF)$<$(Color0)";
202 $(_v)$(MAKESYSCALLS) $< trace > $@
204 $(OBJROOT)/trace.codes: $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes
205 $(_v)sort -g $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes >$@
207 syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
208 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)";
209 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
210 $(_v)$(MAKESYSCALLS) $< header > /dev/null
212 sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
213 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)";
214 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
215 $(_v)$(MAKESYSCALLS) $< proto > /dev/null
217 kdebugevents.h: $(OBJROOT)/trace.codes $(MAKEKDEBUGEVENTS) $(OBJROOT)/cscope.genhdrs
218 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)";
219 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
220 $(_v)$(MAKEKDEBUGEVENTS) $< > "$(OBJPATH)/bsd/sys/$@"
222 MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
223 _posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
224 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0)";
225 $(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
227 MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
228 _symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
229 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0)";
230 $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
233 $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/trace.codes
235 $(TRACE_CODES_DEST): $(OBJROOT)/trace.codes
236 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)
238 $(_v)$(INSTALL) $(INSTALL_FLAGS) $(OBJROOT)/trace.codes $@
240 do_textfiles_install:: $(TRACE_CODES_DEST)
242 include $(MakeInc_rule)
243 include $(MakeInc_dir)