]> git.saurik.com Git - apple/xnu.git/blob - libkern/libkern/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / libkern / Makefile
1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6 include $(MakeInc_cmd)
7 include $(MakeInc_def)
8
9 INSTINC_SUBDIRS = \
10 machine \
11 c++ \
12 crypto \
13 img4 \
14 coretrust
15 INSTINC_SUBDIRS_X86_64 = \
16 i386
17 INSTINC_SUBDIRS_X86_64H = \
18 i386
19 INSTINC_SUBDIRS_ARM = \
20 arm
21 INSTINC_SUBDIRS_ARM64 = \
22 arm
23
24 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
25 EXPINC_SUBDIRS_X86_64 = ${INSTINC_SUBDIRS_X86_64}
26 EXPINC_SUBDIRS_X86_64H = ${INSTINC_SUBDIRS_X86_64H}
27 EXPINC_SUBDIRS_ARM = ${INSTINC_SUBDIRS_ARM}
28 EXPINC_SUBDIRS_ARM64 = ${INSTINC_SUBDIRS_ARM64}
29
30 DATAFILES = \
31 OSByteOrder.h \
32 _OSByteOrder.h \
33 OSDebug.h \
34 OSKextLib.h \
35 OSReturn.h \
36 OSTypes.h
37
38 DRIVERKIT_DATAFILES = \
39 OSByteOrder.h \
40 _OSByteOrder.h
41
42 KERNELFILES = \
43 ${DATAFILES} \
44 OSAtomic.h \
45 OSBase.h \
46 OSMalloc.h \
47 locks.h \
48 sysctl.h \
49 tree.h \
50 zconf.h \
51 zlib.h \
52 crc.h \
53 Block.h
54
55 PRIVATE_KERNELFILES = \
56 OSKextLibPrivate.h \
57 OSSerializeBinary.h \
58 kernel_mach_header.h \
59 kext_request_keys.h \
60 mkext.h \
61 prelink.h \
62 section_keywords.h \
63 Block_private.h \
64 ptrauth_utils.h
65
66 PRIVATE_DATAFILES = \
67 ${PRIVATE_KERNELFILES} \
68 tree.h
69
70 INSTALL_MI_LIST = ${DATAFILES}
71
72 INSTALL_DRIVERKIT_MI_LIST = ${DRIVERKIT_DATAFILES}
73
74 DRIVERKITINCDIR = $(DRIVERKITSDKHEADERSROOT)/usr/local/include
75
76 INSTALL_MI_DIR = libkern
77
78 INSTALL_MI_LCL_LIST = \
79 ${PRIVATE_DATAFILES} \
80 kext_panic_report.h \
81 OSCrossEndian.h
82
83 INSTALL_KF_MI_LIST = ${KERNELFILES}
84
85 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
86
87 EXPORT_MI_LIST = \
88 $(sort ${KERNELFILES} ${PRIVATE_DATAFILES}) \
89 kxld.h \
90 kxld_types.h \
91 stack_protector.h
92
93 EXPORT_MI_GEN_LIST = version.h
94
95 EXPORT_MI_DIR = libkern
96
97 version.h: version.h.template $(SRCROOT)/config/MasterVersion
98 @$(LOG_GENERATE) "libkern/$@$(Color0) from $(ColorF)$<"
99 $(_v)install $(DATA_INSTALL_FLAGS) $< $@
100 $(_v)$(NEWVERS) $@ > /dev/null
101
102 include $(MakeInc_rule)
103 include $(MakeInc_dir)