]> git.saurik.com Git - apple/xnu.git/blob - osfmk/voucher/Makefile
534b780efc4b487d8cc16499f2f9d2730fef8f07
[apple/xnu.git] / osfmk / voucher / 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 MIG_TYPES =
10
11 MIG_DEFS =
12
13 MACH_PRIVATE_DEFS =
14
15 #
16 # MIG-generated headers that are traditionally used by user
17 # level code.
18 #
19 MIG_USHDRS =
20
21 MIG_UUHDRS =
22
23 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
24
25 DATAFILES = \
26 ipc_pthread_priority_types.h \
27 ${MIG_TYPES} \
28 ${MIG_DEFS}
29
30 INSTALL_MI_LIST = \
31 ${DATAFILES}
32
33 INSTALL_KF_MI_LIST = \
34 ${DATAFILES}
35
36 INSTALL_KF_MI_LCL_LIST = \
37 ${DATAFILES}
38
39 INSTALL_MI_GEN_LIST =
40
41 INSTALL_MI_DIR = voucher
42
43 EXPORT_MI_LIST = \
44 ${DATAFILES}
45
46 EXPORT_MI_GEN_LIST = \
47 ${MIGINCLUDES}
48
49 EXPORT_MI_DIR = voucher
50
51 ${MIGINCLUDES} : ${MIG_TYPES}
52
53 ${MIG_UUHDRS} : \
54 %.h : %.defs
55 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
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 "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
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
76 INCFLAGS_MAKEFILE= -I..
77
78 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
79 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
80 #
81 # MIG-generated headers that are traditionally used by kernel
82 # level code.
83 #
84 MIG_KUHDRS =
85
86 MIG_KUSRC =
87
88 MIG_KSHDRS =
89
90 MIG_KSSRC =
91
92 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
93
94 do_build_all:: $(COMP_FILES)
95
96 ${COMP_FILES} : ${MIG_TYPES}
97
98 ${MIG_KUSRC} : \
99 %_user.c : %.defs
100 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
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 "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
111 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
112 -user /dev/null \
113 -header /dev/null \
114 -server $*_server.c \
115 -sheader $*_server.h \
116 $<
117
118 include $(MakeInc_rule)
119 include $(MakeInc_dir)