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