include $(MakeInc_cmd)
include $(MakeInc_def)
-ALLPRODUCTS = AppleTV iPhone MacOSX
-PRODUCT = $(shell tconf --product)
-EXTRAUNIFDEF = $(foreach x,$(ALLPRODUCTS),$(if $(findstring $(PRODUCT),$(x)),-DPRODUCT_$(x),-UPRODUCT_$(x)))
-SINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
-SPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
-KINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
-KPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
-
INSTINC_SUBDIRS = \
-
-INSTINC_SUBDIRS_PPC = \
-
-INSTINC_SUBDIRS_I386 = \
+ _types
EXPINC_SUBDIRS = \
-
-EXPINC_SUBDIRS_PPC = \
-
-EXPINC_SUBDIRS_I386 = \
+ _types
# Installs header file for user level -
-# $(DSTROOT)/System/Library/Frameworks/System.framework/Headers
# $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
# $(DSTROOT)/usr/include/
DATAFILES = \
errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h gmon.h \
ioccom.h ioctl.h \
ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h loadable_fs.h lock.h lockf.h \
- kauth.h kdebug.h kern_control.h kern_memorystatus.h lctx.h malloc.h \
+ kauth.h kdebug.h kern_control.h lctx.h lockstat.h malloc.h \
mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \
sbuf.h posix_sem.h posix_shm.h sdt.h \
- select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h \
+ select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h stdio.h \
sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \
timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
# Installs header file for Apple internal use in user level -
# $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
PRIVATE_DATAFILES = \
+ coalition.h \
codesign.h \
+ content_protection.h \
+ csr.h \
+ decmpfs.h \
disklabel.h \
+ fileport.h \
fsctl.h \
fsgetpath.h \
fslog.h \
+ guarded.h \
+ imgsrc.h \
ipcs.h \
+ kas_info.h \
+ kern_memorystatus.h \
+ kern_overrides.h \
+ sfi.h \
shm_internal.h \
spawn_internal.h \
tree.h \
ux_exception.h \
- proc_info.h \
- vnioctl.h
+ process_policy.h \
+ proc_uuid_policy.h \
+ priv.h
# Installs header file for kernel extensions -
# $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
errno.h ev.h event.h fcntl.h file.h filio.h \
ioccom.h ioctl.h ipc.h \
ioctl_compat.h kernel.h kernel_types.h kern_event.h lctx.h lock.h lockf.h \
- kauth.h kdebug.h md5.h kern_callout.h kern_control.h kern_memorystatus.h imgact.h malloc.h namei.h \
+ kauth.h kdebug.h md5.h kern_control.h imgact.h malloc.h namei.h \
mman.h mbuf.h mount.h netport.h param.h paths.h \
proc.h queue.h random.h resource.h \
sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
- select.h signal.h socket.h socketvar.h sockio.h stat.h \
+ select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \
types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \
# Installs header file for Apple internal use for kernel extensions -
# $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
PRIVATE_KERNELFILES = \
+ codesign.h \
cprotect.h \
+ content_protection.h \
+ csr.h \
decmpfs.h \
disktab.h \
fbt.h \
+ fileport.h \
fsctl.h \
fslog.h \
+ kasl.h \
+ kern_memorystatus.h \
mach_swapon.h \
msgbuf.h \
eventvar.h \
+ proc_info.h \
+ pthread_shims.h \
quota.h \
sem_internal.h \
shm_internal.h \
user.h \
vfs_context.h \
vmmeter.h \
- spawn_internal.h
+ spawn_internal.h \
+ priv.h
# /System/Library/Frameworks/System.framework/Headers and /usr/include
INSTALL_MI_LIST = ${DATAFILES}
-INSTALL_MI_GEN_LIST = syscall.h
+INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
INSTALL_MI_DIR = sys
-EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h filedesc.h pipe.h resourcevar.h semaphore.h \
+EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h pthread_internal.h filedesc.h pipe.h resourcevar.h semaphore.h \
vnode_internal.h proc_internal.h file_internal.h mount_internal.h \
- uio_internal.h
+ uio_internal.h tree.h munge.h kern_tests.h
-EXPORT_MI_GEN_LIST = syscall.h sysproto.h
+EXPORT_MI_GEN_LIST = syscall.h sysproto.h kdebugevents.h
EXPORT_MI_DIR = sys
# /System/Library/Frameworks/Kernel.framework/Headers
INSTALL_KF_MI_LIST = ${KERNELFILES}
-INSTALL_KF_MI_GEN_LIST =
+INSTALL_KF_MI_GEN_LIST =
MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
+MAKEKDEBUGEVENTS = $(SRCROOT)/bsd/kern/makekdebugevents.py
+
+$(OBJROOT)/cscope.genhdrs:
+ $(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
-syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
+syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
@echo "Generating bsd/sys/$@ from $<";
+ @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
$(_v)$(MAKESYSCALLS) $< header > /dev/null
-sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
+sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
@echo "Generating bsd/sys/$@ from $<";
+ @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
$(_v)$(MAKESYSCALLS) $< proto > /dev/null
+kdebugevents.h: $(SRCROOT)/bsd/kern/trace.codes $(MAKEKDEBUGEVENTS) $(OBJROOT)/cscope.genhdrs
+ @echo "Generating bsd/kern/$@ from $<";
+ @echo "$(OBJPATH)/bsd/kern/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
+ $(_v)$(MAKEKDEBUGEVENTS) $< > "$(OBJPATH)/bsd/sys/$@"
+
+MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
+_posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
+ @echo "Generating bsd/sys/$@"
+ $(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
+
+MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
+_symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
+ @echo "Generating bsd/sys/$@"
+ $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
+
include $(MakeInc_rule)
include $(MakeInc_dir)