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