]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/libkern/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / libkern / Makefile
index 41c7ce91f265aeb970577f616fa0baa899ba05aa..c7b51b5e61b6df2829103ea8d95fbc5d8871c2fb 100644 (file)
@@ -3,55 +3,101 @@ export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 
-
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
 INSTINC_SUBDIRS = \
-        machine \
-       c++
-
-INSTINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS} \
-        ppc
-
-INSTINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS} \
+    machine \
+    c++ \
+    crypto \
+    img4 \
+       coretrust
+INSTINC_SUBDIRS_X86_64 = \
         i386
+INSTINC_SUBDIRS_X86_64H = \
+        i386
+INSTINC_SUBDIRS_ARM = \
+        arm
+INSTINC_SUBDIRS_ARM64 = \
+        arm
 
 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
-EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC}
-EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386}
+EXPINC_SUBDIRS_X86_64 = ${INSTINC_SUBDIRS_X86_64}
+EXPINC_SUBDIRS_X86_64H = ${INSTINC_SUBDIRS_X86_64H}
+EXPINC_SUBDIRS_ARM = ${INSTINC_SUBDIRS_ARM}
+EXPINC_SUBDIRS_ARM64 = ${INSTINC_SUBDIRS_ARM64}
 
 DATAFILES = \
-       OSAtomic.h      \
-        OSBase.h       \
-        OSByteOrder.h  \
-        OSDebug.h      \
-        OSMalloc.h     \
-        OSReturn.h     \
-        OSTypes.h      \
-       locks.h         \
-       sysctl.h
-
-INSTALL_MI_LIST        = OSByteOrder.h OSDebug.h OSReturn.h OSTypes.h 
+       OSByteOrder.h \
+       _OSByteOrder.h \
+       OSDebug.h \
+       OSKextLib.h \
+       OSReturn.h \
+       OSTypes.h
+
+DRIVERKIT_DATAFILES = \
+       OSByteOrder.h \
+       _OSByteOrder.h
+
+KERNELFILES = \
+       ${DATAFILES} \
+       OSAtomic.h \
+       OSBase.h \
+       OSMalloc.h \
+       locks.h \
+       sysctl.h \
+       tree.h \
+       zconf.h \
+       zlib.h \
+       crc.h \
+       Block.h
+
+PRIVATE_KERNELFILES = \
+       OSKextLibPrivate.h \
+       OSSerializeBinary.h \
+       kernel_mach_header.h \
+       kext_request_keys.h \
+       mkext.h \
+       prelink.h \
+       section_keywords.h \
+       Block_private.h \
+       ptrauth_utils.h
+
+PRIVATE_DATAFILES = \
+       ${PRIVATE_KERNELFILES} \
+       tree.h
+
+INSTALL_MI_LIST        = ${DATAFILES}
+
+INSTALL_DRIVERKIT_MI_LIST = ${DRIVERKIT_DATAFILES}
+
+DRIVERKITINCDIR = $(DRIVERKITSDKHEADERSROOT)/usr/local/include
 
 INSTALL_MI_DIR = libkern
 
-INSTALL_MI_LCL_GEN_LIST = OSCrossEndian.h
+INSTALL_MI_LCL_LIST =        \
+       ${PRIVATE_DATAFILES} \
+       kext_panic_report.h  \
+       OSCrossEndian.h
+
+INSTALL_KF_MI_LIST = ${KERNELFILES}
 
-EXPORT_MI_LIST = ${DATAFILES}
+INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
+
+EXPORT_MI_LIST = \
+       $(sort ${KERNELFILES} ${PRIVATE_DATAFILES}) \
+       kxld.h                 \
+       kxld_types.h           \
+       stack_protector.h
 
 EXPORT_MI_GEN_LIST = version.h
 
 EXPORT_MI_DIR = libkern
 
-NEWVERS = $(SRCROOT)/config/newvers.pl
-
 version.h: version.h.template $(SRCROOT)/config/MasterVersion
-       @echo "Generating libkern/$@ from $<";
-       install $(DATA_INSTALL_FLAGS) $< $@
-       $(NEWVERS) $@;
+       @$(LOG_GENERATE) "libkern/$@$(Color0) from $(ColorF)$<"
+       $(_v)install $(DATA_INSTALL_FLAGS) $< $@
+       $(_v)$(NEWVERS) $@ > /dev/null
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)
-
-