]> git.saurik.com Git - apple/xnu.git/blame - osfmk/arm/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / osfmk / arm / Makefile
CommitLineData
5ba3f43e
A
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
f427ee49
A
9ifeq ($(PLATFORM),MacOSX)
10
11ARM_HEADER_FILES = \
12 arch.h \
13 atomic.h \
14 cpu_number.h \
15 cpu_capabilities.h \
16 cpu_x86_64_capabilities.h \
17 cpuid.h \
18 cpuid_internal.h \
19 io_map_entries.h \
20 lock.h \
21 locks.h \
22 machine_cpuid.h \
23 machine_routines.h \
24 memory_types.h \
25 pal_routines.h \
26 simple_lock.h \
27 thread.h \
28 trap.h
29
30INSTALL_MD_DIR = arm
31
32# Headers installed into System.framework/PrivateHeaders (internal SDK only).
33INSTALL_MD_LCL_LIST = arch.h cpu_capabilities.h
34
35# Headers installed into /usr/include (public and internal SDKs).
36INSTALL_MD_LIST = arch.h
37
38# Headers installed in the public/internal SDKs for userspace DriverKit drivers.
39INSTALL_DRIVERKIT_MD_LIST = arch.h
40
41# Headers installed into Kernel.framework/Headers (public and internal SDKs).
42INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
43
44# Headers installed into Kernel.framework/PrivateHeaders (internal SDK only).
45INSTALL_KF_MD_LCL_LIST = \
46 dbgwrap.h \
47 machine_kpc.h \
48 monotonic.h \
49 pmap_public.h \
50 proc_reg.h \
51 smp.h \
52 $(ARM_HEADER_FILES)
53
54# TODO: consolidate INSTALL_KF_MD_LCL_LIST and EXPORT_MD_LIST? Only difference is caches_internal.h/machine_cpu.h
55# Headers used to compile xnu
56EXPORT_MD_LIST = \
57 caches_internal.h \
58 dbgwrap.h \
59 machine_cpu.h \
60 machine_kpc.h \
61 monotonic.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
70else # $(PLATFORM),MacOSX
71
5ba3f43e
A
72ARM_HEADER_FILES = \
73 arch.h \
74 atomic.h \
75 cpu_number.h \
76 cpu_capabilities.h \
f427ee49 77 cpu_x86_64_capabilities.h \
5ba3f43e
A
78 cpuid.h \
79 cpuid_internal.h \
80 dbgwrap.h \
81 io_map_entries.h \
82 lock.h \
83 locks.h \
84 machine_cpu.h \
85 machine_cpuid.h \
86 machine_routines.h \
cb323159 87 memory_types.h \
5ba3f43e 88 pal_routines.h \
d9a64523 89 pmap_public.h \
5ba3f43e 90 proc_reg.h \
d9a64523 91 simple_lock.h \
5ba3f43e 92 smp.h \
f427ee49
A
93 thread.h \
94 trap.h
5ba3f43e
A
95
96INSTALL_MD_DIR = arm
97
98INSTALL_MD_LCL_LIST = arch.h cpu_capabilities.h
99
100INSTALL_MD_LIST = arch.h
101
f427ee49
A
102INSTALL_DRIVERKIT_MD_LIST = arch.h
103
5ba3f43e
A
104INSTALL_KF_MD_LIST = $(ARM_HEADER_FILES)
105
106INSTALL_KF_MD_LCL_LIST = machine_kpc.h monotonic.h $(ARM_HEADER_FILES)
107
108EXPORT_MD_LIST = \
109 caches_internal.h \
110 machine_kpc.h \
111 monotonic.h \
112 ${ARM_HEADER_FILES}
113
114EXPORT_MD_DIR = arm
115
f427ee49
A
116endif # $(PLATFORM),MacOSX
117
5ba3f43e
A
118include $(MakeInc_rule)
119include $(MakeInc_dir)