]> git.saurik.com Git - apple/xnu.git/blame - osfmk/bank/Makefile
xnu-3789.1.32.tar.gz
[apple/xnu.git] / osfmk / bank / Makefile
CommitLineData
fe8ab488
A
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
39037602 9MIG_TYPES =
fe8ab488 10
39037602 11MIG_DEFS =
fe8ab488 12
39037602 13MACH_PRIVATE_DEFS =
fe8ab488
A
14
15#
16# MIG-generated headers that are traditionally used by user
17# level code.
18#
39037602 19MIG_USHDRS =
fe8ab488 20
39037602 21MIG_UUHDRS =
fe8ab488
A
22
23MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
24
25DATAFILES = \
26 bank_types.h \
27 ${MIG_TYPES} \
28 ${MIG_DEFS}
29
30INSTALL_MI_LIST = \
31 ${DATAFILES}
32
33INSTALL_KF_MI_LIST = \
34 ${DATAFILES}
35
36INSTALL_KF_MI_LCL_LIST = \
37 ${DATAFILES}
38
39INSTALL_MI_GEN_LIST =
40
41INSTALL_MI_DIR = bank
42
43EXPORT_MI_LIST = \
44 ${DATAFILES}
45
46EXPORT_MI_GEN_LIST = \
47 ${MIGINCLUDES}
48
49EXPORT_MI_DIR = bank
50
51${MIGINCLUDES} : ${MIG_TYPES}
52
53${MIG_UUHDRS} : \
54 %.h : %.defs
39037602 55 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
fe8ab488
A
56 $(_v)$(MIG) $(MIGFLAGS) \
57 -server /dev/null \
58 -user /dev/null \
39037602 59 -header $@ \
fe8ab488
A
60 $<
61
62${MIG_USHDRS} : \
63 %_server.h : %.defs
39037602 64 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
fe8ab488
A
65 $(_v)$(MIG) $(MIGFLAGS) \
66 -server /dev/null \
67 -user /dev/null \
68 -header /dev/null \
39037602 69 -sheader $@ \
fe8ab488
A
70 $<
71
72#
73# Build path
74#
75
76INCFLAGS_MAKEFILE= -I..
77
78MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
79MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
80#
81# MIG-generated headers that are traditionally used by kernel
82# level code.
83#
39037602 84MIG_KUHDRS =
fe8ab488 85
39037602 86MIG_KUSRC =
fe8ab488 87
39037602 88MIG_KSHDRS =
fe8ab488 89
39037602 90MIG_KSSRC =
fe8ab488
A
91
92COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
93
94do_build_all:: $(COMP_FILES)
95
96${COMP_FILES} : ${MIG_TYPES}
97
98${MIG_KUSRC} : \
99 %_user.c : %.defs
39037602 100 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
fe8ab488
A
101 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
102 -user $*_user.c \
103 -header $*.h \
104 -server /dev/null \
105 -sheader /dev/null \
106 $<
107
108${MIG_KSSRC}: \
39037602
A
109 %_server.c : %.defs
110 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
fe8ab488
A
111 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
112 -user /dev/null \
113 -header /dev/null \
114 -server $*_server.c \
115 -sheader $*_server.h \
116 $<
117
118include $(MakeInc_rule)
119include $(MakeInc_dir)