]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/mach/Makefile
xnu-1228.tar.gz
[apple/xnu.git] / osfmk / mach / Makefile
... / ...
CommitLineData
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
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10INSTINC_SUBDIRS = \
11 machine
12
13INSTINC_SUBDIRS_PPC = \
14 ppc
15
16INSTINC_SUBDIRS_ARM = \
17 arm
18
19INSTINC_SUBDIRS_I386 = \
20 i386
21
22EXPINC_SUBDIRS = \
23 machine
24
25EXPINC_SUBDIRS_PPC = \
26 ppc
27
28EXPINC_SUBDIRS_I386 = \
29 i386
30
31EXPINC_SUBDIRS_ARM = \
32 arm
33
34MIG_TYPES = \
35 clock_types.defs \
36 mach_types.defs \
37 std_types.defs
38
39MIG_DEFS = \
40 audit_triggers.defs \
41 clock.defs \
42 clock_priv.defs \
43 clock_reply.defs \
44 exc.defs \
45 host_notify_reply.defs \
46 host_priv.defs \
47 host_security.defs \
48 ledger.defs \
49 lock_set.defs \
50 mach_exc.defs \
51 mach_host.defs \
52 mach_port.defs \
53 mach_vm.defs \
54 notify.defs \
55 processor.defs \
56 processor_set.defs \
57 security.defs \
58 task.defs \
59 task_access.defs \
60 thread_act.defs \
61 vm_map.defs
62
63
64MACH_PRIVATE_DEFS = \
65 mach_notify.defs \
66 memory_object.defs \
67 memory_object_control.defs \
68 memory_object_default.defs \
69 memory_object_name.defs \
70 upl.defs
71
72#
73# MIG-generated headers that are traditionally used by user
74# level code.
75#
76MIG_USHDRS = \
77 audit_triggers_server.h \
78 clock_reply_server.h \
79 exc_server.h \
80 mach_exc_server.h \
81 memory_object_server.h \
82 memory_object_default_server.h \
83 notify_server.h \
84 task_access_server.h
85
86MIG_UUHDRS = \
87 clock.h \
88 clock_priv.h \
89 host_priv.h \
90 host_security.h \
91 ledger.h \
92 lock_set.h \
93 mach_host.h \
94 mach_port.h \
95 mach_vm.h \
96 memory_object_control.h \
97 memory_object_name.h \
98 processor.h \
99 processor_set.h \
100 security.h \
101 task.h \
102 task_access.h \
103 thread_act.h \
104 upl.h \
105 vm_map.h
106
107MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
108
109DATAFILES = \
110 boolean.h \
111 clock_types.h \
112 error.h \
113 exception.h \
114 exception_types.h \
115 host_notify.h \
116 host_info.h \
117 host_reboot.h \
118 host_special_ports.h \
119 kern_return.h \
120 kmod.h \
121 mach_param.h \
122 mach_time.h \
123 mach_traps.h \
124 mach_types.h \
125 machine.h \
126 mach_syscalls.h \
127 memory_object_types.h \
128 message.h \
129 mig.h \
130 mig_errors.h \
131 ndr.h \
132 notify.h \
133 policy.h \
134 port.h \
135 processor_info.h \
136 rpc.h \
137 sdt.h \
138 semaphore.h \
139 shared_memory_server.h \
140 shared_region.h \
141 std_types.h \
142 sync_policy.h \
143 syscall_sw.h \
144 task_info.h \
145 task_ledger.h \
146 task_policy.h \
147 task_special_ports.h \
148 thread_info.h \
149 thread_policy.h \
150 thread_special_ports.h \
151 thread_status.h \
152 thread_switch.h \
153 time_value.h \
154 vm_attributes.h \
155 vm_behavior.h \
156 vm_inherit.h \
157 vm_param.h \
158 vm_prot.h \
159 vm_purgable.h \
160 vm_region.h \
161 vm_statistics.h \
162 vm_sync.h \
163 vm_types.h \
164 ${MIG_TYPES} \
165 ${MIG_DEFS}
166
167INSTALL_MI_LIST = \
168 bootstrap.h \
169 ${DATAFILES}
170
171INSTALL_KF_MI_LIST = \
172 mach_interface.h \
173 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
174
175INSTALL_KF_MI_LCL_LIST = \
176 mach_interface.h \
177 $(filter-out mach_traps.h mach_syscalls.h thread_switch.h, ${DATAFILES})
178
179INSTALL_MI_GEN_LIST =
180
181INSTALL_MI_DIR = mach
182
183EXPORT_MI_LIST = \
184 mach_interface.h \
185 ${DATAFILES}
186
187EXPORT_MI_GEN_LIST = \
188 ${MIGINCLUDES}
189
190EXPORT_MI_DIR = mach
191
192.ORDER: ${MIGINCLUDES}
193
194${MIGINCLUDES} : ${MIG_TYPES}
195
196.ORDER: ${MIG_UUHDRS}
197
198${MIG_UUHDRS} : \
199 %.h : %.defs
200 @echo MIG $@
201 $(_v)$(MIG) $(MIGFLAGS) \
202 -server /dev/null \
203 -user /dev/null \
204 -header $@ \
205 $<
206
207.ORDER: ${MIG_USHDRS}
208
209${MIG_USHDRS} : \
210 %_server.h : %.defs
211 @echo MIG $@
212 $(_v)$(MIG) $(MIGFLAGS) \
213 -server /dev/null \
214 -user /dev/null \
215 -header /dev/null \
216 -sheader $@ \
217 $<
218
219#
220# Build path
221#
222COMP_SUBDIRS_I386 = \
223 i386
224
225INCFLAGS_MAKEFILE= -I..
226
227MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
228MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
229#
230# MIG-generated headers that are traditionally used by kernel
231# level code.
232#
233MIG_KUHDRS = \
234 audit_triggers.h \
235 clock_reply.h \
236 exc.h \
237 host_notify_reply.h \
238 mach_exc.h \
239 mach_notify.h \
240 memory_object.h \
241 memory_object_control.h \
242 memory_object_default.h \
243 task_access.h \
244 upl.h \
245 vm_map.h
246
247MIG_KUSRC = \
248 audit_triggers_user.c \
249 clock_reply_user.c \
250 exc_user.c \
251 host_notify_reply_user.c \
252 mach_exc_user.c \
253 mach_notify_user.c \
254 memory_object_user.c \
255 memory_object_control_user.c \
256 memory_object_default_user.c \
257 task_access_user.c \
258 upl_user.c \
259 vm_map_user.c
260
261MIG_KSHDRS = \
262 clock_server.h \
263 clock_priv_server.h \
264 exc_server.h \
265 host_priv_server.h \
266 host_security_server.h \
267 ledger_server.h \
268 lock_set_server.h \
269 mach_exc_server.h \
270 mach_host_server.h \
271 mach_notify_server.h \
272 mach_port_server.h \
273 mach_vm_server.h \
274 memory_object_server.h \
275 memory_object_control_server.h \
276 memory_object_default_server.h \
277 memory_object_name_server.h \
278 processor_server.h \
279 processor_set_server.h \
280 security_server.h \
281 semaphore_server.h \
282 task_server.h \
283 thread_act_server.h \
284 upl_server.h \
285 vm_map_server.h
286
287MIG_KSSRC = \
288 clock_server.c \
289 clock_priv_server.c \
290 exc_server.c \
291 host_priv_server.c \
292 host_security_server.c \
293 ledger_server.c \
294 lock_set_server.c \
295 mach_exc_server.c \
296 mach_host_server.c \
297 mach_notify_server.c \
298 mach_port_server.c \
299 mach_vm_server.c \
300 memory_object_server.c \
301 memory_object_control_server.c \
302 memory_object_default_server.c \
303 memory_object_name_server.c \
304 processor_server.c \
305 processor_set_server.c \
306 security_server.c \
307 semaphore_server.c \
308 task_server.c \
309 thread_act_server.c \
310 upl_server.c \
311 vm_map_server.c
312
313#
314# JMM -
315# Since there are two generated header files with the same name, one for
316# install and export, the other for internal use (and they are different)
317# we can't explicitly list two rules for the same target. So rules for
318# generating internal headers will be handled implicitly by creating rules
319# to generate the internal C sources, and the headers get created as a
320# side-effect.
321#
322#
323# This is all temporary scaffolding, as we are moving to a model where
324# the MIG-generated code is identical in all environments. At first, it
325# will contain some environment-specific ifdefs, but over time should not
326# even require that as we move towards making all the environments look
327# the same.
328#
329COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
330
331${COMP_FILES} : ${MIG_TYPES}
332
333.ORDER: ${MIG_KUSRC}
334
335${MIG_KUSRC} : \
336 %_user.c : %.defs
337 @echo MIG $@
338 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
339 -user $*_user.c \
340 -header $*.h \
341 -server /dev/null \
342 -sheader /dev/null \
343 $<
344
345.ORDER: ${MIG_KSSRC}
346
347${MIG_KSSRC}: \
348 %_server.c : %.defs
349 @echo MIG $@
350 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
351 -user /dev/null \
352 -header /dev/null \
353 -server $*_server.c \
354 -sheader $*_server.h \
355 $<
356
357include $(MakeInc_rule)
358include $(MakeInc_dir)