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