xref: /xnu-12377.41.6/osfmk/vm/Makefile (revision bbb1b6f9e71b8cdde6e5cd6f4841f207dee3d828)
1*bbb1b6f9SApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2*bbb1b6f9SApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3*bbb1b6f9SApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4*bbb1b6f9SApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5*bbb1b6f9SApple OSS Distributions
6*bbb1b6f9SApple OSS Distributionsinclude $(MakeInc_cmd)
7*bbb1b6f9SApple OSS Distributionsinclude $(MakeInc_def)
8*bbb1b6f9SApple OSS Distributions
9*bbb1b6f9SApple OSS DistributionsDATAFILES =
10*bbb1b6f9SApple OSS Distributions
11*bbb1b6f9SApple OSS DistributionsPRIVATE_DATAFILES = \
12*bbb1b6f9SApple OSS Distributions	vm_compressor_info.h
13*bbb1b6f9SApple OSS Distributions
14*bbb1b6f9SApple OSS DistributionsKERNELFILES = \
15*bbb1b6f9SApple OSS Distributions	memory_types.h \
16*bbb1b6f9SApple OSS Distributions	pmap.h \
17*bbb1b6f9SApple OSS Distributions	lz4.h \
18*bbb1b6f9SApple OSS Distributions	lz4_constants.h \
19*bbb1b6f9SApple OSS Distributions	lz4_assembly_select.h \
20*bbb1b6f9SApple OSS Distributions	vm_fault.h \
21*bbb1b6f9SApple OSS Distributions	vm_kern.h \
22*bbb1b6f9SApple OSS Distributions	vm_map.h \
23*bbb1b6f9SApple OSS Distributions	vm_memtag.h \
24*bbb1b6f9SApple OSS Distributions	vm_options.h \
25*bbb1b6f9SApple OSS Distributions	vm_pageout.h \
26*bbb1b6f9SApple OSS Distributions	vm_protos.h \
27*bbb1b6f9SApple OSS Distributions	vm_far.h \
28*bbb1b6f9SApple OSS Distributions	vm_shared_region.h \
29*bbb1b6f9SApple OSS Distributions	vm_dyld_pager.h \
30*bbb1b6f9SApple OSS Distributions	vm_compressor_algorithms.h \
31*bbb1b6f9SApple OSS Distributions	WKdm_new.h
32*bbb1b6f9SApple OSS Distributions
33*bbb1b6f9SApple OSS DistributionsPRIVATE_KERNELFILES = \
34*bbb1b6f9SApple OSS Distributions	pmap_cs.h
35*bbb1b6f9SApple OSS Distributions
36*bbb1b6f9SApple OSS DistributionsXNU_ONLY_EXPORTS = \
37*bbb1b6f9SApple OSS Distributions	memory_object_xnu.h \
38*bbb1b6f9SApple OSS Distributions	vm_compressor_algorithms_xnu.h \
39*bbb1b6f9SApple OSS Distributions	vm_compressor_backing_store_xnu.h \
40*bbb1b6f9SApple OSS Distributions	vm_compressor_xnu.h \
41*bbb1b6f9SApple OSS Distributions	vm_fault_xnu.h \
42*bbb1b6f9SApple OSS Distributions	vm_kern_xnu.h \
43*bbb1b6f9SApple OSS Distributions	vm_map_xnu.h \
44*bbb1b6f9SApple OSS Distributions	vm_memory_entry.h \
45*bbb1b6f9SApple OSS Distributions	vm_memory_entry_xnu.h \
46*bbb1b6f9SApple OSS Distributions	vm_object_xnu.h \
47*bbb1b6f9SApple OSS Distributions	vm_page.h \
48*bbb1b6f9SApple OSS Distributions	vm_pageout_xnu.h \
49*bbb1b6f9SApple OSS Distributions	vm_purgeable_xnu.h \
50*bbb1b6f9SApple OSS Distributions	vm_reclaim_xnu.h \
51*bbb1b6f9SApple OSS Distributions	vm_shared_region_xnu.h \
52*bbb1b6f9SApple OSS Distributions	vm_mteinfo_internal.h
53*bbb1b6f9SApple OSS Distributions
54*bbb1b6f9SApple OSS Distributions# Internal headers for the sake of bsd/vm/* and bsd/kern/kern_mman.c files only
55*bbb1b6f9SApple OSS DistributionsXNU_ONLY_EXPORTS += \
56*bbb1b6f9SApple OSS Distributions	vm_compressor_backing_store_internal.h \
57*bbb1b6f9SApple OSS Distributions	vm_compressor_internal.h \
58*bbb1b6f9SApple OSS Distributions	vm_dyld_pager_internal.h \
59*bbb1b6f9SApple OSS Distributions	vm_log.h \
60*bbb1b6f9SApple OSS Distributions	vm_map_internal.h \
61*bbb1b6f9SApple OSS Distributions	vm_protos_internal.h \
62*bbb1b6f9SApple OSS Distributions	vm_sanitize_internal.h \
63*bbb1b6f9SApple OSS Distributions	vm_sanitize_telemetry.h \
64*bbb1b6f9SApple OSS Distributions	vm_shared_region_internal.h \
65*bbb1b6f9SApple OSS Distributions	vm_lock_perf.h
66*bbb1b6f9SApple OSS Distributions
67*bbb1b6f9SApple OSS Distributions# Internal files exported with specific subsystems
68*bbb1b6f9SApple OSS Distributions# who needs access to some VM internals.
69*bbb1b6f9SApple OSS Distributions#
70*bbb1b6f9SApple OSS Distributions# These headers must be included from C/C++ translation units,
71*bbb1b6f9SApple OSS Distributions# never from other headers, and only by the named subsystems.
72*bbb1b6f9SApple OSS DistributionsXNU_ONLY_EXPORTS += \
73*bbb1b6f9SApple OSS Distributions	vm_iokit.h \
74*bbb1b6f9SApple OSS Distributions	vm_ubc.h \
75*bbb1b6f9SApple OSS Distributions	vm_upl.h
76*bbb1b6f9SApple OSS Distributions
77*bbb1b6f9SApple OSS Distributions# /usr/include
78*bbb1b6f9SApple OSS DistributionsINSTALL_MI_LIST = ${DATAFILES}
79*bbb1b6f9SApple OSS Distributions
80*bbb1b6f9SApple OSS Distributions# /System/Library/Frameworks/System.framework/PrivateHeaders
81*bbb1b6f9SApple OSS DistributionsINSTALL_SF_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES}
82*bbb1b6f9SApple OSS Distributions
83*bbb1b6f9SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/Headers
84*bbb1b6f9SApple OSS DistributionsINSTALL_KF_MI_LIST = ${KERNELFILES}
85*bbb1b6f9SApple OSS Distributions
86*bbb1b6f9SApple OSS Distributions# /System/Library/Frameworks/Kernel.framework/PrivateHeaders
87*bbb1b6f9SApple OSS DistributionsINSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
88*bbb1b6f9SApple OSS Distributions
89*bbb1b6f9SApple OSS DistributionsINSTALL_MI_DIR = vm
90*bbb1b6f9SApple OSS Distributions
91*bbb1b6f9SApple OSS Distributions# Exported to rest of XNU for compilation
92*bbb1b6f9SApple OSS DistributionsEXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} ${XNU_ONLY_EXPORTS} ${PRIVATE_DATAFILES}
93*bbb1b6f9SApple OSS Distributions
94*bbb1b6f9SApple OSS DistributionsEXPORT_MI_DIR = vm
95*bbb1b6f9SApple OSS Distributions
96*bbb1b6f9SApple OSS Distributionsinclude $(MakeInc_rule)
97*bbb1b6f9SApple OSS Distributionsinclude $(MakeInc_dir)
98