2 # Copyright (c) 2000-2020 Apple Inc. All rights reserved.
4 # @APPLE_LICENSE_HEADER_START@
6 # The contents of this file constitute Original Code as defined in and
7 # are subject to the Apple Public Source License Version 1.1 (the
8 # "License"). You may not use this file except in compliance with the
9 # License. Please obtain a copy of the License at
10 # http://www.apple.com/publicsource and read it before using this file.
12 # This Original Code and all software distributed under the License are
13 # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 # License for the specific language governing rights and limitations
20 # @APPLE_LICENSE_HEADER_END@
24 # Mach Operating System
25 # Copyright (c) 1986 Carnegie-Mellon University
26 # All rights reserved. The CMU software License Agreement specifies
27 # the terms and conditions for use and redistribution.
30 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
31 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
32 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
33 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
35 include $(MakeInc_cmd)
36 include $(MakeInc_def)
41 CFLAGS+= -include meta_features.h -DDRIVER_PRIVATE \
42 -D_KERNEL_BUILD -DKERNEL_BUILD -DMACH_KERNEL -DBSD_BUILD \
43 -DBSD_KERNEL_PRIVATE -DLP64_DEBUG=0 \
44 -Warray-bounds-pointer-arithmetic
45 SFLAGS+= -include meta_features.h
48 # Directories for mig generated files
53 # Make sure we don't remove this by accident if interrupted at the wrong
59 # Theses macros are filled in by the config program depending on the
60 # current configuration. The MACHDEP macro is replaced by the
61 # contents of the machine dependent makefile template and the others
62 # are replaced by the corresponding symbol definitions for the
76 tcp_cubic.o_CFLAGS_ADD += -Wno-error=implicit-int-float-conversion
79 # Diagnostic opt-outs. We need to make this list empty.
81 # DO NOT ADD MORE HERE.
83 # -Wno-address-of-packed-member
84 ah_core.o_CFLAGS_ADD += -Wno-address-of-packed-member
85 ah_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
86 dlil.o_CFLAGS_ADD += -Wno-address-of-packed-member
87 esp_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
88 esp_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
89 frag6.o_CFLAGS_ADD += -Wno-address-of-packed-member
90 icmp6.o_CFLAGS_ADD += -Wno-address-of-packed-member
91 if_stf.o_CFLAGS_ADD += -Wno-address-of-packed-member
92 in6_cksum.o_CFLAGS_ADD += -Wno-address-of-packed-member
93 in6_gif.o_CFLAGS_ADD += -Wno-address-of-packed-member
94 ip6_forward.o_CFLAGS_ADD += -Wno-address-of-packed-member
95 ip6_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
96 ip6_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
97 ipsec.o_CFLAGS_ADD += -Wno-address-of-packed-member
98 iptap.o_CFLAGS_ADD += -Wno-address-of-packed-member
99 mld6.o_CFLAGS_ADD += -Wno-address-of-packed-member
100 mptcp_opt.o_CFLAGS_ADD += -Wno-address-of-packed-member
101 nd6.o_CFLAGS_ADD += -Wno-address-of-packed-member
102 nd6_nbr.o_CFLAGS_ADD += -Wno-address-of-packed-member
103 nd6_prproxy.o_CFLAGS_ADD += -Wno-address-of-packed-member
104 nd6_rtr.o_CFLAGS_ADD += -Wno-address-of-packed-member
105 necp.o_CFLAGS_ADD += -Wno-address-of-packed-member
106 packet_mangler.o_CFLAGS_ADD += -Wno-address-of-packed-member
107 pf_norm.o_CFLAGS_ADD += -Wno-address-of-packed-member
108 pktap.o_CFLAGS_ADD += -Wno-address-of-packed-member
109 raw_ip6.o_CFLAGS_ADD += -Wno-address-of-packed-member
110 sixxlowpan.o_CFLAGS_ADD += -Wno-address-of-packed-member
111 tcp_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
112 tcp_subr.o_CFLAGS_ADD += -Wno-address-of-packed-member
113 udp6_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
114 udp6_usrreq.o_CFLAGS_ADD += -Wno-address-of-packed-member
115 udp_usrreq.o_CFLAGS_ADD += -Wno-address-of-packed-member
117 audit_bsm_token.o_CFLAGS_ADD += -Wno-cast-align
118 audit_pipe.o_CFLAGS_ADD += -Wno-cast-align
119 audit_session.o_CFLAGS_ADD += -Wno-cast-align
120 bind_vnops.o_CFLAGS_ADD += -Wno-cast-align
121 dtrace.o_CFLAGS_ADD += -Wno-cast-align
122 fasttrap.o_CFLAGS_ADD += -Wno-cast-align
123 fasttrap_isa.o_CFLAGS_ADD += -Wno-cast-align
124 fbt.o_CFLAGS_ADD += -Wno-cast-align
125 fbt_arm.o_CFLAGS_ADD += -Wno-cast-align
126 fbt_x86.o_CFLAGS_ADD += -Wno-cast-align
127 if_bond.o_CFLAGS_ADD += -Wno-cast-align
128 ip_dummynet.o_CFLAGS_ADD += -Wno-cast-align
129 kern_credential.o_CFLAGS_ADD += -Wno-cast-align
130 kern_descrip.o_CFLAGS_ADD += -Wno-cast-align
131 kern_event.o_CFLAGS_ADD += -Wno-cast-align
132 kern_exec.o_CFLAGS_ADD += -Wno-cast-align
133 kern_guarded.o_CFLAGS_ADD += -Wno-cast-align
134 kern_lockf.o_CFLAGS_ADD += -Wno-cast-align
135 kern_subr.o_CFLAGS_ADD += -Wno-cast-align
136 km.o_CFLAGS_ADD += -Wno-cast-align
137 mach_loader.o_CFLAGS_ADD += -Wno-cast-align
138 memdev.o_CFLAGS_ADD += -Wno-cast-align
139 munge.o_CFLAGS_ADD += -Wno-cast-align
140 nfs4_subs.o_CFLAGS_ADD += -Wno-cast-align
141 nfs4_vnops.o_CFLAGS_ADD += -Wno-cast-align
142 nfs_boot.o_CFLAGS_ADD += -Wno-cast-align
143 nfs_gss.o_CFLAGS_ADD += -Wno-cast-align
144 nfs_serv.o_CFLAGS_ADD += -Wno-cast-align
145 nfs_socket.o_CFLAGS_ADD += -Wno-cast-align
146 nfs_srvcache.o_CFLAGS_ADD += -Wno-cast-align
147 nfs_subs.o_CFLAGS_ADD += -Wno-cast-align
148 nfs_syscalls.o_CFLAGS_ADD += -Wno-cast-align
149 nfs_vfsops.o_CFLAGS_ADD += -Wno-cast-align
150 nfs_vnops.o_CFLAGS_ADD += -Wno-cast-align
151 proc_info.o_CFLAGS_ADD += -Wno-cast-align
152 qsort.o_CFLAGS_ADD += -Wno-cast-align
153 sdt.o_CFLAGS_ADD += -Wno-cast-align
154 sdt_arm.o_CFLAGS_ADD += -Wno-cast-align
155 shadow.o_CFLAGS_ADD += -Wno-cast-align
156 spec_vnops.o_CFLAGS_ADD += -Wno-cast-align
157 subr_log.o_CFLAGS_ADD += -Wno-cast-align
158 sys_generic.o_CFLAGS_ADD += -Wno-cast-align
159 sys_pipe.o_CFLAGS_ADD += -Wno-cast-align
160 systemcalls.o_CFLAGS_ADD += -Wno-cast-align
161 systrace.o_CFLAGS_ADD += -Wno-cast-align
162 tty.o_CFLAGS_ADD += -Wno-cast-align
163 tty_compat.o_CFLAGS_ADD += -Wno-cast-align
164 tty_dev.o_CFLAGS_ADD += -Wno-cast-align
165 ubc_subr.o_CFLAGS_ADD += -Wno-cast-align
166 uipc_mbuf.o_CFLAGS_ADD += -Wno-cast-align
167 uipc_usrreq.o_CFLAGS_ADD += -Wno-cast-align
168 vfs_attrlist.o_CFLAGS_ADD += -Wno-cast-align
169 vfs_fsevents.o_CFLAGS_ADD += -Wno-cast-align
170 vfs_syscalls.o_CFLAGS_ADD += -Wno-cast-align
171 vfs_utfconv.o_CFLAGS_ADD += -Wno-cast-align
172 vfs_vnops.o_CFLAGS_ADD += -Wno-cast-align
173 vfs_xattr.o_CFLAGS_ADD += -Wno-cast-align
174 vn.o_CFLAGS_ADD += -Wno-cast-align
176 dis_tables.o_CFLAGS_ADD += -Wno-cast-qual
178 dlil.o_CFLAGS_ADD += -Wno-format
179 in_rmx.o_CFLAGS_ADD += -Wno-format
180 in6_rmx.o_CFLAGS_ADD += -Wno-format
181 route.o_CFLAGS_ADD += -Wno-format
182 # -Wno-format-extra-args
183 dlil.o_CFLAGS_ADD += -Wno-format-extra-args
184 kpi_interface.o_CFLAGS_ADD += -Wno-format-extra-args
185 in_rmx.o_CFLAGS_ADD += -Wno-format-extra-args
186 in6_rmx.o_CFLAGS_ADD += -Wno-format-extra-args
187 route.o_CFLAGS_ADD += -Wno-format-extra-args
188 # -Wno-format-invalid-specifier
189 dlil.o_CFLAGS_ADD += -Wno-format-invalid-specifier
190 in_rmx.o_CFLAGS_ADD += -Wno-format-invalid-specifier
191 in6_rmx.o_CFLAGS_ADD += -Wno-format-invalid-specifier
192 kpi_interface.o_CFLAGS_ADD += -Wno-format-invalid-specifier
193 route.o_CFLAGS_ADD += -Wno-format-invalid-specifier
194 # -Wno-implicit-int-conversion
195 audit.o_CFLAGS_ADD += -Wno-implicit-int-conversion
196 audit_bsm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
197 audit_bsm_errno.o_CFLAGS_ADD += -Wno-implicit-int-conversion
198 audit_bsm_token.o_CFLAGS_ADD += -Wno-implicit-int-conversion
199 audit_worker.o_CFLAGS_ADD += -Wno-implicit-int-conversion
200 bpf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
201 content_filter.o_CFLAGS_ADD += -Wno-implicit-int-conversion
202 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-implicit-int-conversion
203 devfs_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
204 dis_tables.o_CFLAGS_ADD += -Wno-implicit-int-conversion
205 dtrace.o_CFLAGS_ADD += -Wno-implicit-int-conversion
206 fasttrap.o_CFLAGS_ADD += -Wno-implicit-int-conversion
207 fasttrap_isa.o_CFLAGS_ADD += -Wno-implicit-int-conversion
208 fbt_arm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
209 flow_agg.o_CFLAGS_ADD += -Wno-implicit-int-conversion
210 flowadv.o_CFLAGS_ADD += -Wno-implicit-int-conversion
211 gss_krb5_mech.o_CFLAGS_ADD += -Wno-implicit-int-conversion
212 if.o_CFLAGS_ADD += -Wno-implicit-int-conversion
213 if_bond.o_CFLAGS_ADD += -Wno-implicit-int-conversion
214 if_bridge.o_CFLAGS_ADD += -Wno-implicit-int-conversion
215 if_fake.o_CFLAGS_ADD += -Wno-implicit-int-conversion
216 if_ipsec.o_CFLAGS_ADD += -Wno-implicit-int-conversion
217 if_stf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
218 if_utun.o_CFLAGS_ADD += -Wno-implicit-int-conversion
219 if_vlan.o_CFLAGS_ADD += -Wno-implicit-int-conversion
220 in6.o_CFLAGS_ADD += -Wno-implicit-int-conversion
221 in6_gif.o_CFLAGS_ADD += -Wno-implicit-int-conversion
222 in6_pcb.o_CFLAGS_ADD += -Wno-implicit-int-conversion
223 in_gif.o_CFLAGS_ADD += -Wno-implicit-int-conversion
224 ip_input.o_CFLAGS_ADD += -Wno-implicit-int-conversion
225 km.o_CFLAGS_ADD += -Wno-implicit-int-conversion
226 kpi_mbuf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
227 necp.o_CFLAGS_ADD += -Wno-implicit-int-conversion
228 network_agent.o_CFLAGS_ADD += -Wno-implicit-int-conversion
229 nfs4_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
230 nfs_boot.o_CFLAGS_ADD += -Wno-implicit-int-conversion
231 nfs_gss.o_CFLAGS_ADD += -Wno-implicit-int-conversion
232 nfs_node.o_CFLAGS_ADD += -Wno-implicit-int-conversion
233 nfs_socket.o_CFLAGS_ADD += -Wno-implicit-int-conversion
234 nfs_subs.o_CFLAGS_ADD += -Wno-implicit-int-conversion
235 nfs_syscalls.o_CFLAGS_ADD += -Wno-implicit-int-conversion
236 nfs_vfsops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
237 nfs_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
238 ntstat.o_CFLAGS_ADD += -Wno-implicit-int-conversion
239 null_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
240 pf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
241 pf_norm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
242 radix.o_CFLAGS_ADD += -Wno-implicit-int-conversion
243 route.o_CFLAGS_ADD += -Wno-implicit-int-conversion
244 shadow.o_CFLAGS_ADD += -Wno-implicit-int-conversion
245 skpc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
246 spec_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
247 systemcalls.o_CFLAGS_ADD += -Wno-implicit-int-conversion
248 systrace.o_CFLAGS_ADD += -Wno-implicit-int-conversion
249 sysv_msg.o_CFLAGS_ADD += -Wno-implicit-int-conversion
250 sysv_sem.o_CFLAGS_ADD += -Wno-implicit-int-conversion
251 tcp_input.o_CFLAGS_ADD += -Wno-implicit-int-conversion
252 uipc_mbuf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
253 uipc_socket.o_CFLAGS_ADD += -Wno-implicit-int-conversion
254 vfs_quota.o_CFLAGS_ADD += -Wno-implicit-int-conversion
255 vsock_domain.o_CFLAGS_ADD += -Wno-implicit-int-conversion
256 # -Wno-shorten-64-to-32
257 audit_bsm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
258 audit_bsm_token.o_CFLAGS_ADD += -Wno-shorten-64-to-32
259 audit_pipe.o_CFLAGS_ADD += -Wno-shorten-64-to-32
260 audit_session.o_CFLAGS_ADD += -Wno-shorten-64-to-32
261 audit_syscalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
262 audit_worker.o_CFLAGS_ADD += -Wno-shorten-64-to-32
263 bind_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
264 bpf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
265 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-shorten-64-to-32
266 devfs_tree.o_CFLAGS_ADD += -Wno-shorten-64-to-32
267 devfs_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
268 devtimer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
269 dis_tables.o_CFLAGS_ADD += -Wno-shorten-64-to-32
270 doc_tombstone.o_CFLAGS_ADD += -Wno-shorten-64-to-32
271 dtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
272 dtrace_ptss.o_CFLAGS_ADD += -Wno-shorten-64-to-32
273 esp_chachapoly.o_CFLAGS_ADD += -Wno-shorten-64-to-32
274 fasttrap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
275 fasttrap_isa.o_CFLAGS_ADD += -Wno-shorten-64-to-32
276 gss_krb5_mech.o_CFLAGS_ADD += -Wno-shorten-64-to-32
277 if.o_CFLAGS_ADD += -Wno-shorten-64-to-32
278 if_bond.o_CFLAGS_ADD += -Wno-shorten-64-to-32
279 if_bridge.o_CFLAGS_ADD += -Wno-shorten-64-to-32
280 if_fake.o_CFLAGS_ADD += -Wno-shorten-64-to-32
281 if_gif.o_CFLAGS_ADD += -Wno-shorten-64-to-32
282 if_ipsec.o_CFLAGS_ADD += -Wno-shorten-64-to-32
283 if_stf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
284 if_utun.o_CFLAGS_ADD += -Wno-shorten-64-to-32
285 if_vlan.o_CFLAGS_ADD += -Wno-shorten-64-to-32
286 in6.o_CFLAGS_ADD += -Wno-shorten-64-to-32
287 in6_rmx.o_CFLAGS_ADD += -Wno-shorten-64-to-32
288 in_rmx.o_CFLAGS_ADD += -Wno-shorten-64-to-32
289 ip_dummynet.o_CFLAGS_ADD += -Wno-shorten-64-to-32
290 ip_input.o_CFLAGS_ADD += -Wno-shorten-64-to-32
291 iptap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
292 kern_fork.o_CFLAGS_ADD += -Wno-shorten-64-to-32
293 kern_malloc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
294 kern_overrides.o_CFLAGS_ADD += -Wno-shorten-64-to-32
296 kpi_mbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
297 krpc_subr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
298 lockprof.o_CFLAGS_ADD += -Wno-shorten-64-to-32
299 mem.o_CFLAGS_ADD += -Wno-shorten-64-to-32
300 memdev.o_CFLAGS_ADD += -Wno-shorten-64-to-32
301 nd6_rtr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
302 necp.o_CFLAGS_ADD += -Wno-shorten-64-to-32
303 necp_client.o_CFLAGS_ADD += -Wno-shorten-64-to-32
304 network_agent.o_CFLAGS_ADD += -Wno-shorten-64-to-32
305 nfs4_subs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
306 nfs4_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
307 nfs_bio.o_CFLAGS_ADD += -Wno-shorten-64-to-32
308 nfs_boot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
309 nfs_gss.o_CFLAGS_ADD += -Wno-shorten-64-to-32
310 nfs_lock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
311 nfs_node.o_CFLAGS_ADD += -Wno-shorten-64-to-32
312 nfs_serv.o_CFLAGS_ADD += -Wno-shorten-64-to-32
313 nfs_socket.o_CFLAGS_ADD += -Wno-shorten-64-to-32
314 nfs_subs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
315 nfs_syscalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
316 nfs_vfsops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
317 nfs_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
318 ntstat.o_CFLAGS_ADD += -Wno-shorten-64-to-32
319 null_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
320 pf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
321 pf_norm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
322 pf_pbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
323 profile_prvd.o_CFLAGS_ADD += -Wno-shorten-64-to-32
324 profile_runtime.o_CFLAGS_ADD += -Wno-shorten-64-to-32
325 radix.o_CFLAGS_ADD += -Wno-shorten-64-to-32
326 route.o_CFLAGS_ADD += -Wno-shorten-64-to-32
327 sdt.o_CFLAGS_ADD += -Wno-shorten-64-to-32
328 shadow.o_CFLAGS_ADD += -Wno-shorten-64-to-32
329 skpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
330 spec_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
331 stubs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
332 systemcalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
333 sysv_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
334 sysv_sem.o_CFLAGS_ADD += -Wno-shorten-64-to-32
335 sysv_shm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
336 tcp_input.o_CFLAGS_ADD += -Wno-shorten-64-to-32
337 uipc_mbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
338 uipc_socket.o_CFLAGS_ADD += -Wno-shorten-64-to-32
339 unix_signal.o_CFLAGS_ADD += -Wno-shorten-64-to-32
340 ux_exception.o_CFLAGS_ADD += -Wno-shorten-64-to-32
341 vfs_cluster.o_CFLAGS_ADD += -Wno-shorten-64-to-32
342 vfs_quota.o_CFLAGS_ADD += -Wno-shorten-64-to-32
343 vfs_subr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
344 vfs_support.o_CFLAGS_ADD += -Wno-shorten-64-to-32
345 vn.o_CFLAGS_ADD += -Wno-shorten-64-to-32
346 xcpm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
348 dest6.o_CFLAGS_ADD += -Wno-sign-compare
349 dhcp_options.o_CFLAGS_ADD += -Wno-sign-compare
350 esp_chachapoly.o_CFLAGS_ADD += -Wno-sign-compare
351 frag6.o_CFLAGS_ADD += -Wno-sign-compare
352 in6.o_CFLAGS_ADD += -Wno-sign-compare
353 in6_cksum.o_CFLAGS_ADD += -Wno-sign-compare
354 in6_proto.o_CFLAGS_ADD += -Wno-sign-compare
355 ip_dummynet.o_CFLAGS_ADD += -Wno-sign-compare
356 ip_input.o_CFLAGS_ADD += -Wno-sign-compare
357 radix.o_CFLAGS_ADD += -Wno-sign-compare
358 route.o_CFLAGS_ADD += -Wno-sign-compare
359 route6.o_CFLAGS_ADD += -Wno-sign-compare
360 scope6.o_CFLAGS_ADD += -Wno-sign-compare
361 tcp_input.o_CFLAGS_ADD += -Wno-sign-compare
362 uipc_mbuf.o_CFLAGS_ADD += -Wno-sign-compare
363 uipc_socket.o_CFLAGS_ADD += -Wno-sign-compare
364 # -Wno-sign-conversion
365 audit.o_CFLAGS_ADD += -Wno-sign-conversion
366 audit_arg.o_CFLAGS_ADD += -Wno-sign-conversion
367 audit_bsd.o_CFLAGS_ADD += -Wno-sign-conversion
368 audit_bsm.o_CFLAGS_ADD += -Wno-sign-conversion
369 audit_bsm_klib.o_CFLAGS_ADD += -Wno-sign-conversion
370 audit_bsm_token.o_CFLAGS_ADD += -Wno-sign-conversion
371 audit_mac.o_CFLAGS_ADD += -Wno-sign-conversion
372 audit_pipe.o_CFLAGS_ADD += -Wno-sign-conversion
373 audit_session.o_CFLAGS_ADD += -Wno-sign-conversion
374 audit_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
375 audit_worker.o_CFLAGS_ADD += -Wno-sign-conversion
376 bind_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
377 bind_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
378 blist.o_CFLAGS_ADD += -Wno-sign-conversion
379 bpf.o_CFLAGS_ADD += -Wno-sign-conversion
380 bsd_init.o_CFLAGS_ADD += -Wno-sign-conversion
381 bsd_stubs.o_CFLAGS_ADD += -Wno-sign-conversion
382 cbrtf.o_CFLAGS_ADD += -Wno-sign-conversion
383 chunklist.o_CFLAGS_ADD += -Wno-sign-conversion
384 content_filter.o_CFLAGS_ADD += -Wno-sign-conversion
385 cpu_in_cksum_gen.o_CFLAGS_ADD += -Wno-sign-conversion
386 cuckoo_hashtable_test.o_CFLAGS_ADD += -Wno-sign-conversion
387 decmpfs.o_CFLAGS_ADD += -Wno-sign-conversion
388 dest6.o_CFLAGS_ADD += -Wno-sign-conversion
389 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-sign-conversion
390 devfs_tree.o_CFLAGS_ADD += -Wno-sign-conversion
391 devfs_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
392 devfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
393 devtimer.o_CFLAGS_ADD += -Wno-sign-conversion
394 dhcp_options.o_CFLAGS_ADD += -Wno-sign-conversion
395 dis_tables.o_CFLAGS_ADD += -Wno-sign-conversion
396 disassembler.o_CFLAGS_ADD += -Wno-sign-conversion
397 doc_tombstone.o_CFLAGS_ADD += -Wno-sign-conversion
398 dtrace.o_CFLAGS_ADD += -Wno-sign-conversion
399 dtrace_glue.o_CFLAGS_ADD += -Wno-sign-conversion
400 dtrace_isa.o_CFLAGS_ADD += -Wno-sign-conversion
401 dtrace_ptss.o_CFLAGS_ADD += -Wno-sign-conversion
402 dtrace_subr.o_CFLAGS_ADD += -Wno-sign-conversion
403 dtrace_subr_arm.o_CFLAGS_ADD += -Wno-sign-conversion
404 ether_if_module.o_CFLAGS_ADD += -Wno-sign-conversion
405 ether_inet6_pr_module.o_CFLAGS_ADD += -Wno-sign-conversion
406 ether_inet_pr_module.o_CFLAGS_ADD += -Wno-sign-conversion
407 fasttrap.o_CFLAGS_ADD += -Wno-sign-conversion
408 fasttrap_isa.o_CFLAGS_ADD += -Wno-sign-conversion
409 fbt.o_CFLAGS_ADD += -Wno-sign-conversion
410 fbt_arm.o_CFLAGS_ADD += -Wno-sign-conversion
411 fbt_x86.o_CFLAGS_ADD += -Wno-sign-conversion
412 fifo_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
413 flowhash.o_CFLAGS_ADD += -Wno-sign-conversion
414 frag6.o_CFLAGS_ADD += -Wno-sign-conversion
415 gss_krb5_mech.o_CFLAGS_ADD += -Wno-sign-conversion
416 if.o_CFLAGS_ADD += -Wno-sign-conversion
417 if_bond.o_CFLAGS_ADD += -Wno-sign-conversion
418 if_bridge.o_CFLAGS_ADD += -Wno-sign-conversion
419 if_fake.o_CFLAGS_ADD += -Wno-sign-conversion
420 if_gif.o_CFLAGS_ADD += -Wno-sign-conversion
421 if_ipsec.o_CFLAGS_ADD += -Wno-sign-conversion
422 if_llatbl.o_CFLAGS_ADD += -Wno-sign-conversion
423 if_loop.o_CFLAGS_ADD += -Wno-sign-conversion
424 if_low_power_mode.o_CFLAGS_ADD += -Wno-sign-conversion
425 if_pflog.o_CFLAGS_ADD += -Wno-sign-conversion
426 if_stf.o_CFLAGS_ADD += -Wno-sign-conversion
427 if_utun.o_CFLAGS_ADD += -Wno-sign-conversion
428 if_vlan.o_CFLAGS_ADD += -Wno-sign-conversion
429 imageboot.o_CFLAGS_ADD += -Wno-sign-conversion
430 in6.o_CFLAGS_ADD += -Wno-sign-conversion
431 in6_cga.o_CFLAGS_ADD += -Wno-sign-conversion
432 in6_cksum.o_CFLAGS_ADD += -Wno-sign-conversion
433 in6_gif.o_CFLAGS_ADD += -Wno-sign-conversion
434 in6_pcb.o_CFLAGS_ADD += -Wno-sign-conversion
435 in6_proto.o_CFLAGS_ADD += -Wno-sign-conversion
436 in6_rmx.o_CFLAGS_ADD += -Wno-sign-conversion
437 in_gif.o_CFLAGS_ADD += -Wno-sign-conversion
438 in_rmx.o_CFLAGS_ADD += -Wno-sign-conversion
439 instr_size.o_CFLAGS_ADD += -Wno-sign-conversion
440 ip6_forward.o_CFLAGS_ADD += -Wno-sign-conversion
441 ip6_id.o_CFLAGS_ADD += -Wno-sign-conversion
442 ip_dummynet.o_CFLAGS_ADD += -Wno-sign-conversion
443 ip_input.o_CFLAGS_ADD += -Wno-sign-conversion
444 iptap.o_CFLAGS_ADD += -Wno-sign-conversion
445 kern_acct.o_CFLAGS_ADD += -Wno-sign-conversion
446 kern_authorization.o_CFLAGS_ADD += -Wno-sign-conversion
447 kern_clock.o_CFLAGS_ADD += -Wno-sign-conversion
448 kern_control.o_CFLAGS_ADD += -Wno-sign-conversion
449 kern_core.o_CFLAGS_ADD += -Wno-sign-conversion
450 kern_credential.o_CFLAGS_ADD += -Wno-sign-conversion
451 kern_cs.o_CFLAGS_ADD += -Wno-sign-conversion
452 kern_descrip.o_CFLAGS_ADD += -Wno-sign-conversion
453 kern_event.o_CFLAGS_ADD += -Wno-sign-conversion
454 kern_exit.o_CFLAGS_ADD += -Wno-sign-conversion
455 kern_fork.o_CFLAGS_ADD += -Wno-sign-conversion
456 kern_guarded.o_CFLAGS_ADD += -Wno-sign-conversion
457 kern_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
458 kern_lockf.o_CFLAGS_ADD += -Wno-sign-conversion
459 kern_malloc.o_CFLAGS_ADD += -Wno-sign-conversion
460 kern_memorystatus.o_CFLAGS_ADD += -Wno-sign-conversion
461 kern_memorystatus_freeze.o_CFLAGS_ADD += -Wno-sign-conversion
462 kern_memorystatus_notify.o_CFLAGS_ADD += -Wno-sign-conversion
463 kern_mib.o_CFLAGS_ADD += -Wno-sign-conversion
464 kern_mman.o_CFLAGS_ADD += -Wno-sign-conversion
465 kern_ntptime.o_CFLAGS_ADD += -Wno-sign-conversion
466 kern_overrides.o_CFLAGS_ADD += -Wno-sign-conversion
467 kern_persona.o_CFLAGS_ADD += -Wno-sign-conversion
468 kern_physio.o_CFLAGS_ADD += -Wno-sign-conversion
469 kern_proc.o_CFLAGS_ADD += -Wno-sign-conversion
470 kern_prot.o_CFLAGS_ADD += -Wno-sign-conversion
471 kern_resource.o_CFLAGS_ADD += -Wno-sign-conversion
472 kern_shutdown.o_CFLAGS_ADD += -Wno-sign-conversion
473 kern_sig.o_CFLAGS_ADD += -Wno-sign-conversion
474 kern_subr.o_CFLAGS_ADD += -Wno-sign-conversion
475 kern_symfile.o_CFLAGS_ADD += -Wno-sign-conversion
476 kern_synch.o_CFLAGS_ADD += -Wno-sign-conversion
477 kern_time.o_CFLAGS_ADD += -Wno-sign-conversion
478 km.o_CFLAGS_ADD += -Wno-sign-conversion
479 kpi_mbuf.o_CFLAGS_ADD += -Wno-sign-conversion
480 kpi_protocol.o_CFLAGS_ADD += -Wno-sign-conversion
481 kpi_socketfilter.o_CFLAGS_ADD += -Wno-sign-conversion
482 kpi_vfs.o_CFLAGS_ADD += -Wno-sign-conversion
483 krpc_subr.o_CFLAGS_ADD += -Wno-sign-conversion
484 lockprof.o_CFLAGS_ADD += -Wno-sign-conversion
485 mach_loader.o_CFLAGS_ADD += -Wno-sign-conversion
486 mach_process.o_CFLAGS_ADD += -Wno-sign-conversion
487 mem.o_CFLAGS_ADD += -Wno-sign-conversion
488 memdev.o_CFLAGS_ADD += -Wno-sign-conversion
489 monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
490 munge.o_CFLAGS_ADD += -Wno-sign-conversion
491 nd6_prproxy.o_CFLAGS_ADD += -Wno-sign-conversion
492 nd6_send.o_CFLAGS_ADD += -Wno-sign-conversion
493 necp.o_CFLAGS_ADD += -Wno-sign-conversion
494 necp_client.o_CFLAGS_ADD += -Wno-sign-conversion
495 netboot.o_CFLAGS_ADD += -Wno-sign-conversion
496 network_agent.o_CFLAGS_ADD += -Wno-sign-conversion
497 nfs4_subs.o_CFLAGS_ADD += -Wno-sign-conversion
498 nfs4_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
499 nfs_bio.o_CFLAGS_ADD += -Wno-sign-conversion
500 nfs_boot.o_CFLAGS_ADD += -Wno-sign-conversion
501 nfs_gss.o_CFLAGS_ADD += -Wno-sign-conversion
502 nfs_lock.o_CFLAGS_ADD += -Wno-sign-conversion
503 nfs_node.o_CFLAGS_ADD += -Wno-sign-conversion
504 nfs_serv.o_CFLAGS_ADD += -Wno-sign-conversion
505 nfs_socket.o_CFLAGS_ADD += -Wno-sign-conversion
506 nfs_subs.o_CFLAGS_ADD += -Wno-sign-conversion
507 nfs_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
508 nfs_upcall.o_CFLAGS_ADD += -Wno-sign-conversion
509 nfs_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
510 nfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
511 ntstat.o_CFLAGS_ADD += -Wno-sign-conversion
512 null_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
513 null_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
514 packet_mangler.o_CFLAGS_ADD += -Wno-sign-conversion
515 pf.o_CFLAGS_ADD += -Wno-sign-conversion
516 pf_norm.o_CFLAGS_ADD += -Wno-sign-conversion
517 pf_pbuf.o_CFLAGS_ADD += -Wno-sign-conversion
518 pf_table.o_CFLAGS_ADD += -Wno-sign-conversion
519 posix_sem.o_CFLAGS_ADD += -Wno-sign-conversion
520 posix_shm.o_CFLAGS_ADD += -Wno-sign-conversion
521 process_policy.o_CFLAGS_ADD += -Wno-sign-conversion
522 profile_prvd.o_CFLAGS_ADD += -Wno-sign-conversion
523 profile_runtime.o_CFLAGS_ADD += -Wno-sign-conversion
524 radix.o_CFLAGS_ADD += -Wno-sign-conversion
525 randomdev.o_CFLAGS_ADD += -Wno-sign-conversion
526 route.o_CFLAGS_ADD += -Wno-sign-conversion
527 route6.o_CFLAGS_ADD += -Wno-sign-conversion
528 routefs_ops.o_CFLAGS_ADD += -Wno-sign-conversion
529 scope6.o_CFLAGS_ADD += -Wno-sign-conversion
530 sdt.o_CFLAGS_ADD += -Wno-sign-conversion
531 sdt_arm.o_CFLAGS_ADD += -Wno-sign-conversion
532 sdt_x86.o_CFLAGS_ADD += -Wno-sign-conversion
533 shadow.o_CFLAGS_ADD += -Wno-sign-conversion
534 sixxlowpan.o_CFLAGS_ADD += -Wno-sign-conversion
535 spec_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
536 subr_log.o_CFLAGS_ADD += -Wno-sign-conversion
537 subr_prf.o_CFLAGS_ADD += -Wno-sign-conversion
538 sys_coalition.o_CFLAGS_ADD += -Wno-sign-conversion
539 sys_generic.o_CFLAGS_ADD += -Wno-sign-conversion
540 sys_pipe.o_CFLAGS_ADD += -Wno-sign-conversion
541 sys_reason.o_CFLAGS_ADD += -Wno-sign-conversion
542 sys_ulock.o_CFLAGS_ADD += -Wno-sign-conversion
543 systemcalls.o_CFLAGS_ADD += -Wno-sign-conversion
544 systrace.o_CFLAGS_ADD += -Wno-sign-conversion
545 sysv_msg.o_CFLAGS_ADD += -Wno-sign-conversion
546 sysv_sem.o_CFLAGS_ADD += -Wno-sign-conversion
547 sysv_shm.o_CFLAGS_ADD += -Wno-sign-conversion
548 tcp_cc.o_CFLAGS_ADD += -Wno-sign-conversion
549 tcp_cubic.o_CFLAGS_ADD += -Wno-sign-conversion
550 tcp_input.o_CFLAGS_ADD += -Wno-sign-conversion
551 ubc_subr.o_CFLAGS_ADD += -Wno-sign-conversion
552 uipc_mbuf.o_CFLAGS_ADD += -Wno-sign-conversion
553 uipc_socket.o_CFLAGS_ADD += -Wno-sign-conversion
554 unix_signal.o_CFLAGS_ADD += -Wno-sign-conversion
555 unix_startup.o_CFLAGS_ADD += -Wno-sign-conversion
556 ux_exception.o_CFLAGS_ADD += -Wno-sign-conversion
557 vfs_attrlist.o_CFLAGS_ADD += -Wno-sign-conversion
558 vfs_bio.o_CFLAGS_ADD += -Wno-sign-conversion
559 vfs_cache.o_CFLAGS_ADD += -Wno-sign-conversion
560 vfs_cluster.o_CFLAGS_ADD += -Wno-sign-conversion
561 vfs_cprotect.o_CFLAGS_ADD += -Wno-sign-conversion
562 vfs_disk_conditioner.o_CFLAGS_ADD += -Wno-sign-conversion
563 vfs_fsevents.o_CFLAGS_ADD += -Wno-sign-conversion
564 vfs_fslog.o_CFLAGS_ADD += -Wno-sign-conversion
565 vfs_init.o_CFLAGS_ADD += -Wno-sign-conversion
566 vfs_lookup.o_CFLAGS_ADD += -Wno-sign-conversion
567 vfs_quota.o_CFLAGS_ADD += -Wno-sign-conversion
568 vfs_subr.o_CFLAGS_ADD += -Wno-sign-conversion
569 vfs_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
570 vfs_utfconv.o_CFLAGS_ADD += -Wno-sign-conversion
571 vfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
572 vfs_xattr.o_CFLAGS_ADD += -Wno-sign-conversion
573 vm_compressor_backing_file.o_CFLAGS_ADD += -Wno-sign-conversion
574 vm_unix.o_CFLAGS_ADD += -Wno-sign-conversion
575 vn.o_CFLAGS_ADD += -Wno-sign-conversion
576 vnode_pager.o_CFLAGS_ADD += -Wno-sign-conversion
579 # Machine-independent per-file flags
583 # This rule insures that the subr_prof.c does NOT get compiled with
584 # profiling. It implements mcount() and profiling it leads to recursion.
587 subr_prof.o_CFLAGS_RM = -pg
589 # Rebuild if per-file overrides change
590 ${OBJS}: $(firstword $(MAKEFILE_LIST))
592 # Rebuild if global compile flags change
595 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
596 $(CXXOBJS): .CXXFLAGS
598 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
601 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
603 $(COMPONENT).filelist: $(OBJS)
604 @$(LOG_LDFILELIST) $(COMPONENT)
605 $(_v)for obj in ${OBJS}; do \
606 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
607 done > $(COMPONENT).filelist
609 MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
611 init_sysent.c: $(TARGET)/bsd.syscalls.master
612 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
613 $(_v)$(MAKESYSCALLS) $< table > /dev/null
615 syscalls.c: $(TARGET)/bsd.syscalls.master
616 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
617 $(_v)$(MAKESYSCALLS) $< names > /dev/null
619 audit_kevents.c: $(TARGET)/bsd.syscalls.master
620 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
621 $(_v)$(MAKESYSCALLS) $< audit > /dev/null
623 systrace_args.c: $(TARGET)/bsd.syscalls.master
624 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
625 $(_v)$(MAKESYSCALLS) $< systrace > /dev/null
627 do_all: $(COMPONENT).filelist
629 do_build_all:: do_all
633 include $(MakeInc_rule)
634 include $(MakeInc_dir)