]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/Makefile
xnu-2050.48.11.tar.gz
[apple/xnu.git] / bsd / sys / Makefile
index 06fc90203946ea46375c1e2ea7dee37d940fe30f..211d741b9f98195940efd5dba7874677f252715d 100644 (file)
@@ -7,25 +7,9 @@ export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 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 = \
-
-INSTINC_SUBDIRS_PPC = \
-
-INSTINC_SUBDIRS_I386 = \
-
-EXPINC_SUBDIRS = \
-
-EXPINC_SUBDIRS_PPC = \
-
-EXPINC_SUBDIRS_I386 = \
+EXPINC_SUBDIRS =
 
 # Installs header file for user level -  
 #        $(DSTROOT)/System/Library/Frameworks/System.framework/Headers
@@ -55,17 +39,24 @@ DATAFILES = \
 #        $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
 PRIVATE_DATAFILES = \
        codesign.h \
+       content_protection.h \
+       decmpfs.h \
        disklabel.h \
+       fileport.h \
        fsctl.h \
        fsgetpath.h \
        fslog.h \
+       imgsrc.h \
        ipcs.h \
+       kas_info.h \
        shm_internal.h \
        spawn_internal.h \
        tree.h \
        ux_exception.h \
        proc_info.h \
-       vnioctl.h
+       process_policy.h \
+       vnioctl.h \
+       priv.h
 
 # Installs header file for kernel extensions - 
 #        $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
@@ -77,7 +68,7 @@ KERNELFILES = \
        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 kern_memorystatus.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 \
@@ -97,9 +88,13 @@ KERNELFILES = \
 # 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 \
        decmpfs.h \
        disktab.h \
        fbt.h \
+       fileport.h \
        fsctl.h \
        fslog.h \
        mach_swapon.h \
@@ -114,19 +109,20 @@ PRIVATE_KERNELFILES = \
        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
 
 EXPORT_MI_GEN_LIST = syscall.h sysproto.h
 
@@ -155,6 +151,16 @@ sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
        @echo "Generating bsd/sys/$@ from $<";
        $(_v)$(MAKESYSCALLS) $< proto > /dev/null
 
+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)