]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/libkern/Makefile
xnu-3248.30.4.tar.gz
[apple/xnu.git] / libkern / libkern / Makefile
index cf3af2a630a679ca82a92e0c50d5043e8c621aac..db475229bf0bec868f5dae5d5c721be33f22d906 100644 (file)
@@ -3,54 +3,88 @@ 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} \
+       c++ \
+       crypto
+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
+
+KERNELFILES = \
+       ${DATAFILES} \
+       OSAtomic.h \
+       OSBase.h \
+       OSMalloc.h \
+       locks.h \
+       sysctl.h \
+       tree.h \
+       zconf.h \
+       zlib.h
+
+PRIVATE_KERNELFILES = \
+       OSKextLibPrivate.h \
+       OSSerializeBinary.h \
+       kext_request_keys.h \
+       mkext.h \
+       prelink.h
+
+PRIVATE_DATAFILES = \
+       ${PRIVATE_KERNELFILES} \
+       tree.h
+
+INSTALL_MI_LIST        = ${DATAFILES}
 
 INSTALL_MI_DIR = libkern
 
-EXPORT_MI_LIST = ${DATAFILES}
+INSTALL_MI_LCL_LIST =        \
+       ${PRIVATE_DATAFILES} \
+       kext_panic_report.h  \
+       OSCrossEndian.h
 
-EXPORT_MI_GEN_LIST = \
-        version.h
+INSTALL_KF_MI_LIST = ${KERNELFILES}
 
-EXPORT_MI_DIR = libkern
+INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
+
+EXPORT_MI_LIST = \
+       $(sort ${KERNELFILES} ${PRIVATE_DATAFILES}) \
+       kernel_mach_header.h   \
+       kxld.h                 \
+       kxld_types.h           \
+       stack_protector.h
 
-NEWVERS = $(SRCROOT)/config/newvers.pl
+
+
+EXPORT_MI_GEN_LIST = version.h
+
+EXPORT_MI_DIR = libkern
 
 version.h: version.h.template $(SRCROOT)/config/MasterVersion
        @echo "Generating libkern/$@ from $<";
-       install $(DATA_INSTALL_FLAGS) $< $@
-       $(NEWVERS) $@;
+       $(_v)install $(DATA_INSTALL_FLAGS) $< $@
+       $(_v)$(NEWVERS) $@ > /dev/null;
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)
-
-