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