]> git.saurik.com Git - apple/xnu.git/blob - libkern/libkern/Makefile
xnu-792.6.22.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
14 INSTINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS} \
15 ppc
16
17 INSTINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS} \
18 i386
19
20 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
21 EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC}
22 EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386}
23
24 DATAFILES = \
25 OSAtomic.h \
26 OSBase.h \
27 OSByteOrder.h \
28 OSDebug.h \
29 OSMalloc.h \
30 OSReturn.h \
31 OSTypes.h \
32 locks.h \
33 sysctl.h
34
35 INSTALL_MI_LIST = OSByteOrder.h OSDebug.h OSReturn.h OSTypes.h
36
37 INSTALL_MI_DIR = libkern
38
39 INSTALL_MI_LCL_GEN_LIST = OSCrossEndian.h
40
41 EXPORT_MI_LIST = ${DATAFILES}
42
43 EXPORT_MI_GEN_LIST = version.h
44
45 EXPORT_MI_DIR = libkern
46
47 NEWVERS = $(SRCROOT)/config/newvers.pl
48
49 version.h: version.h.template $(SRCROOT)/config/MasterVersion
50 @echo "Generating libkern/$@ from $<";
51 install $(DATA_INSTALL_FLAGS) $< $@
52 $(NEWVERS) $@;
53
54 include $(MakeInc_rule)
55 include $(MakeInc_dir)
56
57