]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/conf/Makefile.template
xnu-7195.101.1.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
135# -Wno-shorten-64-to-32
136arm_vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
137backtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
138btlog.o_CFLAGS_ADD += -Wno-shorten-64-to-32
139caches.o_CFLAGS_ADD += -Wno-shorten-64-to-32
140callstack.o_CFLAGS_ADD += -Wno-shorten-64-to-32
141clock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
142clock_oldops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
143iokit_rpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
144ipc_kmsg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
145ipc_pset.o_CFLAGS_ADD += -Wno-shorten-64-to-32
146ipc_right.o_CFLAGS_ADD += -Wno-shorten-64-to-32
147kdp_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
148kdp_vm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
149kern_cdata.o_CFLAGS_ADD += -Wno-shorten-64-to-32
150kern_stackshot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
151loose_ends.o_CFLAGS_ADD += -Wno-shorten-64-to-32
152mach_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
153machine_routines.o_CFLAGS_ADD += -Wno-shorten-64-to-32
154mk_timer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
155model_dep.o_CFLAGS_ADD += -Wno-shorten-64-to-32
156pcb.o_CFLAGS_ADD += -Wno-shorten-64-to-32
157pmap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
158processor_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
159rtclock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
160status.o_CFLAGS_ADD += -Wno-shorten-64-to-32
161telemetry.o_CFLAGS_ADD += -Wno-shorten-64-to-32
162vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
163vm_kern.o_CFLAGS_ADD += -Wno-shorten-64-to-32
164vm_object.o_CFLAGS_ADD += -Wno-shorten-64-to-32
165vm_shared_region_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
166vm_swapfile_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
167vm_user.o_CFLAGS_ADD += -Wno-shorten-64-to-32
168# -Wno-sign-conversion
169Diagnostics.o_CFLAGS_ADD += -Wno-sign-conversion
170acpi.o_CFLAGS_ADD += -Wno-sign-conversion
171action.o_CFLAGS_ADD += -Wno-sign-conversion
172affinity.o_CFLAGS_ADD += -Wno-sign-conversion
173alternate_debugger.o_CFLAGS_ADD += -Wno-sign-conversion
174arcade.o_CFLAGS_ADD += -Wno-sign-conversion
175arm_init.o_CFLAGS_ADD += -Wno-sign-conversion
176arm_timer.o_CFLAGS_ADD += -Wno-sign-conversion
177arm_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
178ast.o_CFLAGS_ADD += -Wno-sign-conversion
179backtrace.o_CFLAGS_ADD += -Wno-sign-conversion
180bank.o_CFLAGS_ADD += -Wno-sign-conversion
181bitmap_test.o_CFLAGS_ADD += -Wno-sign-conversion
182bsd_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
183bsd_i386.o_CFLAGS_ADD += -Wno-sign-conversion
184bsd_i386_native.o_CFLAGS_ADD += -Wno-sign-conversion
185bsd_kern.o_CFLAGS_ADD += -Wno-sign-conversion
186bsd_vm.o_CFLAGS_ADD += -Wno-sign-conversion
187btlog.o_CFLAGS_ADD += -Wno-sign-conversion
188caches.o_CFLAGS_ADD += -Wno-sign-conversion
189callstack.o_CFLAGS_ADD += -Wno-sign-conversion
190ccdrbg_nisthmac.o_CFLAGS_ADD += -Wno-sign-conversion
191cchmac.o_CFLAGS_ADD += -Wno-sign-conversion
192cchmac_final.o_CFLAGS_ADD += -Wno-sign-conversion
193cchmac_init.o_CFLAGS_ADD += -Wno-sign-conversion
194clock.o_CFLAGS_ADD += -Wno-sign-conversion
195clock_oldops.o_CFLAGS_ADD += -Wno-sign-conversion
196coalition.o_CFLAGS_ADD += -Wno-sign-conversion
197commpage.o_CFLAGS_ADD += -Wno-sign-conversion
198copyio.o_CFLAGS_ADD += -Wno-sign-conversion
199corpse.o_CFLAGS_ADD += -Wno-sign-conversion
200cpu.o_CFLAGS_ADD += -Wno-sign-conversion
201cpu_common.o_CFLAGS_ADD += -Wno-sign-conversion
202cpu_quiesce.o_CFLAGS_ADD += -Wno-sign-conversion
203cpu_threads.o_CFLAGS_ADD += -Wno-sign-conversion
204cpu_topology.o_CFLAGS_ADD += -Wno-sign-conversion
205cpuid.o_CFLAGS_ADD += -Wno-sign-conversion
206dbgwrap.o_CFLAGS_ADD += -Wno-sign-conversion
207debug.o_CFLAGS_ADD += -Wno-sign-conversion
208ecc_logging.o_CFLAGS_ADD += -Wno-sign-conversion
209entropy.o_CFLAGS_ADD += -Wno-sign-conversion
210exception.o_CFLAGS_ADD += -Wno-sign-conversion
211fpu.o_CFLAGS_ADD += -Wno-sign-conversion
212gzalloc.o_CFLAGS_ADD += -Wno-sign-conversion
213host.o_CFLAGS_ADD += -Wno-sign-conversion
214host_notify.o_CFLAGS_ADD += -Wno-sign-conversion
215hv.o_CFLAGS_ADD += -Wno-sign-conversion
216i386_init.o_CFLAGS_ADD += -Wno-sign-conversion
217i386_timer.o_CFLAGS_ADD += -Wno-sign-conversion
218i386_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
219iokit_rpc.o_CFLAGS_ADD += -Wno-sign-conversion
220ipc_eventlink.o_CFLAGS_ADD += -Wno-sign-conversion
221ipc_host.o_CFLAGS_ADD += -Wno-sign-conversion
222ipc_importance.o_CFLAGS_ADD += -Wno-sign-conversion
223ipc_init.o_CFLAGS_ADD += -Wno-sign-conversion
224ipc_kmsg.o_CFLAGS_ADD += -Wno-sign-conversion
225ipc_kobject.o_CFLAGS_ADD += -Wno-sign-conversion
226ipc_mqueue.o_CFLAGS_ADD += -Wno-sign-conversion
227ipc_object.o_CFLAGS_ADD += -Wno-sign-conversion
228ipc_port.o_CFLAGS_ADD += -Wno-sign-conversion
229ipc_pset.o_CFLAGS_ADD += -Wno-sign-conversion
230ipc_right.o_CFLAGS_ADD += -Wno-sign-conversion
231ipc_space.o_CFLAGS_ADD += -Wno-sign-conversion
232ipc_tt.o_CFLAGS_ADD += -Wno-sign-conversion
233ipc_voucher.o_CFLAGS_ADD += -Wno-sign-conversion
234kalloc.o_CFLAGS_ADD += -Wno-sign-conversion
235kdp.o_CFLAGS_ADD += -Wno-sign-conversion
236kdp_core.o_CFLAGS_ADD += -Wno-sign-conversion
237kdp_machdep.o_CFLAGS_ADD += -Wno-sign-conversion
238kdp_serial.o_CFLAGS_ADD += -Wno-sign-conversion
239kdp_vm.o_CFLAGS_ADD += -Wno-sign-conversion
240kern_monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
241kern_stackshot.o_CFLAGS_ADD += -Wno-sign-conversion
242kernel_tests.o_CFLAGS_ADD += -Wno-sign-conversion
243kext_alloc.o_CFLAGS_ADD += -Wno-sign-conversion
244kpc.o_CFLAGS_ADD += -Wno-sign-conversion
245kpc_arm.o_CFLAGS_ADD += -Wno-sign-conversion
246kpc_common.o_CFLAGS_ADD += -Wno-sign-conversion
247kpc_x86.o_CFLAGS_ADD += -Wno-sign-conversion
248kperf.o_CFLAGS_ADD += -Wno-sign-conversion
249kperf_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
250kperf_mp.o_CFLAGS_ADD += -Wno-sign-conversion
251kperf_timer.o_CFLAGS_ADD += -Wno-sign-conversion
252kperfbsd.o_CFLAGS_ADD += -Wno-sign-conversion
253ktest_emit.o_CFLAGS_ADD += -Wno-sign-conversion
254lapic_native.o_CFLAGS_ADD += -Wno-sign-conversion
255lazy.o_CFLAGS_ADD += -Wno-sign-conversion
256ledger.o_CFLAGS_ADD += -Wno-sign-conversion
257locks.o_CFLAGS_ADD += -Wno-sign-conversion
258locks_arm.o_CFLAGS_ADD += -Wno-sign-conversion
259locks_i386.o_CFLAGS_ADD += -Wno-sign-conversion
260locks_i386_opt.o_CFLAGS_ADD += -Wno-sign-conversion
261loose_ends.o_CFLAGS_ADD += -Wno-sign-conversion
262lowmem_vectors.o_CFLAGS_ADD += -Wno-sign-conversion
263ltable.o_CFLAGS_ADD += -Wno-sign-conversion
264lz4.o_CFLAGS_ADD += -Wno-sign-conversion
265mach_debug.o_CFLAGS_ADD += -Wno-sign-conversion
266mach_kernelrpc.o_CFLAGS_ADD += -Wno-sign-conversion
267mach_port.o_CFLAGS_ADD += -Wno-sign-conversion
268machdep_call.o_CFLAGS_ADD += -Wno-sign-conversion
269machine.o_CFLAGS_ADD += -Wno-sign-conversion
270machine_check.o_CFLAGS_ADD += -Wno-sign-conversion
271machine_remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
272machine_routines.o_CFLAGS_ADD += -Wno-sign-conversion
273machine_routines_common.o_CFLAGS_ADD += -Wno-sign-conversion
274machine_task.o_CFLAGS_ADD += -Wno-sign-conversion
275meminfo.o_CFLAGS_ADD += -Wno-sign-conversion
276memory_object.o_CFLAGS_ADD += -Wno-sign-conversion
277mk_sp.o_CFLAGS_ADD += -Wno-sign-conversion
278mk_timer.o_CFLAGS_ADD += -Wno-sign-conversion
279model_dep.o_CFLAGS_ADD += -Wno-sign-conversion
280monotonic_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
281monotonic_x86_64.o_CFLAGS_ADD += -Wno-sign-conversion
282mp.o_CFLAGS_ADD += -Wno-sign-conversion
283mp_desc.o_CFLAGS_ADD += -Wno-sign-conversion
284mp_native.o_CFLAGS_ADD += -Wno-sign-conversion
285mpsc_queue.o_CFLAGS_ADD += -Wno-sign-conversion
286mtrr.o_CFLAGS_ADD += -Wno-sign-conversion
287pal_routines.o_CFLAGS_ADD += -Wno-sign-conversion
288pcb.o_CFLAGS_ADD += -Wno-sign-conversion
289pcb_native.o_CFLAGS_ADD += -Wno-sign-conversion
290pet.o_CFLAGS_ADD += -Wno-sign-conversion
291platform_tests.o_CFLAGS_ADD += -Wno-sign-conversion
292pmCPU.o_CFLAGS_ADD += -Wno-sign-conversion
293pmap.o_CFLAGS_ADD += -Wno-sign-conversion
294pmap_common.o_CFLAGS_ADD += -Wno-sign-conversion
295pmap_pcid.o_CFLAGS_ADD += -Wno-sign-conversion
296pmap_tests.o_CFLAGS_ADD += -Wno-sign-conversion
297pmap_x86_common.o_CFLAGS_ADD += -Wno-sign-conversion
298printf.o_CFLAGS_ADD += -Wno-sign-conversion
299priority.o_CFLAGS_ADD += -Wno-sign-conversion
300prng_random.o_CFLAGS_ADD += -Wno-sign-conversion
301processor.o_CFLAGS_ADD += -Wno-sign-conversion
302remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
303rtclock.o_CFLAGS_ADD += -Wno-sign-conversion
304sart.o_CFLAGS_ADD += -Wno-sign-conversion
305sched_amp.o_CFLAGS_ADD += -Wno-sign-conversion
306sched_amp_common.o_CFLAGS_ADD += -Wno-sign-conversion
307sched_average.o_CFLAGS_ADD += -Wno-sign-conversion
308sched_clutch.o_CFLAGS_ADD += -Wno-sign-conversion
309sched_dualq.o_CFLAGS_ADD += -Wno-sign-conversion
310sched_multiq.o_CFLAGS_ADD += -Wno-sign-conversion
311sched_prim.o_CFLAGS_ADD += -Wno-sign-conversion
312sched_traditional.o_CFLAGS_ADD += -Wno-sign-conversion
313serial_console.o_CFLAGS_ADD += -Wno-sign-conversion
314serial_general.o_CFLAGS_ADD += -Wno-sign-conversion
315sfi.o_CFLAGS_ADD += -Wno-sign-conversion
316shart.o_CFLAGS_ADD += -Wno-sign-conversion
317sleh.o_CFLAGS_ADD += -Wno-sign-conversion
318stack.o_CFLAGS_ADD += -Wno-sign-conversion
319startup.o_CFLAGS_ADD += -Wno-sign-conversion
320status.o_CFLAGS_ADD += -Wno-sign-conversion
321status_shared.o_CFLAGS_ADD += -Wno-sign-conversion
322subrs.o_CFLAGS_ADD += -Wno-sign-conversion
323sync_sema.o_CFLAGS_ADD += -Wno-sign-conversion
324syscall_subr.o_CFLAGS_ADD += -Wno-sign-conversion
325t8020dart.o_CFLAGS_ADD += -Wno-sign-conversion
326task.o_CFLAGS_ADD += -Wno-sign-conversion
327task_policy.o_CFLAGS_ADD += -Wno-sign-conversion
328telemetry.o_CFLAGS_ADD += -Wno-sign-conversion
329test_lock.o_CFLAGS_ADD += -Wno-sign-conversion
330test_thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
331thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
332thread_group.o_CFLAGS_ADD += -Wno-sign-conversion
333thread_policy.o_CFLAGS_ADD += -Wno-sign-conversion
334timer_call.o_CFLAGS_ADD += -Wno-sign-conversion
335trap.o_CFLAGS_ADD += -Wno-sign-conversion
336trustcache.o_CFLAGS_ADD += -Wno-sign-conversion
337turnstile.o_CFLAGS_ADD += -Wno-sign-conversion
338uat.o_CFLAGS_ADD += -Wno-sign-conversion
339ucode.o_CFLAGS_ADD += -Wno-sign-conversion
340ux_handler.o_CFLAGS_ADD += -Wno-sign-conversion
341vfp_state_test.o_CFLAGS_ADD += -Wno-sign-conversion
342video_console.o_CFLAGS_ADD += -Wno-sign-conversion
343video_scroll.o_CFLAGS_ADD += -Wno-sign-conversion
344vm32_user.o_CFLAGS_ADD += -Wno-sign-conversion
345vm_compressor.o_CFLAGS_ADD += -Wno-sign-conversion
346vm_compressor_algorithms.o_CFLAGS_ADD += -Wno-sign-conversion
347vm_compressor_backing_store.o_CFLAGS_ADD += -Wno-sign-conversion
348vm_compressor_pager.o_CFLAGS_ADD += -Wno-sign-conversion
349vm_fault.o_CFLAGS_ADD += -Wno-sign-conversion
350vm_fourk_pager.o_CFLAGS_ADD += -Wno-sign-conversion
351vm_kern.o_CFLAGS_ADD += -Wno-sign-conversion
352vm_map.o_CFLAGS_ADD += -Wno-sign-conversion
353vm_map_store_ll.o_CFLAGS_ADD += -Wno-sign-conversion
354vm_map_store_rb.o_CFLAGS_ADD += -Wno-sign-conversion
355vm_object.o_CFLAGS_ADD += -Wno-sign-conversion
356vm_pageout.o_CFLAGS_ADD += -Wno-sign-conversion
357vm_phantom_cache.o_CFLAGS_ADD += -Wno-sign-conversion
358vm_purgeable.o_CFLAGS_ADD += -Wno-sign-conversion
359vm_resident.o_CFLAGS_ADD += -Wno-sign-conversion
360vm_shared_region.o_CFLAGS_ADD += -Wno-sign-conversion
361vm_user.o_CFLAGS_ADD += -Wno-sign-conversion
362vmx_cpu.o_CFLAGS_ADD += -Wno-sign-conversion
363waitq.o_CFLAGS_ADD += -Wno-sign-conversion
364work_interval.o_CFLAGS_ADD += -Wno-sign-conversion
365xcpm_dvfs.o_CFLAGS_ADD += -Wno-sign-conversion
366xcpm_fi.o_CFLAGS_ADD += -Wno-sign-conversion
367xcpm_idle.o_CFLAGS_ADD += -Wno-sign-conversion
368xcpm_ioctl.o_CFLAGS_ADD += -Wno-sign-conversion
369
370# Rebuild if per-file overrides change
371${OBJS}: $(firstword $(MAKEFILE_LIST))
372
373# Rebuild if global compile flags change
374$(COBJS): .CFLAGS
375.CFLAGS: ALWAYS
376 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
377$(CXXOBJS): .CXXFLAGS
378.CXXFLAGS: ALWAYS
379 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
380$(SOBJS): .SFLAGS
381.SFLAGS: ALWAYS
382 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
383
384$(COMPONENT).filelist: $(OBJS)
385 $(_v)for hib_file in ${HIB_FILES}; \
386 do \
387 $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} || exit 1; \
388 mv $${hib_file}__ $${hib_file} || exit 1; \
389 done
390 @$(LOG_LDFILELIST) "$(COMPONENT)"
391 $(_v)for obj in ${OBJS}; do \
392 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
393 done > $(COMPONENT).filelist
394
395$(COMPONENT).libfilelist: $(LIBOBJS)
396 @$(LOG_LDFILELIST) "lib$(COMPONENT)"
397 $(_v)for obj in ${LIBOBJS}; do \
398 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
399 done > $(COMPONENT).libfilelist
400
401ifeq ($(RC_ProjectName),xnu_libraries)
402do_all: $(COMPONENT).libfilelist
403else
404do_all: $(COMPONENT).filelist
405endif
406
407do_build_all:: do_all
408
409# genassym.o actually is an assembly file,
410# we name it genassym.o to help with the automatic
411# dependency generation
412
413GENASSYM_LOCATION = $(CURRENT_ARCH_CONFIG_LC)
414
415ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64)
416GENASSYM_LOCATION = i386
417else ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
418GENASSYM_LOCATION = i386
419endif
420
421-include genassym.d
422genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
423genassym.o: $(SOURCE_DIR)/$(COMPONENT)/$(GENASSYM_LOCATION)/genassym.c
424 @$(LOG_GENASSYM) "$<"
425 $(_v)${GENASSYM_KCC} ${CFLAGS} ${CFLAGS_NOLTO_FLAG} -fno-integrated-as -MD -S -o ${@} ${INCFLAGS} $<
426
427assym.s: genassym.o
428 $(_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 > $@
429
430${SOBJS}: assym.s
431
432%RULES
433
434include $(MakeInc_rule)
435include $(MakeInc_dir)