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