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
16 # Installs header file for user level -
17 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
18 # $(DSTROOT)/usr/include/
20 appleapiopts.h acct.h aio.h attr.h \
21 buf.h cdefs.h conf.h \
22 dir.h dirent.h disk.h dkstat.h dtrace.h dtrace_glue.h dtrace_impl.h \
23 errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h gmon.h \
25 ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h lctx.h loadable_fs.h lock.h lockf.h \
26 kauth.h kdebug.h kern_control.h lockstat.h malloc.h \
27 mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
28 proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \
29 sbuf.h posix_sem.h posix_shm.h sdt.h \
30 select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h stdio.h \
31 sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \
32 timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
33 ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
34 user.h utfconv.h utsname.h vadvise.h vcmd.h \
35 vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \
36 _select.h _structs.h _types.h _endian.h domain.h protosw.h \
39 # Installs header file for Apple internal use in user level -
40 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
46 content_protection.h \
96 # Installs header file for kernel extensions -
97 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
98 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
100 appleapiopts.h attr.h \
101 buf.h cdefs.h conf.h \
102 dir.h dirent.h disk.h disklabel.h dkstat.h \
103 errno.h ev.h event.h fcntl.h file.h filio.h \
104 ioccom.h ioctl.h ipc.h \
105 ioctl_compat.h kernel.h kernel_types.h kern_event.h lock.h lockf.h \
106 kauth.h kdebug.h md5.h kern_control.h imgact.h malloc.h namei.h \
107 mman.h mbuf.h mount.h netport.h param.h paths.h \
108 proc.h queue.h random.h resource.h \
109 sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
110 select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
111 sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \
112 types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
113 utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \
114 _select.h _structs.h _types.h _endian.h protosw.h domain.h \
115 kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
116 ttycom.h termios.h msg.h \
119 # The last line was added to export needed headers for the MAC calls
120 # whose source is outside of the xnu/bsd tree.
123 # Installs header file for Apple internal use for kernel extensions -
124 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
125 PRIVATE_KERNELFILES = \
128 content_protection.h \
137 kern_memorystatus.h \
151 ttydefaults.h ttydev.h \
162 INSTALL_MI_LIST = ${DATAFILES}
164 INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
168 EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h pthread_internal.h filedesc.h pipe.h resourcevar.h semaphore.h \
169 vnode_internal.h proc_internal.h file_internal.h mount_internal.h \
170 uio_internal.h tree.h munge.h
172 EXPORT_MI_GEN_LIST = syscall.h sysproto.h kdebugevents.h
176 # /System/Library/Frameworks/System.framework/PrivateHeaders
177 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
179 # /System/Library/Frameworks/Kernel.framework/PrivateHeaders
180 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
182 INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
184 # /System/Library/Frameworks/Kernel.framework/Headers
185 INSTALL_KF_MI_LIST = ${KERNELFILES}
187 INSTALL_KF_MI_GEN_LIST =
189 MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
190 MAKEKDEBUGEVENTS = $(SRCROOT)/bsd/kern/makekdebugevents.py
192 $(OBJROOT)/cscope.genhdrs:
193 $(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
195 syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
196 @echo "Generating bsd/sys/$@ from $<";
197 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
198 $(_v)$(MAKESYSCALLS) $< header > /dev/null
200 sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
201 @echo "Generating bsd/sys/$@ from $<";
202 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
203 $(_v)$(MAKESYSCALLS) $< proto > /dev/null
205 kdebugevents.h: $(SRCROOT)/bsd/kern/trace.codes $(MAKEKDEBUGEVENTS) $(OBJROOT)/cscope.genhdrs
206 @echo "Generating bsd/sys/$@ from $<";
207 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
208 $(_v)$(MAKEKDEBUGEVENTS) $< > "$(OBJPATH)/bsd/sys/$@"
210 MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
211 _posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
212 @echo "Generating bsd/sys/$@"
213 $(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
215 MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
216 _symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
217 @echo "Generating bsd/sys/$@"
218 $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
220 include $(MakeInc_rule)
221 include $(MakeInc_dir)