]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm64/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / osfmk / arm64 / Makefile
index ad75e8a11a124ee67fb17e08bc3baa8ebd8ba462..aab4908ff4b4d5bb55184efb3aee47d075ecd525 100644 (file)
@@ -6,11 +6,53 @@ export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
+ifeq ($(PLATFORM),MacOSX)
+
+
+ARM_HEADER_FILES = \
+       machine_cpuid.h         \
+       machine_machdep.h       \
+
+# Headers installed into Kernel.framework/Headers (public and internal SDKs).
+INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
+
+# Headers installed into Kernel.framework/PrivateHeaders (internal SDK only).
+INSTALL_KF_MD_LCL_LIST = \
+       lowglobals.h \
+       machine_kpc.h \
+       machine_remote_time.h \
+       monotonic.h \
+       pgtrace.h \
+       proc_reg.h \
+       tlb.h \
+       $(ARM_HEADER_FILES)
+
+# TODO: Is there a reason that machine_machdep.h is not in this list? If not, these lists can be consolidated.
+# Headers used to compile xnu
+EXPORT_MD_LIST = \
+       lowglobals.h \
+       machine_cpuid.h \
+       machine_kpc.h \
+       machine_remote_time.h \
+       monotonic.h \
+       pgtrace.h \
+       proc_reg.h \
+       asm.h \
+       tlb.h \
+       pal_hibernate.h
+
+# These headers will be available with #include <arm64/header_file.h>
+EXPORT_MD_DIR = arm64
+
+else # $(PLATFORM),MacOSX
+
+
 ARM_HEADER_FILES = \
                lowglobals.h            \
                machine_cpuid.h         \
                machine_machdep.h       \
-               proc_reg.h
+               proc_reg.h              \
+               tlb.h                   \
 
 INSTALL_MD_DIR = arm64
 
@@ -20,12 +62,13 @@ INSTALL_MD_LIST =
 
 INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
 
-INSTALL_KF_MD_LCL_LIST = machine_kpc.h monotonic.h pgtrace.h $(ARM_HEADER_FILES)
-
-EXPORT_MD_LIST = machine_cpuid.h machine_kpc.h monotonic.h proc_reg.h pgtrace.h
+INSTALL_KF_MD_LCL_LIST = machine_kpc.h machine_remote_time.h monotonic.h pgtrace.h $(ARM_HEADER_FILES)
 
+EXPORT_MD_LIST = machine_cpuid.h machine_kpc.h machine_remote_time.h monotonic.h proc_reg.h pgtrace.h asm.h tlb.h pal_hibernate.h
 
 EXPORT_MD_DIR = arm64
 
+endif # $(PLATFORM),MacOSX
+
 include $(MakeInc_rule)
 include $(MakeInc_dir)