]> git.saurik.com Git - apple/xnu.git/blob - libkern/libkern/Makefile
fb623933c21675e9ef1af2f7b6b28c7b02812f55
[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 INSTINC_SUBDIRS_X86_64 = \
14 i386
15 INSTINC_SUBDIRS_X86_64H = \
16 i386
17 INSTINC_SUBDIRS_ARM = \
18 arm
19 INSTINC_SUBDIRS_ARM64 = \
20 arm
21
22 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
23 EXPINC_SUBDIRS_X86_64 = ${INSTINC_SUBDIRS_X86_64}
24 EXPINC_SUBDIRS_X86_64H = ${INSTINC_SUBDIRS_X86_64H}
25 EXPINC_SUBDIRS_ARM = ${INSTINC_SUBDIRS_ARM}
26 EXPINC_SUBDIRS_ARM64 = ${INSTINC_SUBDIRS_ARM64}
27
28 DATAFILES = \
29 OSByteOrder.h \
30 _OSByteOrder.h \
31 OSDebug.h \
32 OSKextLib.h \
33 OSReturn.h \
34 OSTypes.h
35
36 KERNELFILES = \
37 ${DATAFILES} \
38 OSAtomic.h \
39 OSBase.h \
40 OSMalloc.h \
41 locks.h \
42 sysctl.h \
43 tree.h \
44 zconf.h \
45 zlib.h
46
47 PRIVATE_KERNELFILES = \
48 OSKextLibPrivate.h \
49 OSSerializeBinary.h \
50 kext_request_keys.h \
51 mkext.h \
52 prelink.h
53
54 PRIVATE_DATAFILES = \
55 ${PRIVATE_KERNELFILES} \
56 tree.h
57
58 INSTALL_MI_LIST = ${DATAFILES}
59
60 INSTALL_MI_DIR = libkern
61
62 INSTALL_MI_LCL_LIST = \
63 ${PRIVATE_DATAFILES} \
64 kext_panic_report.h \
65 OSCrossEndian.h
66
67 INSTALL_KF_MI_LIST = ${KERNELFILES}
68
69 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
70
71 EXPORT_MI_LIST = \
72 $(sort ${KERNELFILES} ${PRIVATE_DATAFILES}) \
73 kernel_mach_header.h \
74 kxld.h \
75 kxld_types.h \
76 stack_protector.h
77
78 INSTALL_KF_MI_LCL_LIST += \
79 section_keywords.h
80
81 EXPORT_MI_LIST += \
82 section_keywords.h
83
84 EXPORT_MI_GEN_LIST = version.h
85
86 EXPORT_MI_DIR = libkern
87
88 version.h: version.h.template $(SRCROOT)/config/MasterVersion
89 @echo "Generating libkern/$@ from $<";
90 $(_v)install $(DATA_INSTALL_FLAGS) $< $@
91 $(_v)$(NEWVERS) $@ > /dev/null;
92
93 include $(MakeInc_rule)
94 include $(MakeInc_dir)