]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/conf/Makefile.template
xnu-7195.81.3.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.template
... / ...
CommitLineData
1#
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.
6#
7
8export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
12
13include $(MakeInc_cmd)
14include $(MakeInc_def)
15
16#
17# XXX: CFLAGS
18#
19CFLAGS+= -include meta_features.h -DMACH_KERNEL_PRIVATE -DMACH_KERNEL
20SFLAGS+= -include meta_features.h
21
22ifeq ($(KSANCOV),1)
23# Don't instrument functions called by the ksancov runtime. SanitizeCoverage does
24# not support blacklists, so exclude the whole file.
25machine_routines.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
26machine_routines_common.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
27pcb_native.o_CFLAGS_RM = $(KSANCOV_CFLAGS)
28endif
29
30#
31# XXX: INCFLAGS to include libsa prototypes
32#
33INCFLAGS_MAKEFILE= -I$(SOURCE)libsa
34
35#
36# Directories for mig generated files
37#
38COMP_SUBDIRS = \
39 atm \
40 default_pager \
41 device \
42 mach \
43 UserNotification \
44 gssd \
45 kextd \
46 lockd
47
48#
49# Make sure we don't remove this by accident if interrupted at the wrong
50# time.
51#
52.PRECIOUS: Makefile
53
54#
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
59# configuration.
60#
61
62%OBJS
63
64%LIBOBJS
65
66%CFILES
67
68%CXXFILES
69
70%SFILES
71
72%MACHDEP
73
74#
75# Diagnostic opt-outs. We need to make this list empty.
76#
77# DO NOT ADD MORE HERE.
78#
79vm_tests.o_CFLAGS_ADD += -O0 -g
80# -Wno-atomic-implicit-seq-cst
81mp.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
82pmCPU.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
83pmap_pcid.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
84xcpm_dvfs.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
85xcpm_fi.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
86xcpm_idle.o_CFLAGS_ADD += -Wno-atomic-implicit-seq-cst
87# -Wno-cast-align
88bsd_i386.o_CFLAGS_ADD += -Wno-cast-align
89ccdigest_final_64be.o_CFLAGS_ADD += -Wno-cast-align
90ccdigest_init.o_CFLAGS_ADD += -Wno-cast-align
91ccdigest_update.o_CFLAGS_ADD += -Wno-cast-align
92cchmac_final.o_CFLAGS_ADD += -Wno-cast-align
93cchmac_init.o_CFLAGS_ADD += -Wno-cast-align
94commpage.o_CFLAGS_ADD += -Wno-cast-align
95cpu_threads.o_CFLAGS_ADD += -Wno-cast-align
96host.o_CFLAGS_ADD += -Wno-cast-align
97kdp_machdep.o_CFLAGS_ADD += -Wno-cast-align
98kdp_udp.o_CFLAGS_ADD += -Wno-cast-align
99kdp_x86_common.o_CFLAGS_ADD += -Wno-cast-align
100locks_i386.o_CFLAGS_ADD += -Wno-cast-align
101machine_task.o_CFLAGS_ADD += -Wno-cast-align
102model_dep.o_CFLAGS_ADD += -Wno-cast-align
103mp_desc.o_CFLAGS_ADD += -Wno-cast-align
104pcb.o_CFLAGS_ADD += -Wno-cast-align
105pcb_native.o_CFLAGS_ADD += -Wno-cast-align
106processor.o_CFLAGS_ADD += -Wno-cast-align
107status.o_CFLAGS_ADD += -Wno-cast-align
108task.o_CFLAGS_ADD += -Wno-cast-align
109task_policy.o_CFLAGS_ADD += -Wno-cast-align
110video_console.o_CFLAGS_ADD += -Wno-cast-align
111# -Wno-implicit-int-conversion
112acpi.o_CFLAGS_ADD += -Wno-implicit-int-conversion
113commpage.o_CFLAGS_ADD += -Wno-implicit-int-conversion
114cpu.o_CFLAGS_ADD += -Wno-implicit-int-conversion
115cpu_threads.o_CFLAGS_ADD += -Wno-implicit-int-conversion
116kdebug_trigger.o_CFLAGS_ADD += -Wno-implicit-int-conversion
117kern_stackshot.o_CFLAGS_ADD += -Wno-implicit-int-conversion
118lapic_native.o_CFLAGS_ADD += -Wno-implicit-int-conversion
119loose_ends.o_CFLAGS_ADD += -Wno-implicit-int-conversion
120lz4.o_CFLAGS_ADD += -Wno-implicit-int-conversion
121model_dep.o_CFLAGS_ADD += -Wno-implicit-int-conversion
122mp.o_CFLAGS_ADD += -Wno-implicit-int-conversion
123mp_desc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
124pcb.o_CFLAGS_ADD += -Wno-implicit-int-conversion
125pcb_native.o_CFLAGS_ADD += -Wno-implicit-int-conversion
126pmap_pcid.o_CFLAGS_ADD += -Wno-implicit-int-conversion
127pmap_x86_common.o_CFLAGS_ADD += -Wno-implicit-int-conversion
128sched_clutch.o_CFLAGS_ADD += -Wno-implicit-int-conversion
129thread_group.o_CFLAGS_ADD += -Wno-implicit-int-conversion
130trap.o_CFLAGS_ADD += -Wno-implicit-int-conversion
131uat.o_CFLAGS_ADD += -Wno-implicit-int-conversion
132video_console.o_CFLAGS_ADD += -Wno-implicit-int-conversion
133xcpm_dvfs.o_CFLAGS_ADD += -Wno-implicit-int-conversion
134xcpm_ioctl.o_CFLAGS_ADD += -Wno-implicit-int-conversion
135zalloc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
136# -Wno-shorten-64-to-32
137arm_vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
138backtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
139btlog.o_CFLAGS_ADD += -Wno-shorten-64-to-32
140caches.o_CFLAGS_ADD += -Wno-shorten-64-to-32
141callstack.o_CFLAGS_ADD += -Wno-shorten-64-to-32
142clock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
143clock_oldops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
144iokit_rpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
145ipc_kmsg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
146ipc_pset.o_CFLAGS_ADD += -Wno-shorten-64-to-32
147ipc_right.o_CFLAGS_ADD += -Wno-shorten-64-to-32
148kdp_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
149kdp_vm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
150kern_cdata.o_CFLAGS_ADD += -Wno-shorten-64-to-32
151kern_stackshot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
152loose_ends.o_CFLAGS_ADD += -Wno-shorten-64-to-32
153mach_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
154machine_routines.o_CFLAGS_ADD += -Wno-shorten-64-to-32
155mk_timer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
156model_dep.o_CFLAGS_ADD += -Wno-shorten-64-to-32
157pcb.o_CFLAGS_ADD += -Wno-shorten-64-to-32
158pmap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
159processor_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
160rtclock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
161status.o_CFLAGS_ADD += -Wno-shorten-64-to-32
162telemetry.o_CFLAGS_ADD += -Wno-shorten-64-to-32
163vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
164vm_kern.o_CFLAGS_ADD += -Wno-shorten-64-to-32
165vm_object.o_CFLAGS_ADD += -Wno-shorten-64-to-32
166vm_shared_region_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
167vm_swapfile_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
168vm_user.o_CFLAGS_ADD += -Wno-shorten-64-to-32
169zalloc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
170# -Wno-sign-conversion
171Diagnostics.o_CFLAGS_ADD += -Wno-sign-conversion
172acpi.o_CFLAGS_ADD += -Wno-sign-conversion
173action.o_CFLAGS_ADD += -Wno-sign-conversion
174affinity.o_CFLAGS_ADD += -Wno-sign-conversion
175alternate_debugger.o_CFLAGS_ADD += -Wno-sign-conversion
176arcade.o_CFLAGS_ADD += -Wno-sign-conversion
177arm_init.o_CFLAGS_ADD += -Wno-sign-conversion
178arm_timer.o_CFLAGS_ADD += -Wno-sign-conversion
179arm_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
180ast.o_CFLAGS_ADD += -Wno-sign-conversion
181backtrace.o_CFLAGS_ADD += -Wno-sign-conversion
182bank.o_CFLAGS_ADD += -Wno-sign-conversion
183bitmap_test.o_CFLAGS_ADD += -Wno-sign-conversion
184bsd_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
185bsd_i386.o_CFLAGS_ADD += -Wno-sign-conversion
186bsd_i386_native.o_CFLAGS_ADD += -Wno-sign-conversion
187bsd_kern.o_CFLAGS_ADD += -Wno-sign-conversion
188bsd_vm.o_CFLAGS_ADD += -Wno-sign-conversion
189btlog.o_CFLAGS_ADD += -Wno-sign-conversion
190caches.o_CFLAGS_ADD += -Wno-sign-conversion
191callstack.o_CFLAGS_ADD += -Wno-sign-conversion
192ccdrbg_nisthmac.o_CFLAGS_ADD += -Wno-sign-conversion
193cchmac.o_CFLAGS_ADD += -Wno-sign-conversion
194cchmac_final.o_CFLAGS_ADD += -Wno-sign-conversion
195cchmac_init.o_CFLAGS_ADD += -Wno-sign-conversion
196clock.o_CFLAGS_ADD += -Wno-sign-conversion
197clock_oldops.o_CFLAGS_ADD += -Wno-sign-conversion
198coalition.o_CFLAGS_ADD += -Wno-sign-conversion
199commpage.o_CFLAGS_ADD += -Wno-sign-conversion
200copyio.o_CFLAGS_ADD += -Wno-sign-conversion
201corpse.o_CFLAGS_ADD += -Wno-sign-conversion
202cpu.o_CFLAGS_ADD += -Wno-sign-conversion
203cpu_common.o_CFLAGS_ADD += -Wno-sign-conversion
204cpu_quiesce.o_CFLAGS_ADD += -Wno-sign-conversion
205cpu_threads.o_CFLAGS_ADD += -Wno-sign-conversion
206cpu_topology.o_CFLAGS_ADD += -Wno-sign-conversion
207cpuid.o_CFLAGS_ADD += -Wno-sign-conversion
208dbgwrap.o_CFLAGS_ADD += -Wno-sign-conversion
209debug.o_CFLAGS_ADD += -Wno-sign-conversion
210ecc_logging.o_CFLAGS_ADD += -Wno-sign-conversion
211entropy.o_CFLAGS_ADD += -Wno-sign-conversion
212exception.o_CFLAGS_ADD += -Wno-sign-conversion
213fpu.o_CFLAGS_ADD += -Wno-sign-conversion
214gzalloc.o_CFLAGS_ADD += -Wno-sign-conversion
215host.o_CFLAGS_ADD += -Wno-sign-conversion
216host_notify.o_CFLAGS_ADD += -Wno-sign-conversion
217hv.o_CFLAGS_ADD += -Wno-sign-conversion
218i386_init.o_CFLAGS_ADD += -Wno-sign-conversion
219i386_timer.o_CFLAGS_ADD += -Wno-sign-conversion
220i386_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
221iokit_rpc.o_CFLAGS_ADD += -Wno-sign-conversion
222ipc_eventlink.o_CFLAGS_ADD += -Wno-sign-conversion
223ipc_host.o_CFLAGS_ADD += -Wno-sign-conversion
224ipc_importance.o_CFLAGS_ADD += -Wno-sign-conversion
225ipc_init.o_CFLAGS_ADD += -Wno-sign-conversion
226ipc_kmsg.o_CFLAGS_ADD += -Wno-sign-conversion
227ipc_kobject.o_CFLAGS_ADD += -Wno-sign-conversion
228ipc_mqueue.o_CFLAGS_ADD += -Wno-sign-conversion
229ipc_object.o_CFLAGS_ADD += -Wno-sign-conversion
230ipc_port.o_CFLAGS_ADD += -Wno-sign-conversion
231ipc_pset.o_CFLAGS_ADD += -Wno-sign-conversion
232ipc_right.o_CFLAGS_ADD += -Wno-sign-conversion
233ipc_space.o_CFLAGS_ADD += -Wno-sign-conversion
234ipc_tt.o_CFLAGS_ADD += -Wno-sign-conversion
235ipc_voucher.o_CFLAGS_ADD += -Wno-sign-conversion
236kalloc.o_CFLAGS_ADD += -Wno-sign-conversion
237kdp.o_CFLAGS_ADD += -Wno-sign-conversion
238kdp_core.o_CFLAGS_ADD += -Wno-sign-conversion
239kdp_machdep.o_CFLAGS_ADD += -Wno-sign-conversion
240kdp_serial.o_CFLAGS_ADD += -Wno-sign-conversion
241kdp_vm.o_CFLAGS_ADD += -Wno-sign-conversion
242kern_monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
243kern_stackshot.o_CFLAGS_ADD += -Wno-sign-conversion
244kernel_tests.o_CFLAGS_ADD += -Wno-sign-conversion
245kext_alloc.o_CFLAGS_ADD += -Wno-sign-conversion
246kpc.o_CFLAGS_ADD += -Wno-sign-conversion
247kpc_arm.o_CFLAGS_ADD += -Wno-sign-conversion
248kpc_common.o_CFLAGS_ADD += -Wno-sign-conversion
249kpc_x86.o_CFLAGS_ADD += -Wno-sign-conversion
250kperf.o_CFLAGS_ADD += -Wno-sign-conversion
251kperf_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
252kperf_mp.o_CFLAGS_ADD += -Wno-sign-conversion
253kperf_timer.o_CFLAGS_ADD += -Wno-sign-conversion
254kperfbsd.o_CFLAGS_ADD += -Wno-sign-conversion
255ktest_emit.o_CFLAGS_ADD += -Wno-sign-conversion
256lapic_native.o_CFLAGS_ADD += -Wno-sign-conversion
257lazy.o_CFLAGS_ADD += -Wno-sign-conversion
258ledger.o_CFLAGS_ADD += -Wno-sign-conversion
259locks.o_CFLAGS_ADD += -Wno-sign-conversion
260locks_arm.o_CFLAGS_ADD += -Wno-sign-conversion
261locks_i386.o_CFLAGS_ADD += -Wno-sign-conversion
262locks_i386_opt.o_CFLAGS_ADD += -Wno-sign-conversion
263loose_ends.o_CFLAGS_ADD += -Wno-sign-conversion
264lowmem_vectors.o_CFLAGS_ADD += -Wno-sign-conversion
265ltable.o_CFLAGS_ADD += -Wno-sign-conversion
266lz4.o_CFLAGS_ADD += -Wno-sign-conversion
267mach_debug.o_CFLAGS_ADD += -Wno-sign-conversion
268mach_kernelrpc.o_CFLAGS_ADD += -Wno-sign-conversion
269mach_port.o_CFLAGS_ADD += -Wno-sign-conversion
270machdep_call.o_CFLAGS_ADD += -Wno-sign-conversion
271machine.o_CFLAGS_ADD += -Wno-sign-conversion
272machine_check.o_CFLAGS_ADD += -Wno-sign-conversion
273machine_remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
274machine_routines.o_CFLAGS_ADD += -Wno-sign-conversion
275machine_routines_common.o_CFLAGS_ADD += -Wno-sign-conversion
276machine_task.o_CFLAGS_ADD += -Wno-sign-conversion
277meminfo.o_CFLAGS_ADD += -Wno-sign-conversion
278memory_object.o_CFLAGS_ADD += -Wno-sign-conversion
279mk_sp.o_CFLAGS_ADD += -Wno-sign-conversion
280mk_timer.o_CFLAGS_ADD += -Wno-sign-conversion
281model_dep.o_CFLAGS_ADD += -Wno-sign-conversion
282monotonic_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
283monotonic_x86_64.o_CFLAGS_ADD += -Wno-sign-conversion
284mp.o_CFLAGS_ADD += -Wno-sign-conversion
285mp_desc.o_CFLAGS_ADD += -Wno-sign-conversion
286mp_native.o_CFLAGS_ADD += -Wno-sign-conversion
287mpsc_queue.o_CFLAGS_ADD += -Wno-sign-conversion
288mtrr.o_CFLAGS_ADD += -Wno-sign-conversion
289pal_routines.o_CFLAGS_ADD += -Wno-sign-conversion
290pcb.o_CFLAGS_ADD += -Wno-sign-conversion
291pcb_native.o_CFLAGS_ADD += -Wno-sign-conversion
292pet.o_CFLAGS_ADD += -Wno-sign-conversion
293platform_tests.o_CFLAGS_ADD += -Wno-sign-conversion
294pmCPU.o_CFLAGS_ADD += -Wno-sign-conversion
295pmap.o_CFLAGS_ADD += -Wno-sign-conversion
296pmap_common.o_CFLAGS_ADD += -Wno-sign-conversion
297pmap_pcid.o_CFLAGS_ADD += -Wno-sign-conversion
298pmap_tests.o_CFLAGS_ADD += -Wno-sign-conversion
299pmap_x86_common.o_CFLAGS_ADD += -Wno-sign-conversion
300printf.o_CFLAGS_ADD += -Wno-sign-conversion
301priority.o_CFLAGS_ADD += -Wno-sign-conversion
302prng_random.o_CFLAGS_ADD += -Wno-sign-conversion
303processor.o_CFLAGS_ADD += -Wno-sign-conversion
304remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
305rtclock.o_CFLAGS_ADD += -Wno-sign-conversion
306sart.o_CFLAGS_ADD += -Wno-sign-conversion
307sched_amp.o_CFLAGS_ADD += -Wno-sign-conversion
308sched_amp_common.o_CFLAGS_ADD += -Wno-sign-conversion
309sched_average.o_CFLAGS_ADD += -Wno-sign-conversion
310sched_clutch.o_CFLAGS_ADD += -Wno-sign-conversion
311sched_dualq.o_CFLAGS_ADD += -Wno-sign-conversion
312sched_multiq.o_CFLAGS_ADD += -Wno-sign-conversion
313sched_prim.o_CFLAGS_ADD += -Wno-sign-conversion
314sched_traditional.o_CFLAGS_ADD += -Wno-sign-conversion
315serial_console.o_CFLAGS_ADD += -Wno-sign-conversion
316serial_general.o_CFLAGS_ADD += -Wno-sign-conversion
317sfi.o_CFLAGS_ADD += -Wno-sign-conversion
318shart.o_CFLAGS_ADD += -Wno-sign-conversion
319sleh.o_CFLAGS_ADD += -Wno-sign-conversion
320stack.o_CFLAGS_ADD += -Wno-sign-conversion
321startup.o_CFLAGS_ADD += -Wno-sign-conversion
322status.o_CFLAGS_ADD += -Wno-sign-conversion
323status_shared.o_CFLAGS_ADD += -Wno-sign-conversion
324subrs.o_CFLAGS_ADD += -Wno-sign-conversion
325sync_sema.o_CFLAGS_ADD += -Wno-sign-conversion
326syscall_subr.o_CFLAGS_ADD += -Wno-sign-conversion
327t8020dart.o_CFLAGS_ADD += -Wno-sign-conversion
328task.o_CFLAGS_ADD += -Wno-sign-conversion
329task_policy.o_CFLAGS_ADD += -Wno-sign-conversion
330telemetry.o_CFLAGS_ADD += -Wno-sign-conversion
331test_lock.o_CFLAGS_ADD += -Wno-sign-conversion
332test_thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
333thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
334thread_group.o_CFLAGS_ADD += -Wno-sign-conversion
335thread_policy.o_CFLAGS_ADD += -Wno-sign-conversion
336timer_call.o_CFLAGS_ADD += -Wno-sign-conversion
337trap.o_CFLAGS_ADD += -Wno-sign-conversion
338trustcache.o_CFLAGS_ADD += -Wno-sign-conversion
339turnstile.o_CFLAGS_ADD += -Wno-sign-conversion
340uat.o_CFLAGS_ADD += -Wno-sign-conversion
341ucode.o_CFLAGS_ADD += -Wno-sign-conversion
342ux_handler.o_CFLAGS_ADD += -Wno-sign-conversion
343vfp_state_test.o_CFLAGS_ADD += -Wno-sign-conversion
344video_console.o_CFLAGS_ADD += -Wno-sign-conversion
345video_scroll.o_CFLAGS_ADD += -Wno-sign-conversion
346vm32_user.o_CFLAGS_ADD += -Wno-sign-conversion
347vm_compressor.o_CFLAGS_ADD += -Wno-sign-conversion
348vm_compressor_algorithms.o_CFLAGS_ADD += -Wno-sign-conversion
349vm_compressor_backing_store.o_CFLAGS_ADD += -Wno-sign-conversion
350vm_compressor_pager.o_CFLAGS_ADD += -Wno-sign-conversion
351vm_fault.o_CFLAGS_ADD += -Wno-sign-conversion
352vm_fourk_pager.o_CFLAGS_ADD += -Wno-sign-conversion
353vm_kern.o_CFLAGS_ADD += -Wno-sign-conversion
354vm_map.o_CFLAGS_ADD += -Wno-sign-conversion
355vm_map_store_ll.o_CFLAGS_ADD += -Wno-sign-conversion
356vm_map_store_rb.o_CFLAGS_ADD += -Wno-sign-conversion
357vm_object.o_CFLAGS_ADD += -Wno-sign-conversion
358vm_pageout.o_CFLAGS_ADD += -Wno-sign-conversion
359vm_phantom_cache.o_CFLAGS_ADD += -Wno-sign-conversion
360vm_purgeable.o_CFLAGS_ADD += -Wno-sign-conversion
361vm_resident.o_CFLAGS_ADD += -Wno-sign-conversion
362vm_shared_region.o_CFLAGS_ADD += -Wno-sign-conversion
363vm_user.o_CFLAGS_ADD += -Wno-sign-conversion
364vmx_cpu.o_CFLAGS_ADD += -Wno-sign-conversion
365waitq.o_CFLAGS_ADD += -Wno-sign-conversion
366work_interval.o_CFLAGS_ADD += -Wno-sign-conversion
367xcpm_dvfs.o_CFLAGS_ADD += -Wno-sign-conversion
368xcpm_fi.o_CFLAGS_ADD += -Wno-sign-conversion
369xcpm_idle.o_CFLAGS_ADD += -Wno-sign-conversion
370xcpm_ioctl.o_CFLAGS_ADD += -Wno-sign-conversion
371zalloc.o_CFLAGS_ADD += -Wno-sign-conversion
372zcache.o_CFLAGS_ADD += -Wno-sign-conversion
373
374# Rebuild if per-file overrides change
375${OBJS}: $(firstword $(MAKEFILE_LIST))
376
377# Rebuild if global compile flags change
378$(COBJS): .CFLAGS
379.CFLAGS: ALWAYS
380 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
381$(CXXOBJS): .CXXFLAGS
382.CXXFLAGS: ALWAYS
383 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
384$(SOBJS): .SFLAGS
385.SFLAGS: ALWAYS
386 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
387
388$(COMPONENT).filelist: $(OBJS)
389 $(_v)for hib_file in ${HIB_FILES}; \
390 do \
391 $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} || exit 1; \
392 mv $${hib_file}__ $${hib_file} || exit 1; \
393 done
394 @$(LOG_LDFILELIST) "$(COMPONENT)"
395 $(_v)for obj in ${OBJS}; do \
396 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
397 done > $(COMPONENT).filelist
398
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
404
405ifeq ($(RC_ProjectName),xnu_libraries)
406do_all: $(COMPONENT).libfilelist
407else
408do_all: $(COMPONENT).filelist
409endif
410
411do_build_all:: do_all
412
413# genassym.o actually is an assembly file,
414# we name it genassym.o to help with the automatic
415# dependency generation
416
417GENASSYM_LOCATION = $(CURRENT_ARCH_CONFIG_LC)
418
419ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64)
420GENASSYM_LOCATION = i386
421else ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
422GENASSYM_LOCATION = i386
423endif
424
425-include genassym.d
426genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
427genassym.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} $<
430
431assym.s: genassym.o
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 > $@
433
434${SOBJS}: assym.s
435
436%RULES
437
438include $(MakeInc_rule)
439include $(MakeInc_dir)