xref: /xnu-11417.101.15/osfmk/arm64/Makefile (revision e3723e1f17661b24996789d8afc084c0c3303b26)
1export MakeInc_cmd=$(SRCROOT)/makedefs/MakeInc.cmd
2export MakeInc_def=$(SRCROOT)/makedefs/MakeInc.def
3export MakeInc_rule=$(SRCROOT)/makedefs/MakeInc.rule
4export MakeInc_dir=$(SRCROOT)/makedefs/MakeInc.dir
5
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9# proc_reg.h is exported into the userspace internal SDK for usage by SPTM's
10# userspace testing system.
11ARM_PRIVATE_HEADERS = \
12	proc_reg.h
13
14
15EXPINC_SUBDIRS_ARM64 += \
16	sptm
17
18ARM_HEADER_FILES = \
19	machine_cpuid.h		\
20	machine_machdep.h	\
21
22# Headers installed into Kernel.framework/Headers (public and internal SDKs).
23INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
24
25# Headers installed into Kernel.framework/PrivateHeaders (internal SDK only).
26INSTALL_KF_MD_LCL_LIST = \
27	hv_hvc.h \
28	lowglobals.h \
29	machine_kpc.h \
30	machine_remote_time.h \
31	monotonic.h \
32	proc_reg.h \
33	tlb.h \
34	$(ARM_HEADER_FILES)
35
36# Headers installed into System.framework/PrivateHeaders
37INSTALL_SF_MD_LCL_LIST = \
38	$(ARM_PRIVATE_HEADERS)
39
40# TODO: Is there a reason that machine_machdep.h is not in this list? If not, these lists can be consolidated.
41# Headers used to compile xnu
42EXPORT_MD_LIST = \
43	cpc_arm64.h \
44	hv_hvc.h \
45	lowglobals.h \
46	machine_cpuid.h \
47	machine_kpc.h \
48	machine_remote_time.h \
49	monotonic.h \
50	proc_reg.h \
51	asm.h \
52	speculation.h \
53	static_if.h \
54	tlb.h \
55	pal_hibernate.h
56
57# These headers will be available with #include <arm64/header_file.h>
58EXPORT_MD_DIR = arm64
59
60INSTALL_MD_DIR = arm64
61
62include $(MakeInc_rule)
63include $(MakeInc_dir)
64