]> git.saurik.com Git - apple/xnu.git/blame - osfmk/bank/Makefile
xnu-2782.1.97.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
9MIG_TYPES =
10
11MIG_DEFS =
12
13MACH_PRIVATE_DEFS =
14
15#
16# MIG-generated headers that are traditionally used by user
17# level code.
18#
19MIG_USHDRS =
20
21MIG_UUHDRS =
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
55 @echo MIG $@
56 $(_v)$(MIG) $(MIGFLAGS) \
57 -server /dev/null \
58 -user /dev/null \
59 -header $@ \
60 $<
61
62${MIG_USHDRS} : \
63 %_server.h : %.defs
64 @echo MIG $@
65 $(_v)$(MIG) $(MIGFLAGS) \
66 -server /dev/null \
67 -user /dev/null \
68 -header /dev/null \
69 -sheader $@ \
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#
84MIG_KUHDRS =
85
86MIG_KUSRC =
87
88MIG_KSHDRS =
89
90MIG_KSSRC =
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
100 @echo MIG $@
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}: \
109 %_server.c : %.defs
110 @echo MIG $@
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)