xref: /xnu-10002.81.5/osfmk/arm/Makefile (revision 5e3eaea39dcf651e66cb99ba7d70e32cc4a99587)
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
9ARM_HEADER_FILES =	\
10		arch.h \
11		atomic.h \
12		cpu_number.h \
13		cpu_capabilities.h	\
14		cpu_x86_64_capabilities.h	\
15		cpuid.h \
16		cpuid_internal.h \
17		lock.h \
18		locks.h \
19		machine_cpuid.h \
20		machine_routines.h \
21		memory_types.h \
22		pal_routines.h \
23		simple_lock.h \
24		thread.h \
25		trap.h
26
27INSTALL_MD_DIR = arm
28
29# Headers installed into System.framework/PrivateHeaders (internal SDK only).
30INSTALL_SF_MD_LCL_LIST = arch.h cpu_capabilities.h
31
32# Headers installed into /usr/include (public and internal SDKs).
33# These are covered by ../../bsd/machine/machine.modulemap.
34INSTALL_MD_LIST = arch.h
35
36# Headers installed into /usr/local/include (internal SDK only).
37# These are covered by ../../bsd/machine/machine_private.modulemap.
38INSTALL_MD_LCL_LIST = cpu_capabilities.h
39
40# Headers installed in the public/internal SDKs for userspace DriverKit drivers.
41INSTALL_DRIVERKIT_MD_LIST = arch.h
42
43# Headers installed into Kernel.framework/Headers (public and internal SDKs).
44INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
45
46# Headers installed into Kernel.framework/PrivateHeaders (internal SDK only).
47INSTALL_KF_MD_LCL_LIST = \
48		dbgwrap.h \
49		machine_kpc.h \
50		pmap_public.h \
51		proc_reg.h \
52		smp.h \
53		$(ARM_HEADER_FILES)
54
55# TODO: consolidate INSTALL_KF_MD_LCL_LIST and EXPORT_MD_LIST? Only difference is caches_internal.h/machine_cpu.h
56# Headers used to compile xnu
57EXPORT_MD_LIST = \
58		caches_internal.h \
59		dbgwrap.h \
60		machine_cpu.h \
61		machine_kpc.h \
62		pmap_public.h \
63		proc_reg.h \
64		smp.h \
65		$(ARM_HEADER_FILES)
66
67# These headers will be available with #include <arm/header_file.h>
68EXPORT_MD_DIR = arm
69
70include $(MakeInc_rule)
71include $(MakeInc_dir)
72