]> git.saurik.com Git - apple/xnu.git/blob - osfmk/conf/Makefile.template
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.template
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
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
12
13 include $(MakeInc_cmd)
14 include $(MakeInc_def)
15
16 #
17 # XXX: CFLAGS
18 #
19 CFLAGS+= -include meta_features.h -DMACH_KERNEL_PRIVATE -DMACH_KERNEL
20 SFLAGS+= -include meta_features.h
21
22 ifeq ($(KSANCOV),1)
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)
28 endif
29
30 #
31 # XXX: INCFLAGS to include libsa prototypes
32 #
33 INCFLAGS_MAKEFILE= -I$(SOURCE)libsa
34
35 #
36 # Directories for mig generated files
37 #
38 COMP_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 #
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
87 # -Wno-cast-align
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 # -Wno-shorten-64-to-32
136 arm_vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
137 backtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
138 btlog.o_CFLAGS_ADD += -Wno-shorten-64-to-32
139 caches.o_CFLAGS_ADD += -Wno-shorten-64-to-32
140 callstack.o_CFLAGS_ADD += -Wno-shorten-64-to-32
141 clock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
142 clock_oldops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
143 iokit_rpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
144 ipc_kmsg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
145 ipc_pset.o_CFLAGS_ADD += -Wno-shorten-64-to-32
146 ipc_right.o_CFLAGS_ADD += -Wno-shorten-64-to-32
147 kdp_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
148 kdp_vm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
149 kern_cdata.o_CFLAGS_ADD += -Wno-shorten-64-to-32
150 kern_stackshot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
151 loose_ends.o_CFLAGS_ADD += -Wno-shorten-64-to-32
152 mach_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
153 machine_routines.o_CFLAGS_ADD += -Wno-shorten-64-to-32
154 mk_timer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
155 model_dep.o_CFLAGS_ADD += -Wno-shorten-64-to-32
156 pcb.o_CFLAGS_ADD += -Wno-shorten-64-to-32
157 pmap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
158 processor_core.o_CFLAGS_ADD += -Wno-shorten-64-to-32
159 rtclock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
160 status.o_CFLAGS_ADD += -Wno-shorten-64-to-32
161 telemetry.o_CFLAGS_ADD += -Wno-shorten-64-to-32
162 vm_init.o_CFLAGS_ADD += -Wno-shorten-64-to-32
163 vm_kern.o_CFLAGS_ADD += -Wno-shorten-64-to-32
164 vm_object.o_CFLAGS_ADD += -Wno-shorten-64-to-32
165 vm_shared_region_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
166 vm_swapfile_pager.o_CFLAGS_ADD += -Wno-shorten-64-to-32
167 vm_user.o_CFLAGS_ADD += -Wno-shorten-64-to-32
168 # -Wno-sign-conversion
169 Diagnostics.o_CFLAGS_ADD += -Wno-sign-conversion
170 acpi.o_CFLAGS_ADD += -Wno-sign-conversion
171 action.o_CFLAGS_ADD += -Wno-sign-conversion
172 affinity.o_CFLAGS_ADD += -Wno-sign-conversion
173 alternate_debugger.o_CFLAGS_ADD += -Wno-sign-conversion
174 arcade.o_CFLAGS_ADD += -Wno-sign-conversion
175 arm_init.o_CFLAGS_ADD += -Wno-sign-conversion
176 arm_timer.o_CFLAGS_ADD += -Wno-sign-conversion
177 arm_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
178 ast.o_CFLAGS_ADD += -Wno-sign-conversion
179 backtrace.o_CFLAGS_ADD += -Wno-sign-conversion
180 bank.o_CFLAGS_ADD += -Wno-sign-conversion
181 bitmap_test.o_CFLAGS_ADD += -Wno-sign-conversion
182 bsd_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
183 bsd_i386.o_CFLAGS_ADD += -Wno-sign-conversion
184 bsd_i386_native.o_CFLAGS_ADD += -Wno-sign-conversion
185 bsd_kern.o_CFLAGS_ADD += -Wno-sign-conversion
186 bsd_vm.o_CFLAGS_ADD += -Wno-sign-conversion
187 btlog.o_CFLAGS_ADD += -Wno-sign-conversion
188 caches.o_CFLAGS_ADD += -Wno-sign-conversion
189 callstack.o_CFLAGS_ADD += -Wno-sign-conversion
190 ccdrbg_nisthmac.o_CFLAGS_ADD += -Wno-sign-conversion
191 cchmac.o_CFLAGS_ADD += -Wno-sign-conversion
192 cchmac_final.o_CFLAGS_ADD += -Wno-sign-conversion
193 cchmac_init.o_CFLAGS_ADD += -Wno-sign-conversion
194 clock.o_CFLAGS_ADD += -Wno-sign-conversion
195 clock_oldops.o_CFLAGS_ADD += -Wno-sign-conversion
196 coalition.o_CFLAGS_ADD += -Wno-sign-conversion
197 commpage.o_CFLAGS_ADD += -Wno-sign-conversion
198 copyio.o_CFLAGS_ADD += -Wno-sign-conversion
199 corpse.o_CFLAGS_ADD += -Wno-sign-conversion
200 cpu.o_CFLAGS_ADD += -Wno-sign-conversion
201 cpu_common.o_CFLAGS_ADD += -Wno-sign-conversion
202 cpu_quiesce.o_CFLAGS_ADD += -Wno-sign-conversion
203 cpu_threads.o_CFLAGS_ADD += -Wno-sign-conversion
204 cpu_topology.o_CFLAGS_ADD += -Wno-sign-conversion
205 cpuid.o_CFLAGS_ADD += -Wno-sign-conversion
206 dbgwrap.o_CFLAGS_ADD += -Wno-sign-conversion
207 debug.o_CFLAGS_ADD += -Wno-sign-conversion
208 ecc_logging.o_CFLAGS_ADD += -Wno-sign-conversion
209 entropy.o_CFLAGS_ADD += -Wno-sign-conversion
210 exception.o_CFLAGS_ADD += -Wno-sign-conversion
211 fpu.o_CFLAGS_ADD += -Wno-sign-conversion
212 gzalloc.o_CFLAGS_ADD += -Wno-sign-conversion
213 host.o_CFLAGS_ADD += -Wno-sign-conversion
214 host_notify.o_CFLAGS_ADD += -Wno-sign-conversion
215 hv.o_CFLAGS_ADD += -Wno-sign-conversion
216 i386_init.o_CFLAGS_ADD += -Wno-sign-conversion
217 i386_timer.o_CFLAGS_ADD += -Wno-sign-conversion
218 i386_vm_init.o_CFLAGS_ADD += -Wno-sign-conversion
219 iokit_rpc.o_CFLAGS_ADD += -Wno-sign-conversion
220 ipc_eventlink.o_CFLAGS_ADD += -Wno-sign-conversion
221 ipc_host.o_CFLAGS_ADD += -Wno-sign-conversion
222 ipc_importance.o_CFLAGS_ADD += -Wno-sign-conversion
223 ipc_init.o_CFLAGS_ADD += -Wno-sign-conversion
224 ipc_kmsg.o_CFLAGS_ADD += -Wno-sign-conversion
225 ipc_kobject.o_CFLAGS_ADD += -Wno-sign-conversion
226 ipc_mqueue.o_CFLAGS_ADD += -Wno-sign-conversion
227 ipc_object.o_CFLAGS_ADD += -Wno-sign-conversion
228 ipc_port.o_CFLAGS_ADD += -Wno-sign-conversion
229 ipc_pset.o_CFLAGS_ADD += -Wno-sign-conversion
230 ipc_right.o_CFLAGS_ADD += -Wno-sign-conversion
231 ipc_space.o_CFLAGS_ADD += -Wno-sign-conversion
232 ipc_tt.o_CFLAGS_ADD += -Wno-sign-conversion
233 ipc_voucher.o_CFLAGS_ADD += -Wno-sign-conversion
234 kalloc.o_CFLAGS_ADD += -Wno-sign-conversion
235 kdp.o_CFLAGS_ADD += -Wno-sign-conversion
236 kdp_core.o_CFLAGS_ADD += -Wno-sign-conversion
237 kdp_machdep.o_CFLAGS_ADD += -Wno-sign-conversion
238 kdp_serial.o_CFLAGS_ADD += -Wno-sign-conversion
239 kdp_vm.o_CFLAGS_ADD += -Wno-sign-conversion
240 kern_monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
241 kern_stackshot.o_CFLAGS_ADD += -Wno-sign-conversion
242 kernel_tests.o_CFLAGS_ADD += -Wno-sign-conversion
243 kext_alloc.o_CFLAGS_ADD += -Wno-sign-conversion
244 kpc.o_CFLAGS_ADD += -Wno-sign-conversion
245 kpc_arm.o_CFLAGS_ADD += -Wno-sign-conversion
246 kpc_common.o_CFLAGS_ADD += -Wno-sign-conversion
247 kpc_x86.o_CFLAGS_ADD += -Wno-sign-conversion
248 kperf.o_CFLAGS_ADD += -Wno-sign-conversion
249 kperf_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
250 kperf_mp.o_CFLAGS_ADD += -Wno-sign-conversion
251 kperf_timer.o_CFLAGS_ADD += -Wno-sign-conversion
252 kperfbsd.o_CFLAGS_ADD += -Wno-sign-conversion
253 ktest_emit.o_CFLAGS_ADD += -Wno-sign-conversion
254 lapic_native.o_CFLAGS_ADD += -Wno-sign-conversion
255 lazy.o_CFLAGS_ADD += -Wno-sign-conversion
256 ledger.o_CFLAGS_ADD += -Wno-sign-conversion
257 locks.o_CFLAGS_ADD += -Wno-sign-conversion
258 locks_arm.o_CFLAGS_ADD += -Wno-sign-conversion
259 locks_i386.o_CFLAGS_ADD += -Wno-sign-conversion
260 locks_i386_opt.o_CFLAGS_ADD += -Wno-sign-conversion
261 loose_ends.o_CFLAGS_ADD += -Wno-sign-conversion
262 lowmem_vectors.o_CFLAGS_ADD += -Wno-sign-conversion
263 ltable.o_CFLAGS_ADD += -Wno-sign-conversion
264 lz4.o_CFLAGS_ADD += -Wno-sign-conversion
265 mach_debug.o_CFLAGS_ADD += -Wno-sign-conversion
266 mach_kernelrpc.o_CFLAGS_ADD += -Wno-sign-conversion
267 mach_port.o_CFLAGS_ADD += -Wno-sign-conversion
268 machdep_call.o_CFLAGS_ADD += -Wno-sign-conversion
269 machine.o_CFLAGS_ADD += -Wno-sign-conversion
270 machine_check.o_CFLAGS_ADD += -Wno-sign-conversion
271 machine_remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
272 machine_routines.o_CFLAGS_ADD += -Wno-sign-conversion
273 machine_routines_common.o_CFLAGS_ADD += -Wno-sign-conversion
274 machine_task.o_CFLAGS_ADD += -Wno-sign-conversion
275 meminfo.o_CFLAGS_ADD += -Wno-sign-conversion
276 memory_object.o_CFLAGS_ADD += -Wno-sign-conversion
277 mk_sp.o_CFLAGS_ADD += -Wno-sign-conversion
278 mk_timer.o_CFLAGS_ADD += -Wno-sign-conversion
279 model_dep.o_CFLAGS_ADD += -Wno-sign-conversion
280 monotonic_arm64.o_CFLAGS_ADD += -Wno-sign-conversion
281 monotonic_x86_64.o_CFLAGS_ADD += -Wno-sign-conversion
282 mp.o_CFLAGS_ADD += -Wno-sign-conversion
283 mp_desc.o_CFLAGS_ADD += -Wno-sign-conversion
284 mp_native.o_CFLAGS_ADD += -Wno-sign-conversion
285 mpsc_queue.o_CFLAGS_ADD += -Wno-sign-conversion
286 mtrr.o_CFLAGS_ADD += -Wno-sign-conversion
287 pal_routines.o_CFLAGS_ADD += -Wno-sign-conversion
288 pcb.o_CFLAGS_ADD += -Wno-sign-conversion
289 pcb_native.o_CFLAGS_ADD += -Wno-sign-conversion
290 pet.o_CFLAGS_ADD += -Wno-sign-conversion
291 platform_tests.o_CFLAGS_ADD += -Wno-sign-conversion
292 pmCPU.o_CFLAGS_ADD += -Wno-sign-conversion
293 pmap.o_CFLAGS_ADD += -Wno-sign-conversion
294 pmap_common.o_CFLAGS_ADD += -Wno-sign-conversion
295 pmap_pcid.o_CFLAGS_ADD += -Wno-sign-conversion
296 pmap_tests.o_CFLAGS_ADD += -Wno-sign-conversion
297 pmap_x86_common.o_CFLAGS_ADD += -Wno-sign-conversion
298 printf.o_CFLAGS_ADD += -Wno-sign-conversion
299 priority.o_CFLAGS_ADD += -Wno-sign-conversion
300 prng_random.o_CFLAGS_ADD += -Wno-sign-conversion
301 processor.o_CFLAGS_ADD += -Wno-sign-conversion
302 remote_time.o_CFLAGS_ADD += -Wno-sign-conversion
303 rtclock.o_CFLAGS_ADD += -Wno-sign-conversion
304 sart.o_CFLAGS_ADD += -Wno-sign-conversion
305 sched_amp.o_CFLAGS_ADD += -Wno-sign-conversion
306 sched_amp_common.o_CFLAGS_ADD += -Wno-sign-conversion
307 sched_average.o_CFLAGS_ADD += -Wno-sign-conversion
308 sched_clutch.o_CFLAGS_ADD += -Wno-sign-conversion
309 sched_dualq.o_CFLAGS_ADD += -Wno-sign-conversion
310 sched_multiq.o_CFLAGS_ADD += -Wno-sign-conversion
311 sched_prim.o_CFLAGS_ADD += -Wno-sign-conversion
312 sched_traditional.o_CFLAGS_ADD += -Wno-sign-conversion
313 serial_console.o_CFLAGS_ADD += -Wno-sign-conversion
314 serial_general.o_CFLAGS_ADD += -Wno-sign-conversion
315 sfi.o_CFLAGS_ADD += -Wno-sign-conversion
316 shart.o_CFLAGS_ADD += -Wno-sign-conversion
317 sleh.o_CFLAGS_ADD += -Wno-sign-conversion
318 stack.o_CFLAGS_ADD += -Wno-sign-conversion
319 startup.o_CFLAGS_ADD += -Wno-sign-conversion
320 status.o_CFLAGS_ADD += -Wno-sign-conversion
321 status_shared.o_CFLAGS_ADD += -Wno-sign-conversion
322 subrs.o_CFLAGS_ADD += -Wno-sign-conversion
323 sync_sema.o_CFLAGS_ADD += -Wno-sign-conversion
324 syscall_subr.o_CFLAGS_ADD += -Wno-sign-conversion
325 t8020dart.o_CFLAGS_ADD += -Wno-sign-conversion
326 task.o_CFLAGS_ADD += -Wno-sign-conversion
327 task_policy.o_CFLAGS_ADD += -Wno-sign-conversion
328 telemetry.o_CFLAGS_ADD += -Wno-sign-conversion
329 test_lock.o_CFLAGS_ADD += -Wno-sign-conversion
330 test_thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
331 thread_call.o_CFLAGS_ADD += -Wno-sign-conversion
332 thread_group.o_CFLAGS_ADD += -Wno-sign-conversion
333 thread_policy.o_CFLAGS_ADD += -Wno-sign-conversion
334 timer_call.o_CFLAGS_ADD += -Wno-sign-conversion
335 trap.o_CFLAGS_ADD += -Wno-sign-conversion
336 trustcache.o_CFLAGS_ADD += -Wno-sign-conversion
337 turnstile.o_CFLAGS_ADD += -Wno-sign-conversion
338 uat.o_CFLAGS_ADD += -Wno-sign-conversion
339 ucode.o_CFLAGS_ADD += -Wno-sign-conversion
340 ux_handler.o_CFLAGS_ADD += -Wno-sign-conversion
341 vfp_state_test.o_CFLAGS_ADD += -Wno-sign-conversion
342 video_console.o_CFLAGS_ADD += -Wno-sign-conversion
343 video_scroll.o_CFLAGS_ADD += -Wno-sign-conversion
344 vm32_user.o_CFLAGS_ADD += -Wno-sign-conversion
345 vm_compressor.o_CFLAGS_ADD += -Wno-sign-conversion
346 vm_compressor_algorithms.o_CFLAGS_ADD += -Wno-sign-conversion
347 vm_compressor_backing_store.o_CFLAGS_ADD += -Wno-sign-conversion
348 vm_compressor_pager.o_CFLAGS_ADD += -Wno-sign-conversion
349 vm_fault.o_CFLAGS_ADD += -Wno-sign-conversion
350 vm_fourk_pager.o_CFLAGS_ADD += -Wno-sign-conversion
351 vm_kern.o_CFLAGS_ADD += -Wno-sign-conversion
352 vm_map.o_CFLAGS_ADD += -Wno-sign-conversion
353 vm_map_store_ll.o_CFLAGS_ADD += -Wno-sign-conversion
354 vm_map_store_rb.o_CFLAGS_ADD += -Wno-sign-conversion
355 vm_object.o_CFLAGS_ADD += -Wno-sign-conversion
356 vm_pageout.o_CFLAGS_ADD += -Wno-sign-conversion
357 vm_phantom_cache.o_CFLAGS_ADD += -Wno-sign-conversion
358 vm_purgeable.o_CFLAGS_ADD += -Wno-sign-conversion
359 vm_resident.o_CFLAGS_ADD += -Wno-sign-conversion
360 vm_shared_region.o_CFLAGS_ADD += -Wno-sign-conversion
361 vm_user.o_CFLAGS_ADD += -Wno-sign-conversion
362 vmx_cpu.o_CFLAGS_ADD += -Wno-sign-conversion
363 waitq.o_CFLAGS_ADD += -Wno-sign-conversion
364 work_interval.o_CFLAGS_ADD += -Wno-sign-conversion
365 xcpm_dvfs.o_CFLAGS_ADD += -Wno-sign-conversion
366 xcpm_fi.o_CFLAGS_ADD += -Wno-sign-conversion
367 xcpm_idle.o_CFLAGS_ADD += -Wno-sign-conversion
368 xcpm_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
401 ifeq ($(RC_ProjectName),xnu_libraries)
402 do_all: $(COMPONENT).libfilelist
403 else
404 do_all: $(COMPONENT).filelist
405 endif
406
407 do_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
413 GENASSYM_LOCATION = $(CURRENT_ARCH_CONFIG_LC)
414
415 ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64)
416 GENASSYM_LOCATION = i386
417 else ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
418 GENASSYM_LOCATION = i386
419 endif
420
421 -include genassym.d
422 genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
423 genassym.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
427 assym.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
434 include $(MakeInc_rule)
435 include $(MakeInc_dir)