2 # Mach Operating System
3 # Copyright (c) 1986 Carnegie-Mellon University
4 # All rights reserved. The CMU software License Agreement specifies
5 # the terms and conditions for use and redistribution.
8 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
13 include $(MakeInc_cmd)
14 include $(MakeInc_def)
19 CFLAGS+= -include meta_features.h -DMACH_KERNEL_PRIVATE -DMACH_KERNEL
20 SFLAGS+= -include meta_features.h
23 # Don't instrument functions called by the ksancov runtime. SanitizeCoverage does
24 # not support blacklists, so exclude the whole file.
25 machine_routines.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
26 machine_routines_common.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
27 pcb_native.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
31 # XXX: INCFLAGS to include libsa prototypes
33 INCFLAGS_MAKEFILE= -I$(SOURCE)libsa
36 # Directories for mig generated files
49 # Make sure we don't remove this by accident if interrupted at the wrong
55 # Theses macros are filled in by the config program depending on the
56 # current configuration. The MACHDEP macro is replaced by the
57 # contents of the machine dependent makefile template and the others
58 # are replaced by the corresponding symbol definitions for the
75 # Diagnostic opt-outs. We need to make this list empty.
77 # DO NOT ADD MORE HERE.
79 vm_tests.o_CFLAGS_ADD += -O0 -g
80 # -Wno-atomic-implicit-seq-cst
81 mp.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
82 pmCPU.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
83 pmap_pcid.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
84 xcpm_dvfs.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
85 xcpm_fi.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
86 xcpm_idle.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
88 bsd_i386.o_CFLAGS_ADD += -Wno-cast-align
89 ccdigest_final_64be.o_CFLAGS_ADD += -Wno-cast-align
90 ccdigest_init.o_CFLAGS_ADD += -Wno-cast-align
91 ccdigest_update.o_CFLAGS_ADD += -Wno-cast-align
92 cchmac_final.o_CFLAGS_ADD += -Wno-cast-align
93 cchmac_init.o_CFLAGS_ADD += -Wno-cast-align
94 commpage.o_CFLAGS_ADD += -Wno-cast-align
95 cpu_threads.o_CFLAGS_ADD += -Wno-cast-align
96 host.o_CFLAGS_ADD += -Wno-cast-align
97 kdp_machdep.o_CFLAGS_ADD += -Wno-cast-align
98 kdp_udp.o_CFLAGS_ADD += -Wno-cast-align
99 kdp_x86_common.o_CFLAGS_ADD += -Wno-cast-align
100 locks_i386.o_CFLAGS_ADD += -Wno-cast-align
101 machine_task.o_CFLAGS_ADD += -Wno-cast-align
102 model_dep.o_CFLAGS_ADD += -Wno-cast-align
103 mp_desc.o_CFLAGS_ADD += -Wno-cast-align
104 pcb.o_CFLAGS_ADD += -Wno-cast-align
105 pcb_native.o_CFLAGS_ADD += -Wno-cast-align
106 processor.o_CFLAGS_ADD += -Wno-cast-align
107 status.o_CFLAGS_ADD += -Wno-cast-align
108 task.o_CFLAGS_ADD += -Wno-cast-align
109 task_policy.o_CFLAGS_ADD += -Wno-cast-align
110 video_console.o_CFLAGS_ADD += -Wno-cast-align
111 # -Wno-implicit-int-conversion
112 acpi.o_CFLAGS_ADD += -Wno-implicit-int-conversion
113 commpage.o_CFLAGS_ADD += -Wno-implicit-int-conversion
114 cpu.o_CFLAGS_ADD += -Wno-implicit-int-conversion
115 cpu_threads.o_CFLAGS_ADD += -Wno-implicit-int-conversion
116 kdebug_trigger.o_CFLAGS_ADD += -Wno-implicit-int-conversion
117 kern_stackshot.o_CFLAGS_ADD += -Wno-implicit-int-conversion
118 lapic_native.o_CFLAGS_ADD += -Wno-implicit-int-conversion
119 loose_ends.o_CFLAGS_ADD += -Wno-implicit-int-conversion
120 lz4.o_CFLAGS_ADD += -Wno-implicit-int-conversion
121 model_dep.o_CFLAGS_ADD += -Wno-implicit-int-conversion
122 mp.o_CFLAGS_ADD += -Wno-implicit-int-conversion
123 mp_desc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
124 pcb.o_CFLAGS_ADD += -Wno-implicit-int-conversion
125 pcb_native.o_CFLAGS_ADD += -Wno-implicit-int-conversion
126 pmap_pcid.o_CFLAGS_ADD += -Wno-implicit-int-conversion
127 pmap_x86_common.o_CFLAGS_ADD += -Wno-implicit-int-conversion
128 sched_clutch.o_CFLAGS_ADD += -Wno-implicit-int-conversion
129 thread_group.o_CFLAGS_ADD += -Wno-implicit-int-conversion
130 trap.o_CFLAGS_ADD += -Wno-implicit-int-conversion
131 uat.o_CFLAGS_ADD += -Wno-implicit-int-conversion
132 video_console.o_CFLAGS_ADD += -Wno-implicit-int-conversion
133 xcpm_dvfs.o_CFLAGS_ADD += -Wno-implicit-int-conversion
134 xcpm_ioctl.o_CFLAGS_ADD += -Wno-implicit-int-conversion
135 zalloc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
136 # -Wno-shorten-64-to-32
137 arm_vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
138 backtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
139 btlog.o_CFLAGS_ADD += -Wno-shorten-64-to-32
140 caches.o_CFLAGS_ADD += -Wno-shorten-64-to-32
141 callstack.o_CFLAGS_ADD += -Wno-shorten-64-to-32
142 clock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
143 clock_oldops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
144 iokit_rpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
145 ipc_kmsg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
146 ipc_pset.o_CFLAGS_ADD += -Wno-shorten-64-to-32
147 ipc_right.o_CFLAGS_ADD += -Wno-shorten-64-to-32
148 kdp_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
149 kdp_vm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
150 kern_cdata.o_CFLAGS_ADD += -Wno-shorten-64-to-32
151 kern_stackshot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
152 loose_ends.o_CFLAGS_ADD += -Wno-shorten-64-to-32
153 mach_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
154 machine_routines.o_CFLAGS_ADD += -Wno-shorten-64-to-32
155 mk_timer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
156 model_dep.o_CFLAGS_ADD += -Wno-shorten-64-to-32
157 pcb.o_CFLAGS_ADD += -Wno-shorten-64-to-32
158 pmap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
159 processor_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
160 rtclock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
161 status.o_CFLAGS_ADD += -Wno-shorten-64-to-32
162 telemetry.o_CFLAGS_ADD += -Wno-shorten-64-to-32
163 vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
164 vm_kern.o_CFLAGS_ADD += -Wno-shorten-64-to-32
165 vm_object.o_CFLAGS_ADD += -Wno-shorten-64-to-32
166 vm_shared_region_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
167 vm_swapfile_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
168 vm_user.o_CFLAGS_ADD += -Wno-shorten-64-to-32
169 zalloc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
170 # -Wno-sign-conversion
171 Diagnostics.o_CFLAGS_ADD += -Wno-sign-conversion
172 acpi.o_CFLAGS_ADD += -Wno-sign-conversion
173 action.o_CFLAGS_ADD += -Wno-sign-conversion
174 affinity.o_CFLAGS_ADD += -Wno-sign-conversion
175 alternate_debugger.o_CFLAGS_ADD += -Wno-sign-conversion
176 arcade.o_CFLAGS_ADD += -Wno-sign-conversion
177 arm_init.o_CFLAGS_ADD += -Wno-sign-conversion
178 arm_timer.o_CFLAGS_ADD += -Wno-sign-conversion
179 arm_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
180 ast.o_CFLAGS_ADD += -Wno-sign-conversion
181 backtrace.o_CFLAGS_ADD += -Wno-sign-conversion
182 bank.o_CFLAGS_ADD += -Wno-sign-conversion
183 bitmap_test.o_CFLAGS_ADD += -Wno-sign-conversion
184 bsd_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
185 bsd_i386.o_CFLAGS_ADD += -Wno-sign-conversion
186 bsd_i386_native.o_CFLAGS_ADD += -Wno-sign-conversion
187 bsd_kern.o_CFLAGS_ADD += -Wno-sign-conversion
188 bsd_vm.o_CFLAGS_ADD += -Wno-sign-conversion
189 btlog.o_CFLAGS_ADD += -Wno-sign-conversion
190 caches.o_CFLAGS_ADD += -Wno-sign-conversion
191 callstack.o_CFLAGS_ADD += -Wno-sign-conversion
192 ccdrbg_nisthmac.o_CFLAGS_ADD += -Wno-sign-conversion
193 cchmac.o_CFLAGS_ADD += -Wno-sign-conversion
194 cchmac_final.o_CFLAGS_ADD += -Wno-sign-conversion
195 cchmac_init.o_CFLAGS_ADD += -Wno-sign-conversion
196 clock.o_CFLAGS_ADD += -Wno-sign-conversion
197 clock_oldops.o_CFLAGS_ADD += -Wno-sign-conversion
198 coalition.o_CFLAGS_ADD += -Wno-sign-conversion
199 commpage.o_CFLAGS_ADD += -Wno-sign-conversion
200 copyio.o_CFLAGS_ADD += -Wno-sign-conversion
201 corpse.o_CFLAGS_ADD += -Wno-sign-conversion
202 cpu.o_CFLAGS_ADD += -Wno-sign-conversion
203 cpu_common.o_CFLAGS_ADD += -Wno-sign-conversion
204 cpu_quiesce.o_CFLAGS_ADD += -Wno-sign-conversion
205 cpu_threads.o_CFLAGS_ADD += -Wno-sign-conversion
206 cpu_topology.o_CFLAGS_ADD += -Wno-sign-conversion
207 cpuid.o_CFLAGS_ADD += -Wno-sign-conversion
208 dbgwrap.o_CFLAGS_ADD += -Wno-sign-conversion
209 debug.o_CFLAGS_ADD += -Wno-sign-conversion
210 ecc_logging.o_CFLAGS_ADD += -Wno-sign-conversion
211 entropy.o_CFLAGS_ADD += -Wno-sign-conversion
212 exception.o_CFLAGS_ADD += -Wno-sign-conversion
213 fpu.o_CFLAGS_ADD += -Wno-sign-conversion
214 gzalloc.o_CFLAGS_ADD += -Wno-sign-conversion
215 host.o_CFLAGS_ADD += -Wno-sign-conversion
216 host_notify.o_CFLAGS_ADD += -Wno-sign-conversion
217 hv.o_CFLAGS_ADD += -Wno-sign-conversion
218 i386_init.o_CFLAGS_ADD += -Wno-sign-conversion
219 i386_timer.o_CFLAGS_ADD += -Wno-sign-conversion
220 i386_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
221 iokit_rpc.o_CFLAGS_ADD += -Wno-sign-conversion
222 ipc_eventlink.o_CFLAGS_ADD += -Wno-sign-conversion
223 ipc_host.o_CFLAGS_ADD += -Wno-sign-conversion
224 ipc_importance.o_CFLAGS_ADD += -Wno-sign-conversion
225 ipc_init.o_CFLAGS_ADD += -Wno-sign-conversion
226 ipc_kmsg.o_CFLAGS_ADD += -Wno-sign-conversion
227 ipc_kobject.o_CFLAGS_ADD += -Wno-sign-conversion
228 ipc_mqueue.o_CFLAGS_ADD += -Wno-sign-conversion
229 ipc_object.o_CFLAGS_ADD += -Wno-sign-conversion
230 ipc_port.o_CFLAGS_ADD += -Wno-sign-conversion
231 ipc_pset.o_CFLAGS_ADD += -Wno-sign-conversion
232 ipc_right.o_CFLAGS_ADD += -Wno-sign-conversion
233 ipc_space.o_CFLAGS_ADD += -Wno-sign-conversion
234 ipc_tt.o_CFLAGS_ADD += -Wno-sign-conversion
235 ipc_voucher.o_CFLAGS_ADD += -Wno-sign-conversion
236 kalloc.o_CFLAGS_ADD += -Wno-sign-conversion
237 kdp.o_CFLAGS_ADD += -Wno-sign-conversion
238 kdp_core.o_CFLAGS_ADD += -Wno-sign-conversion
239 kdp_machdep.o_CFLAGS_ADD += -Wno-sign-conversion
240 kdp_serial.o_CFLAGS_ADD += -Wno-sign-conversion
241 kdp_vm.o_CFLAGS_ADD += -Wno-sign-conversion
242 kern_monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
243 kern_stackshot.o_CFLAGS_ADD += -Wno-sign-conversion
244 kernel_tests.o_CFLAGS_ADD += -Wno-sign-conversion
245 kext_alloc.o_CFLAGS_ADD += -Wno-sign-conversion
246 kpc.o_CFLAGS_ADD += -Wno-sign-conversion
247 kpc_arm.o_CFLAGS_ADD += -Wno-sign-conversion
248 kpc_common.o_CFLAGS_ADD += -Wno-sign-conversion
249 kpc_x86.o_CFLAGS_ADD += -Wno-sign-conversion
250 kperf.o_CFLAGS_ADD += -Wno-sign-conversion
251 kperf_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
252 kperf_mp.o_CFLAGS_ADD += -Wno-sign-conversion
253 kperf_timer.o_CFLAGS_ADD += -Wno-sign-conversion
254 kperfbsd.o_CFLAGS_ADD += -Wno-sign-conversion
255 ktest_emit.o_CFLAGS_ADD += -Wno-sign-conversion
256 lapic_native.o_CFLAGS_ADD += -Wno-sign-conversion
257 lazy.o_CFLAGS_ADD += -Wno-sign-conversion
258 ledger.o_CFLAGS_ADD += -Wno-sign-conversion
259 locks.o_CFLAGS_ADD += -Wno-sign-conversion
260 locks_arm.o_CFLAGS_ADD += -Wno-sign-conversion
261 locks_i386.o_CFLAGS_ADD += -Wno-sign-conversion
262 locks_i386_opt.o_CFLAGS_ADD += -Wno-sign-conversion
263 loose_ends.o_CFLAGS_ADD += -Wno-sign-conversion
264 lowmem_vectors.o_CFLAGS_ADD += -Wno-sign-conversion
265 ltable.o_CFLAGS_ADD += -Wno-sign-conversion
266 lz4.o_CFLAGS_ADD += -Wno-sign-conversion
267 mach_debug.o_CFLAGS_ADD += -Wno-sign-conversion
268 mach_kernelrpc.o_CFLAGS_ADD += -Wno-sign-conversion
269 mach_port.o_CFLAGS_ADD += -Wno-sign-conversion
270 machdep_call.o_CFLAGS_ADD += -Wno-sign-conversion
271 machine.o_CFLAGS_ADD += -Wno-sign-conversion
272 machine_check.o_CFLAGS_ADD += -Wno-sign-conversion
273 machine_remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
274 machine_routines.o_CFLAGS_ADD += -Wno-sign-conversion
275 machine_routines_common.o_CFLAGS_ADD += -Wno-sign-conversion
276 machine_task.o_CFLAGS_ADD += -Wno-sign-conversion
277 meminfo.o_CFLAGS_ADD += -Wno-sign-conversion
278 memory_object.o_CFLAGS_ADD += -Wno-sign-conversion
279 mk_sp.o_CFLAGS_ADD += -Wno-sign-conversion
280 mk_timer.o_CFLAGS_ADD += -Wno-sign-conversion
281 model_dep.o_CFLAGS_ADD += -Wno-sign-conversion
282 monotonic_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
283 monotonic_x86_64.o_CFLAGS_ADD += -Wno-sign-conversion
284 mp.o_CFLAGS_ADD += -Wno-sign-conversion
285 mp_desc.o_CFLAGS_ADD += -Wno-sign-conversion
286 mp_native.o_CFLAGS_ADD += -Wno-sign-conversion
287 mpsc_queue.o_CFLAGS_ADD += -Wno-sign-conversion
288 mtrr.o_CFLAGS_ADD += -Wno-sign-conversion
289 pal_routines.o_CFLAGS_ADD += -Wno-sign-conversion
290 pcb.o_CFLAGS_ADD += -Wno-sign-conversion
291 pcb_native.o_CFLAGS_ADD += -Wno-sign-conversion
292 pet.o_CFLAGS_ADD += -Wno-sign-conversion
293 platform_tests.o_CFLAGS_ADD += -Wno-sign-conversion
294 pmCPU.o_CFLAGS_ADD += -Wno-sign-conversion
295 pmap.o_CFLAGS_ADD += -Wno-sign-conversion
296 pmap_common.o_CFLAGS_ADD += -Wno-sign-conversion
297 pmap_pcid.o_CFLAGS_ADD += -Wno-sign-conversion
298 pmap_tests.o_CFLAGS_ADD += -Wno-sign-conversion
299 pmap_x86_common.o_CFLAGS_ADD += -Wno-sign-conversion
300 printf.o_CFLAGS_ADD += -Wno-sign-conversion
301 priority.o_CFLAGS_ADD += -Wno-sign-conversion
302 prng_random.o_CFLAGS_ADD += -Wno-sign-conversion
303 processor.o_CFLAGS_ADD += -Wno-sign-conversion
304 remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
305 rtclock.o_CFLAGS_ADD += -Wno-sign-conversion
306 sart.o_CFLAGS_ADD += -Wno-sign-conversion
307 sched_amp.o_CFLAGS_ADD += -Wno-sign-conversion
308 sched_amp_common.o_CFLAGS_ADD += -Wno-sign-conversion
309 sched_average.o_CFLAGS_ADD += -Wno-sign-conversion
310 sched_clutch.o_CFLAGS_ADD += -Wno-sign-conversion
311 sched_dualq.o_CFLAGS_ADD += -Wno-sign-conversion
312 sched_multiq.o_CFLAGS_ADD += -Wno-sign-conversion
313 sched_prim.o_CFLAGS_ADD += -Wno-sign-conversion
314 sched_traditional.o_CFLAGS_ADD += -Wno-sign-conversion
315 serial_console.o_CFLAGS_ADD += -Wno-sign-conversion
316 serial_general.o_CFLAGS_ADD += -Wno-sign-conversion
317 sfi.o_CFLAGS_ADD += -Wno-sign-conversion
318 shart.o_CFLAGS_ADD += -Wno-sign-conversion
319 sleh.o_CFLAGS_ADD += -Wno-sign-conversion
320 stack.o_CFLAGS_ADD += -Wno-sign-conversion
321 startup.o_CFLAGS_ADD += -Wno-sign-conversion
322 status.o_CFLAGS_ADD += -Wno-sign-conversion
323 status_shared.o_CFLAGS_ADD += -Wno-sign-conversion
324 subrs.o_CFLAGS_ADD += -Wno-sign-conversion
325 sync_sema.o_CFLAGS_ADD += -Wno-sign-conversion
326 syscall_subr.o_CFLAGS_ADD += -Wno-sign-conversion
327 t8020dart.o_CFLAGS_ADD += -Wno-sign-conversion
328 task.o_CFLAGS_ADD += -Wno-sign-conversion
329 task_policy.o_CFLAGS_ADD += -Wno-sign-conversion
330 telemetry.o_CFLAGS_ADD += -Wno-sign-conversion
331 test_lock.o_CFLAGS_ADD += -Wno-sign-conversion
332 test_thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
333 thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
334 thread_group.o_CFLAGS_ADD += -Wno-sign-conversion
335 thread_policy.o_CFLAGS_ADD += -Wno-sign-conversion
336 timer_call.o_CFLAGS_ADD += -Wno-sign-conversion
337 trap.o_CFLAGS_ADD += -Wno-sign-conversion
338 trustcache.o_CFLAGS_ADD += -Wno-sign-conversion
339 turnstile.o_CFLAGS_ADD += -Wno-sign-conversion
340 uat.o_CFLAGS_ADD += -Wno-sign-conversion
341 ucode.o_CFLAGS_ADD += -Wno-sign-conversion
342 ux_handler.o_CFLAGS_ADD += -Wno-sign-conversion
343 vfp_state_test.o_CFLAGS_ADD += -Wno-sign-conversion
344 video_console.o_CFLAGS_ADD += -Wno-sign-conversion
345 video_scroll.o_CFLAGS_ADD += -Wno-sign-conversion
346 vm32_user.o_CFLAGS_ADD += -Wno-sign-conversion
347 vm_compressor.o_CFLAGS_ADD += -Wno-sign-conversion
348 vm_compressor_algorithms.o_CFLAGS_ADD += -Wno-sign-conversion
349 vm_compressor_backing_store.o_CFLAGS_ADD += -Wno-sign-conversion
350 vm_compressor_pager.o_CFLAGS_ADD += -Wno-sign-conversion
351 vm_fault.o_CFLAGS_ADD += -Wno-sign-conversion
352 vm_fourk_pager.o_CFLAGS_ADD += -Wno-sign-conversion
353 vm_kern.o_CFLAGS_ADD += -Wno-sign-conversion
354 vm_map.o_CFLAGS_ADD += -Wno-sign-conversion
355 vm_map_store_ll.o_CFLAGS_ADD += -Wno-sign-conversion
356 vm_map_store_rb.o_CFLAGS_ADD += -Wno-sign-conversion
357 vm_object.o_CFLAGS_ADD += -Wno-sign-conversion
358 vm_pageout.o_CFLAGS_ADD += -Wno-sign-conversion
359 vm_phantom_cache.o_CFLAGS_ADD += -Wno-sign-conversion
360 vm_purgeable.o_CFLAGS_ADD += -Wno-sign-conversion
361 vm_resident.o_CFLAGS_ADD += -Wno-sign-conversion
362 vm_shared_region.o_CFLAGS_ADD += -Wno-sign-conversion
363 vm_user.o_CFLAGS_ADD += -Wno-sign-conversion
364 vmx_cpu.o_CFLAGS_ADD += -Wno-sign-conversion
365 waitq.o_CFLAGS_ADD += -Wno-sign-conversion
366 work_interval.o_CFLAGS_ADD += -Wno-sign-conversion
367 xcpm_dvfs.o_CFLAGS_ADD += -Wno-sign-conversion
368 xcpm_fi.o_CFLAGS_ADD += -Wno-sign-conversion
369 xcpm_idle.o_CFLAGS_ADD += -Wno-sign-conversion
370 xcpm_ioctl.o_CFLAGS_ADD += -Wno-sign-conversion
371 zalloc.o_CFLAGS_ADD += -Wno-sign-conversion
372 zcache.o_CFLAGS_ADD += -Wno-sign-conversion
374 # Rebuild if per-file overrides change
375 ${OBJS}: $(firstword $(MAKEFILE_LIST))
377 # Rebuild if global compile flags change
380 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
381 $(CXXOBJS): .CXXFLAGS
383 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
386 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
388 $(COMPONENT).filelist: $(OBJS)
389 $(_v)for hib_file in ${HIB_FILES}; \
391 $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} || exit 1; \
392 mv $${hib_file}__ $${hib_file} || exit 1; \
394 @$(LOG_LDFILELIST) "$(COMPONENT)"
395 $(_v)for obj in ${OBJS}; do \
396 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
397 done > $(COMPONENT).filelist
399 $(COMPONENT).libfilelist: $(LIBOBJS)
400 @$(LOG_LDFILELIST) "lib$(COMPONENT)"
401 $(_v)for obj in ${LIBOBJS}; do \
402 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
403 done > $(COMPONENT).libfilelist
405 ifeq ($(RC_ProjectName),xnu_libraries)
406 do_all: $(COMPONENT).libfilelist
408 do_all: $(COMPONENT).filelist
411 do_build_all:: do_all
413 # genassym.o actually is an assembly file,
414 # we name it genassym.o to help with the automatic
415 # dependency generation
417 GENASSYM_LOCATION = $(CURRENT_ARCH_CONFIG_LC)
419 ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64)
420 GENASSYM_LOCATION = i386
421 else ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
422 GENASSYM_LOCATION = i386
426 genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
427 genassym.o: $(SOURCE_DIR)/$(COMPONENT)/$(GENASSYM_LOCATION)/genassym.c
428 @$(LOG_GENASSYM) "$<"
429 $(_v)${GENASSYM_KCC} ${CFLAGS} ${CFLAGS_NOLTO_FLAG} -fno-integrated-as -MD -S -o ${@} ${INCFLAGS} $<
432 $(_v)sed -e '/^[[:space:]]*DEFINITION__define__/!d;{N;s/\n//;}' -e 's/^[[:space:]]*DEFINITION__define__\([^:]*\):.*ascii.*\"[\$$]*\([-0-9\#]*\)\".*$$/#define \1 \2/' -e 'p' -e 's/#//2' -e 's/^[[:space:]]*#define \([A-Za-z0-9_]*\)[[:space:]]*[\$$#]*\([-0-9]*\).*$$/#define \1_NUM \2/' genassym.o > $@
438 include $(MakeInc_rule)
439 include $(MakeInc_dir)