]> git.saurik.com Git - apple/xnu.git/blob - libkern/libkern/Makefile
e1c7b3a4ab16ba071a417c90423bf1a5b23491f9
[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 section_keywords.h
54
55 PRIVATE_DATAFILES = \
56 ${PRIVATE_KERNELFILES} \
57 tree.h
58
59 INSTALL_MI_LIST = ${DATAFILES}
60
61 INSTALL_MI_DIR = libkern
62
63 INSTALL_MI_LCL_LIST = \
64 ${PRIVATE_DATAFILES} \
65 kext_panic_report.h \
66 OSCrossEndian.h
67
68 INSTALL_KF_MI_LIST = ${KERNELFILES}
69
70 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
71
72 EXPORT_MI_LIST = \
73 $(sort ${KERNELFILES} ${PRIVATE_DATAFILES}) \
74 kernel_mach_header.h \
75 kxld.h \
76 kxld_types.h \
77 stack_protector.h
78
79 EXPORT_MI_GEN_LIST = version.h
80
81 EXPORT_MI_DIR = libkern
82
83 version.h: version.h.template $(SRCROOT)/config/MasterVersion
84 @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)libkern/$@$(Color0) from $(ColorF)$<$(Color0)";
85 $(_v)install $(DATA_INSTALL_FLAGS) $< $@
86 $(_v)$(NEWVERS) $@ > /dev/null;
87
88 include $(MakeInc_rule)
89 include $(MakeInc_dir)