]> git.saurik.com Git - apple/xnu.git/blob - bsd/conf/Makefile.template
xnu-7195.81.3.tar.gz
[apple/xnu.git] / bsd / conf / Makefile.template
1 #
2 # Copyright (c) 2000-2020 Apple Inc. All rights reserved.
3 #
4 # @APPLE_LICENSE_HEADER_START@
5 #
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.
11 #
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
18 # under the License.
19 #
20 # @APPLE_LICENSE_HEADER_END@
21 #
22
23 #
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.
28 #
29
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
34
35 include $(MakeInc_cmd)
36 include $(MakeInc_def)
37
38 #
39 # XXX: CFLAGS
40 #
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
46
47 #
48 # Directories for mig generated files
49 #
50 COMP_SUBDIRS =
51
52 #
53 # Make sure we don't remove this by accident if interrupted at the wrong
54 # time.
55 #
56 .PRECIOUS: Makefile
57
58 #
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
63 # configuration.
64 #
65
66 %OBJS
67
68 %LIBOBJS
69
70 %CFILES
71
72 %CXXFILES
73
74 %SFILES
75
76 %MACHDEP
77
78 tcp_cubic.o_CFLAGS_ADD += -Wno-error=implicit-int-float-conversion
79
80 #
81 # Diagnostic opt-outs. We need to make this list empty.
82 #
83 # DO NOT ADD MORE HERE.
84 #
85 # -Wno-address-of-packed-member
86 ah_core.o_CFLAGS_ADD += -Wno-address-of-packed-member
87 ah_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
88 dlil.o_CFLAGS_ADD += -Wno-address-of-packed-member
89 esp_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
90 esp_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
91 frag6.o_CFLAGS_ADD += -Wno-address-of-packed-member
92 icmp6.o_CFLAGS_ADD += -Wno-address-of-packed-member
93 if_stf.o_CFLAGS_ADD += -Wno-address-of-packed-member
94 in6_cksum.o_CFLAGS_ADD += -Wno-address-of-packed-member
95 in6_gif.o_CFLAGS_ADD += -Wno-address-of-packed-member
96 ip6_forward.o_CFLAGS_ADD += -Wno-address-of-packed-member
97 ip6_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
98 ip6_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
99 ipsec.o_CFLAGS_ADD += -Wno-address-of-packed-member
100 iptap.o_CFLAGS_ADD += -Wno-address-of-packed-member
101 mld6.o_CFLAGS_ADD += -Wno-address-of-packed-member
102 mptcp_opt.o_CFLAGS_ADD += -Wno-address-of-packed-member
103 nd6.o_CFLAGS_ADD += -Wno-address-of-packed-member
104 nd6_nbr.o_CFLAGS_ADD += -Wno-address-of-packed-member
105 nd6_prproxy.o_CFLAGS_ADD += -Wno-address-of-packed-member
106 nd6_rtr.o_CFLAGS_ADD += -Wno-address-of-packed-member
107 necp.o_CFLAGS_ADD += -Wno-address-of-packed-member
108 packet_mangler.o_CFLAGS_ADD += -Wno-address-of-packed-member
109 pf_norm.o_CFLAGS_ADD += -Wno-address-of-packed-member
110 pktap.o_CFLAGS_ADD += -Wno-address-of-packed-member
111 raw_ip6.o_CFLAGS_ADD += -Wno-address-of-packed-member
112 sixxlowpan.o_CFLAGS_ADD += -Wno-address-of-packed-member
113 tcp_input.o_CFLAGS_ADD += -Wno-address-of-packed-member
114 tcp_subr.o_CFLAGS_ADD += -Wno-address-of-packed-member
115 udp6_output.o_CFLAGS_ADD += -Wno-address-of-packed-member
116 udp6_usrreq.o_CFLAGS_ADD += -Wno-address-of-packed-member
117 udp_usrreq.o_CFLAGS_ADD += -Wno-address-of-packed-member
118 # -Wno-cast-align
119 audit_bsm_token.o_CFLAGS_ADD += -Wno-cast-align
120 audit_pipe.o_CFLAGS_ADD += -Wno-cast-align
121 audit_session.o_CFLAGS_ADD += -Wno-cast-align
122 bind_vnops.o_CFLAGS_ADD += -Wno-cast-align
123 dtrace.o_CFLAGS_ADD += -Wno-cast-align
124 fasttrap.o_CFLAGS_ADD += -Wno-cast-align
125 fasttrap_isa.o_CFLAGS_ADD += -Wno-cast-align
126 fbt.o_CFLAGS_ADD += -Wno-cast-align
127 fbt_arm.o_CFLAGS_ADD += -Wno-cast-align
128 fbt_x86.o_CFLAGS_ADD += -Wno-cast-align
129 if_bond.o_CFLAGS_ADD += -Wno-cast-align
130 ip_dummynet.o_CFLAGS_ADD += -Wno-cast-align
131 kern_credential.o_CFLAGS_ADD += -Wno-cast-align
132 kern_descrip.o_CFLAGS_ADD += -Wno-cast-align
133 kern_event.o_CFLAGS_ADD += -Wno-cast-align
134 kern_exec.o_CFLAGS_ADD += -Wno-cast-align
135 kern_guarded.o_CFLAGS_ADD += -Wno-cast-align
136 kern_lockf.o_CFLAGS_ADD += -Wno-cast-align
137 kern_subr.o_CFLAGS_ADD += -Wno-cast-align
138 km.o_CFLAGS_ADD += -Wno-cast-align
139 mach_loader.o_CFLAGS_ADD += -Wno-cast-align
140 memdev.o_CFLAGS_ADD += -Wno-cast-align
141 munge.o_CFLAGS_ADD += -Wno-cast-align
142 nfs4_subs.o_CFLAGS_ADD += -Wno-cast-align
143 nfs4_vnops.o_CFLAGS_ADD += -Wno-cast-align
144 nfs_boot.o_CFLAGS_ADD += -Wno-cast-align
145 nfs_gss.o_CFLAGS_ADD += -Wno-cast-align
146 nfs_serv.o_CFLAGS_ADD += -Wno-cast-align
147 nfs_socket.o_CFLAGS_ADD += -Wno-cast-align
148 nfs_srvcache.o_CFLAGS_ADD += -Wno-cast-align
149 nfs_subs.o_CFLAGS_ADD += -Wno-cast-align
150 nfs_syscalls.o_CFLAGS_ADD += -Wno-cast-align
151 nfs_vfsops.o_CFLAGS_ADD += -Wno-cast-align
152 nfs_vnops.o_CFLAGS_ADD += -Wno-cast-align
153 proc_info.o_CFLAGS_ADD += -Wno-cast-align
154 qsort.o_CFLAGS_ADD += -Wno-cast-align
155 sdt.o_CFLAGS_ADD += -Wno-cast-align
156 sdt_arm.o_CFLAGS_ADD += -Wno-cast-align
157 shadow.o_CFLAGS_ADD += -Wno-cast-align
158 spec_vnops.o_CFLAGS_ADD += -Wno-cast-align
159 subr_log.o_CFLAGS_ADD += -Wno-cast-align
160 sys_generic.o_CFLAGS_ADD += -Wno-cast-align
161 sys_pipe.o_CFLAGS_ADD += -Wno-cast-align
162 systemcalls.o_CFLAGS_ADD += -Wno-cast-align
163 systrace.o_CFLAGS_ADD += -Wno-cast-align
164 tty.o_CFLAGS_ADD += -Wno-cast-align
165 tty_compat.o_CFLAGS_ADD += -Wno-cast-align
166 tty_dev.o_CFLAGS_ADD += -Wno-cast-align
167 ubc_subr.o_CFLAGS_ADD += -Wno-cast-align
168 uipc_mbuf.o_CFLAGS_ADD += -Wno-cast-align
169 uipc_usrreq.o_CFLAGS_ADD += -Wno-cast-align
170 vfs_attrlist.o_CFLAGS_ADD += -Wno-cast-align
171 vfs_fsevents.o_CFLAGS_ADD += -Wno-cast-align
172 vfs_syscalls.o_CFLAGS_ADD += -Wno-cast-align
173 vfs_utfconv.o_CFLAGS_ADD += -Wno-cast-align
174 vfs_vnops.o_CFLAGS_ADD += -Wno-cast-align
175 vfs_xattr.o_CFLAGS_ADD += -Wno-cast-align
176 vn.o_CFLAGS_ADD += -Wno-cast-align
177 # -Wno-cast-qual
178 dis_tables.o_CFLAGS_ADD += -Wno-cast-qual
179 # -Wno-format
180 dlil.o_CFLAGS_ADD += -Wno-format
181 in_rmx.o_CFLAGS_ADD += -Wno-format
182 in6_rmx.o_CFLAGS_ADD += -Wno-format
183 route.o_CFLAGS_ADD += -Wno-format
184 # -Wno-format-extra-args
185 dlil.o_CFLAGS_ADD += -Wno-format-extra-args
186 kpi_interface.o_CFLAGS_ADD += -Wno-format-extra-args
187 in_rmx.o_CFLAGS_ADD += -Wno-format-extra-args
188 in6_rmx.o_CFLAGS_ADD += -Wno-format-extra-args
189 route.o_CFLAGS_ADD += -Wno-format-extra-args
190 # -Wno-format-invalid-specifier
191 dlil.o_CFLAGS_ADD += -Wno-format-invalid-specifier
192 in_rmx.o_CFLAGS_ADD += -Wno-format-invalid-specifier
193 in6_rmx.o_CFLAGS_ADD += -Wno-format-invalid-specifier
194 kpi_interface.o_CFLAGS_ADD += -Wno-format-invalid-specifier
195 route.o_CFLAGS_ADD += -Wno-format-invalid-specifier
196 # -Wno-implicit-int-conversion
197 audit.o_CFLAGS_ADD += -Wno-implicit-int-conversion
198 audit_bsm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
199 audit_bsm_errno.o_CFLAGS_ADD += -Wno-implicit-int-conversion
200 audit_bsm_token.o_CFLAGS_ADD += -Wno-implicit-int-conversion
201 audit_worker.o_CFLAGS_ADD += -Wno-implicit-int-conversion
202 bpf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
203 content_filter.o_CFLAGS_ADD += -Wno-implicit-int-conversion
204 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-implicit-int-conversion
205 devfs_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
206 dis_tables.o_CFLAGS_ADD += -Wno-implicit-int-conversion
207 dtrace.o_CFLAGS_ADD += -Wno-implicit-int-conversion
208 fasttrap.o_CFLAGS_ADD += -Wno-implicit-int-conversion
209 fasttrap_isa.o_CFLAGS_ADD += -Wno-implicit-int-conversion
210 fbt_arm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
211 flow_agg.o_CFLAGS_ADD += -Wno-implicit-int-conversion
212 flowadv.o_CFLAGS_ADD += -Wno-implicit-int-conversion
213 gss_krb5_mech.o_CFLAGS_ADD += -Wno-implicit-int-conversion
214 if.o_CFLAGS_ADD += -Wno-implicit-int-conversion
215 if_bond.o_CFLAGS_ADD += -Wno-implicit-int-conversion
216 if_bridge.o_CFLAGS_ADD += -Wno-implicit-int-conversion
217 if_fake.o_CFLAGS_ADD += -Wno-implicit-int-conversion
218 if_ipsec.o_CFLAGS_ADD += -Wno-implicit-int-conversion
219 if_stf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
220 if_utun.o_CFLAGS_ADD += -Wno-implicit-int-conversion
221 if_vlan.o_CFLAGS_ADD += -Wno-implicit-int-conversion
222 in6.o_CFLAGS_ADD += -Wno-implicit-int-conversion
223 in6_gif.o_CFLAGS_ADD += -Wno-implicit-int-conversion
224 in6_pcb.o_CFLAGS_ADD += -Wno-implicit-int-conversion
225 in_gif.o_CFLAGS_ADD += -Wno-implicit-int-conversion
226 ip_input.o_CFLAGS_ADD += -Wno-implicit-int-conversion
227 km.o_CFLAGS_ADD += -Wno-implicit-int-conversion
228 kpi_mbuf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
229 necp.o_CFLAGS_ADD += -Wno-implicit-int-conversion
230 network_agent.o_CFLAGS_ADD += -Wno-implicit-int-conversion
231 nfs4_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
232 nfs_boot.o_CFLAGS_ADD += -Wno-implicit-int-conversion
233 nfs_gss.o_CFLAGS_ADD += -Wno-implicit-int-conversion
234 nfs_node.o_CFLAGS_ADD += -Wno-implicit-int-conversion
235 nfs_socket.o_CFLAGS_ADD += -Wno-implicit-int-conversion
236 nfs_subs.o_CFLAGS_ADD += -Wno-implicit-int-conversion
237 nfs_syscalls.o_CFLAGS_ADD += -Wno-implicit-int-conversion
238 nfs_vfsops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
239 nfs_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
240 ntstat.o_CFLAGS_ADD += -Wno-implicit-int-conversion
241 null_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
242 pf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
243 pf_norm.o_CFLAGS_ADD += -Wno-implicit-int-conversion
244 radix.o_CFLAGS_ADD += -Wno-implicit-int-conversion
245 route.o_CFLAGS_ADD += -Wno-implicit-int-conversion
246 shadow.o_CFLAGS_ADD += -Wno-implicit-int-conversion
247 skpc.o_CFLAGS_ADD += -Wno-implicit-int-conversion
248 spec_vnops.o_CFLAGS_ADD += -Wno-implicit-int-conversion
249 systemcalls.o_CFLAGS_ADD += -Wno-implicit-int-conversion
250 systrace.o_CFLAGS_ADD += -Wno-implicit-int-conversion
251 sysv_msg.o_CFLAGS_ADD += -Wno-implicit-int-conversion
252 sysv_sem.o_CFLAGS_ADD += -Wno-implicit-int-conversion
253 tcp_input.o_CFLAGS_ADD += -Wno-implicit-int-conversion
254 uipc_mbuf.o_CFLAGS_ADD += -Wno-implicit-int-conversion
255 uipc_socket.o_CFLAGS_ADD += -Wno-implicit-int-conversion
256 vfs_quota.o_CFLAGS_ADD += -Wno-implicit-int-conversion
257 vsock_domain.o_CFLAGS_ADD += -Wno-implicit-int-conversion
258 # -Wno-shorten-64-to-32
259 audit_bsm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
260 audit_bsm_token.o_CFLAGS_ADD += -Wno-shorten-64-to-32
261 audit_pipe.o_CFLAGS_ADD += -Wno-shorten-64-to-32
262 audit_session.o_CFLAGS_ADD += -Wno-shorten-64-to-32
263 audit_syscalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
264 audit_worker.o_CFLAGS_ADD += -Wno-shorten-64-to-32
265 bind_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
266 bpf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
267 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-shorten-64-to-32
268 devfs_tree.o_CFLAGS_ADD += -Wno-shorten-64-to-32
269 devfs_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
270 devtimer.o_CFLAGS_ADD += -Wno-shorten-64-to-32
271 dis_tables.o_CFLAGS_ADD += -Wno-shorten-64-to-32
272 doc_tombstone.o_CFLAGS_ADD += -Wno-shorten-64-to-32
273 dtrace.o_CFLAGS_ADD += -Wno-shorten-64-to-32
274 dtrace_ptss.o_CFLAGS_ADD += -Wno-shorten-64-to-32
275 esp_chachapoly.o_CFLAGS_ADD += -Wno-shorten-64-to-32
276 fasttrap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
277 fasttrap_isa.o_CFLAGS_ADD += -Wno-shorten-64-to-32
278 gss_krb5_mech.o_CFLAGS_ADD += -Wno-shorten-64-to-32
279 if.o_CFLAGS_ADD += -Wno-shorten-64-to-32
280 if_bond.o_CFLAGS_ADD += -Wno-shorten-64-to-32
281 if_bridge.o_CFLAGS_ADD += -Wno-shorten-64-to-32
282 if_fake.o_CFLAGS_ADD += -Wno-shorten-64-to-32
283 if_gif.o_CFLAGS_ADD += -Wno-shorten-64-to-32
284 if_ipsec.o_CFLAGS_ADD += -Wno-shorten-64-to-32
285 if_stf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
286 if_utun.o_CFLAGS_ADD += -Wno-shorten-64-to-32
287 if_vlan.o_CFLAGS_ADD += -Wno-shorten-64-to-32
288 in6.o_CFLAGS_ADD += -Wno-shorten-64-to-32
289 in6_rmx.o_CFLAGS_ADD += -Wno-shorten-64-to-32
290 in_rmx.o_CFLAGS_ADD += -Wno-shorten-64-to-32
291 ip_dummynet.o_CFLAGS_ADD += -Wno-shorten-64-to-32
292 ip_input.o_CFLAGS_ADD += -Wno-shorten-64-to-32
293 iptap.o_CFLAGS_ADD += -Wno-shorten-64-to-32
294 kern_fork.o_CFLAGS_ADD += -Wno-shorten-64-to-32
295 kern_malloc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
296 kern_overrides.o_CFLAGS_ADD += -Wno-shorten-64-to-32
297
298 kpi_mbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
299 krpc_subr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
300 lockprof.o_CFLAGS_ADD += -Wno-shorten-64-to-32
301 mem.o_CFLAGS_ADD += -Wno-shorten-64-to-32
302 memdev.o_CFLAGS_ADD += -Wno-shorten-64-to-32
303 nd6_rtr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
304 necp.o_CFLAGS_ADD += -Wno-shorten-64-to-32
305 necp_client.o_CFLAGS_ADD += -Wno-shorten-64-to-32
306 network_agent.o_CFLAGS_ADD += -Wno-shorten-64-to-32
307 nfs4_subs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
308 nfs4_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
309 nfs_bio.o_CFLAGS_ADD += -Wno-shorten-64-to-32
310 nfs_boot.o_CFLAGS_ADD += -Wno-shorten-64-to-32
311 nfs_gss.o_CFLAGS_ADD += -Wno-shorten-64-to-32
312 nfs_lock.o_CFLAGS_ADD += -Wno-shorten-64-to-32
313 nfs_node.o_CFLAGS_ADD += -Wno-shorten-64-to-32
314 nfs_serv.o_CFLAGS_ADD += -Wno-shorten-64-to-32
315 nfs_socket.o_CFLAGS_ADD += -Wno-shorten-64-to-32
316 nfs_subs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
317 nfs_syscalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
318 nfs_vfsops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
319 nfs_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
320 ntstat.o_CFLAGS_ADD += -Wno-shorten-64-to-32
321 null_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
322 pf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
323 pf_norm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
324 pf_pbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
325 profile_prvd.o_CFLAGS_ADD += -Wno-shorten-64-to-32
326 profile_runtime.o_CFLAGS_ADD += -Wno-shorten-64-to-32
327 radix.o_CFLAGS_ADD += -Wno-shorten-64-to-32
328 route.o_CFLAGS_ADD += -Wno-shorten-64-to-32
329 sdt.o_CFLAGS_ADD += -Wno-shorten-64-to-32
330 shadow.o_CFLAGS_ADD += -Wno-shorten-64-to-32
331 skpc.o_CFLAGS_ADD += -Wno-shorten-64-to-32
332 spec_vnops.o_CFLAGS_ADD += -Wno-shorten-64-to-32
333 stubs.o_CFLAGS_ADD += -Wno-shorten-64-to-32
334 systemcalls.o_CFLAGS_ADD += -Wno-shorten-64-to-32
335 sysv_msg.o_CFLAGS_ADD += -Wno-shorten-64-to-32
336 sysv_sem.o_CFLAGS_ADD += -Wno-shorten-64-to-32
337 sysv_shm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
338 tcp_input.o_CFLAGS_ADD += -Wno-shorten-64-to-32
339 uipc_mbuf.o_CFLAGS_ADD += -Wno-shorten-64-to-32
340 uipc_socket.o_CFLAGS_ADD += -Wno-shorten-64-to-32
341 unix_signal.o_CFLAGS_ADD += -Wno-shorten-64-to-32
342 ux_exception.o_CFLAGS_ADD += -Wno-shorten-64-to-32
343 vfs_cluster.o_CFLAGS_ADD += -Wno-shorten-64-to-32
344 vfs_quota.o_CFLAGS_ADD += -Wno-shorten-64-to-32
345 vfs_subr.o_CFLAGS_ADD += -Wno-shorten-64-to-32
346 vfs_support.o_CFLAGS_ADD += -Wno-shorten-64-to-32
347 vn.o_CFLAGS_ADD += -Wno-shorten-64-to-32
348 xcpm.o_CFLAGS_ADD += -Wno-shorten-64-to-32
349 # -Wno-sign-compare
350 dest6.o_CFLAGS_ADD += -Wno-sign-compare
351 dhcp_options.o_CFLAGS_ADD += -Wno-sign-compare
352 esp_chachapoly.o_CFLAGS_ADD += -Wno-sign-compare
353 frag6.o_CFLAGS_ADD += -Wno-sign-compare
354 in6.o_CFLAGS_ADD += -Wno-sign-compare
355 in6_cksum.o_CFLAGS_ADD += -Wno-sign-compare
356 in6_proto.o_CFLAGS_ADD += -Wno-sign-compare
357 ip_dummynet.o_CFLAGS_ADD += -Wno-sign-compare
358 ip_input.o_CFLAGS_ADD += -Wno-sign-compare
359 radix.o_CFLAGS_ADD += -Wno-sign-compare
360 route.o_CFLAGS_ADD += -Wno-sign-compare
361 route6.o_CFLAGS_ADD += -Wno-sign-compare
362 scope6.o_CFLAGS_ADD += -Wno-sign-compare
363 tcp_input.o_CFLAGS_ADD += -Wno-sign-compare
364 uipc_mbuf.o_CFLAGS_ADD += -Wno-sign-compare
365 uipc_socket.o_CFLAGS_ADD += -Wno-sign-compare
366 # -Wno-sign-conversion
367 audit.o_CFLAGS_ADD += -Wno-sign-conversion
368 audit_arg.o_CFLAGS_ADD += -Wno-sign-conversion
369 audit_bsd.o_CFLAGS_ADD += -Wno-sign-conversion
370 audit_bsm.o_CFLAGS_ADD += -Wno-sign-conversion
371 audit_bsm_klib.o_CFLAGS_ADD += -Wno-sign-conversion
372 audit_bsm_token.o_CFLAGS_ADD += -Wno-sign-conversion
373 audit_mac.o_CFLAGS_ADD += -Wno-sign-conversion
374 audit_pipe.o_CFLAGS_ADD += -Wno-sign-conversion
375 audit_session.o_CFLAGS_ADD += -Wno-sign-conversion
376 audit_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
377 audit_worker.o_CFLAGS_ADD += -Wno-sign-conversion
378 bind_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
379 bind_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
380 blist.o_CFLAGS_ADD += -Wno-sign-conversion
381 bpf.o_CFLAGS_ADD += -Wno-sign-conversion
382 bsd_init.o_CFLAGS_ADD += -Wno-sign-conversion
383 bsd_stubs.o_CFLAGS_ADD += -Wno-sign-conversion
384 cbrtf.o_CFLAGS_ADD += -Wno-sign-conversion
385 chunklist.o_CFLAGS_ADD += -Wno-sign-conversion
386 content_filter.o_CFLAGS_ADD += -Wno-sign-conversion
387 cpu_in_cksum_gen.o_CFLAGS_ADD += -Wno-sign-conversion
388 cuckoo_hashtable_test.o_CFLAGS_ADD += -Wno-sign-conversion
389 decmpfs.o_CFLAGS_ADD += -Wno-sign-conversion
390 dest6.o_CFLAGS_ADD += -Wno-sign-conversion
391 devfs_fdesc_support.o_CFLAGS_ADD += -Wno-sign-conversion
392 devfs_tree.o_CFLAGS_ADD += -Wno-sign-conversion
393 devfs_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
394 devfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
395 devtimer.o_CFLAGS_ADD += -Wno-sign-conversion
396 dhcp_options.o_CFLAGS_ADD += -Wno-sign-conversion
397 dis_tables.o_CFLAGS_ADD += -Wno-sign-conversion
398 disassembler.o_CFLAGS_ADD += -Wno-sign-conversion
399 doc_tombstone.o_CFLAGS_ADD += -Wno-sign-conversion
400 dtrace.o_CFLAGS_ADD += -Wno-sign-conversion
401 dtrace_glue.o_CFLAGS_ADD += -Wno-sign-conversion
402 dtrace_isa.o_CFLAGS_ADD += -Wno-sign-conversion
403 dtrace_ptss.o_CFLAGS_ADD += -Wno-sign-conversion
404 dtrace_subr.o_CFLAGS_ADD += -Wno-sign-conversion
405 dtrace_subr_arm.o_CFLAGS_ADD += -Wno-sign-conversion
406 ether_if_module.o_CFLAGS_ADD += -Wno-sign-conversion
407 ether_inet6_pr_module.o_CFLAGS_ADD += -Wno-sign-conversion
408 ether_inet_pr_module.o_CFLAGS_ADD += -Wno-sign-conversion
409 fasttrap.o_CFLAGS_ADD += -Wno-sign-conversion
410 fasttrap_isa.o_CFLAGS_ADD += -Wno-sign-conversion
411 fbt.o_CFLAGS_ADD += -Wno-sign-conversion
412 fbt_arm.o_CFLAGS_ADD += -Wno-sign-conversion
413 fbt_x86.o_CFLAGS_ADD += -Wno-sign-conversion
414 fifo_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
415 flowhash.o_CFLAGS_ADD += -Wno-sign-conversion
416 frag6.o_CFLAGS_ADD += -Wno-sign-conversion
417 gss_krb5_mech.o_CFLAGS_ADD += -Wno-sign-conversion
418 if.o_CFLAGS_ADD += -Wno-sign-conversion
419 if_bond.o_CFLAGS_ADD += -Wno-sign-conversion
420 if_bridge.o_CFLAGS_ADD += -Wno-sign-conversion
421 if_fake.o_CFLAGS_ADD += -Wno-sign-conversion
422 if_gif.o_CFLAGS_ADD += -Wno-sign-conversion
423 if_ipsec.o_CFLAGS_ADD += -Wno-sign-conversion
424 if_llatbl.o_CFLAGS_ADD += -Wno-sign-conversion
425 if_loop.o_CFLAGS_ADD += -Wno-sign-conversion
426 if_low_power_mode.o_CFLAGS_ADD += -Wno-sign-conversion
427 if_pflog.o_CFLAGS_ADD += -Wno-sign-conversion
428 if_stf.o_CFLAGS_ADD += -Wno-sign-conversion
429 if_utun.o_CFLAGS_ADD += -Wno-sign-conversion
430 if_vlan.o_CFLAGS_ADD += -Wno-sign-conversion
431 imageboot.o_CFLAGS_ADD += -Wno-sign-conversion
432 in6.o_CFLAGS_ADD += -Wno-sign-conversion
433 in6_cga.o_CFLAGS_ADD += -Wno-sign-conversion
434 in6_cksum.o_CFLAGS_ADD += -Wno-sign-conversion
435 in6_gif.o_CFLAGS_ADD += -Wno-sign-conversion
436 in6_pcb.o_CFLAGS_ADD += -Wno-sign-conversion
437 in6_proto.o_CFLAGS_ADD += -Wno-sign-conversion
438 in6_rmx.o_CFLAGS_ADD += -Wno-sign-conversion
439 in_gif.o_CFLAGS_ADD += -Wno-sign-conversion
440 in_rmx.o_CFLAGS_ADD += -Wno-sign-conversion
441 instr_size.o_CFLAGS_ADD += -Wno-sign-conversion
442 ip6_forward.o_CFLAGS_ADD += -Wno-sign-conversion
443 ip6_id.o_CFLAGS_ADD += -Wno-sign-conversion
444 ip_dummynet.o_CFLAGS_ADD += -Wno-sign-conversion
445 ip_input.o_CFLAGS_ADD += -Wno-sign-conversion
446 iptap.o_CFLAGS_ADD += -Wno-sign-conversion
447 kern_acct.o_CFLAGS_ADD += -Wno-sign-conversion
448 kern_authorization.o_CFLAGS_ADD += -Wno-sign-conversion
449 kern_clock.o_CFLAGS_ADD += -Wno-sign-conversion
450 kern_control.o_CFLAGS_ADD += -Wno-sign-conversion
451 kern_core.o_CFLAGS_ADD += -Wno-sign-conversion
452 kern_credential.o_CFLAGS_ADD += -Wno-sign-conversion
453 kern_cs.o_CFLAGS_ADD += -Wno-sign-conversion
454 kern_descrip.o_CFLAGS_ADD += -Wno-sign-conversion
455 kern_event.o_CFLAGS_ADD += -Wno-sign-conversion
456 kern_exit.o_CFLAGS_ADD += -Wno-sign-conversion
457 kern_fork.o_CFLAGS_ADD += -Wno-sign-conversion
458 kern_guarded.o_CFLAGS_ADD += -Wno-sign-conversion
459 kern_kpc.o_CFLAGS_ADD += -Wno-sign-conversion
460 kern_lockf.o_CFLAGS_ADD += -Wno-sign-conversion
461 kern_malloc.o_CFLAGS_ADD += -Wno-sign-conversion
462 kern_memorystatus.o_CFLAGS_ADD += -Wno-sign-conversion
463 kern_memorystatus_freeze.o_CFLAGS_ADD += -Wno-sign-conversion
464 kern_memorystatus_notify.o_CFLAGS_ADD += -Wno-sign-conversion
465 kern_mib.o_CFLAGS_ADD += -Wno-sign-conversion
466 kern_mman.o_CFLAGS_ADD += -Wno-sign-conversion
467 kern_ntptime.o_CFLAGS_ADD += -Wno-sign-conversion
468 kern_overrides.o_CFLAGS_ADD += -Wno-sign-conversion
469 kern_persona.o_CFLAGS_ADD += -Wno-sign-conversion
470 kern_physio.o_CFLAGS_ADD += -Wno-sign-conversion
471 kern_proc.o_CFLAGS_ADD += -Wno-sign-conversion
472 kern_prot.o_CFLAGS_ADD += -Wno-sign-conversion
473 kern_resource.o_CFLAGS_ADD += -Wno-sign-conversion
474 kern_shutdown.o_CFLAGS_ADD += -Wno-sign-conversion
475 kern_sig.o_CFLAGS_ADD += -Wno-sign-conversion
476 kern_subr.o_CFLAGS_ADD += -Wno-sign-conversion
477 kern_symfile.o_CFLAGS_ADD += -Wno-sign-conversion
478 kern_synch.o_CFLAGS_ADD += -Wno-sign-conversion
479 kern_time.o_CFLAGS_ADD += -Wno-sign-conversion
480 km.o_CFLAGS_ADD += -Wno-sign-conversion
481 kpi_mbuf.o_CFLAGS_ADD += -Wno-sign-conversion
482 kpi_protocol.o_CFLAGS_ADD += -Wno-sign-conversion
483 kpi_socketfilter.o_CFLAGS_ADD += -Wno-sign-conversion
484 kpi_vfs.o_CFLAGS_ADD += -Wno-sign-conversion
485 krpc_subr.o_CFLAGS_ADD += -Wno-sign-conversion
486 lockprof.o_CFLAGS_ADD += -Wno-sign-conversion
487 mach_loader.o_CFLAGS_ADD += -Wno-sign-conversion
488 mach_process.o_CFLAGS_ADD += -Wno-sign-conversion
489 mem.o_CFLAGS_ADD += -Wno-sign-conversion
490 memdev.o_CFLAGS_ADD += -Wno-sign-conversion
491 monotonic.o_CFLAGS_ADD += -Wno-sign-conversion
492 munge.o_CFLAGS_ADD += -Wno-sign-conversion
493 nd6_prproxy.o_CFLAGS_ADD += -Wno-sign-conversion
494 nd6_send.o_CFLAGS_ADD += -Wno-sign-conversion
495 necp.o_CFLAGS_ADD += -Wno-sign-conversion
496 necp_client.o_CFLAGS_ADD += -Wno-sign-conversion
497 netboot.o_CFLAGS_ADD += -Wno-sign-conversion
498 network_agent.o_CFLAGS_ADD += -Wno-sign-conversion
499 nfs4_subs.o_CFLAGS_ADD += -Wno-sign-conversion
500 nfs4_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
501 nfs_bio.o_CFLAGS_ADD += -Wno-sign-conversion
502 nfs_boot.o_CFLAGS_ADD += -Wno-sign-conversion
503 nfs_gss.o_CFLAGS_ADD += -Wno-sign-conversion
504 nfs_lock.o_CFLAGS_ADD += -Wno-sign-conversion
505 nfs_node.o_CFLAGS_ADD += -Wno-sign-conversion
506 nfs_serv.o_CFLAGS_ADD += -Wno-sign-conversion
507 nfs_socket.o_CFLAGS_ADD += -Wno-sign-conversion
508 nfs_subs.o_CFLAGS_ADD += -Wno-sign-conversion
509 nfs_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
510 nfs_upcall.o_CFLAGS_ADD += -Wno-sign-conversion
511 nfs_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
512 nfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
513 ntstat.o_CFLAGS_ADD += -Wno-sign-conversion
514 null_vfsops.o_CFLAGS_ADD += -Wno-sign-conversion
515 null_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
516 packet_mangler.o_CFLAGS_ADD += -Wno-sign-conversion
517 pf.o_CFLAGS_ADD += -Wno-sign-conversion
518 pf_norm.o_CFLAGS_ADD += -Wno-sign-conversion
519 pf_pbuf.o_CFLAGS_ADD += -Wno-sign-conversion
520 pf_table.o_CFLAGS_ADD += -Wno-sign-conversion
521 posix_sem.o_CFLAGS_ADD += -Wno-sign-conversion
522 posix_shm.o_CFLAGS_ADD += -Wno-sign-conversion
523 process_policy.o_CFLAGS_ADD += -Wno-sign-conversion
524 profile_prvd.o_CFLAGS_ADD += -Wno-sign-conversion
525 profile_runtime.o_CFLAGS_ADD += -Wno-sign-conversion
526 radix.o_CFLAGS_ADD += -Wno-sign-conversion
527 randomdev.o_CFLAGS_ADD += -Wno-sign-conversion
528 route.o_CFLAGS_ADD += -Wno-sign-conversion
529 route6.o_CFLAGS_ADD += -Wno-sign-conversion
530 routefs_ops.o_CFLAGS_ADD += -Wno-sign-conversion
531 scope6.o_CFLAGS_ADD += -Wno-sign-conversion
532 sdt.o_CFLAGS_ADD += -Wno-sign-conversion
533 sdt_arm.o_CFLAGS_ADD += -Wno-sign-conversion
534 sdt_x86.o_CFLAGS_ADD += -Wno-sign-conversion
535 shadow.o_CFLAGS_ADD += -Wno-sign-conversion
536 sixxlowpan.o_CFLAGS_ADD += -Wno-sign-conversion
537 spec_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
538 subr_log.o_CFLAGS_ADD += -Wno-sign-conversion
539 subr_prf.o_CFLAGS_ADD += -Wno-sign-conversion
540 sys_coalition.o_CFLAGS_ADD += -Wno-sign-conversion
541 sys_generic.o_CFLAGS_ADD += -Wno-sign-conversion
542 sys_pipe.o_CFLAGS_ADD += -Wno-sign-conversion
543 sys_reason.o_CFLAGS_ADD += -Wno-sign-conversion
544 sys_ulock.o_CFLAGS_ADD += -Wno-sign-conversion
545 systemcalls.o_CFLAGS_ADD += -Wno-sign-conversion
546 systrace.o_CFLAGS_ADD += -Wno-sign-conversion
547 sysv_msg.o_CFLAGS_ADD += -Wno-sign-conversion
548 sysv_sem.o_CFLAGS_ADD += -Wno-sign-conversion
549 sysv_shm.o_CFLAGS_ADD += -Wno-sign-conversion
550 tcp_cc.o_CFLAGS_ADD += -Wno-sign-conversion
551 tcp_cubic.o_CFLAGS_ADD += -Wno-sign-conversion
552 tcp_input.o_CFLAGS_ADD += -Wno-sign-conversion
553 ubc_subr.o_CFLAGS_ADD += -Wno-sign-conversion
554 uipc_mbuf.o_CFLAGS_ADD += -Wno-sign-conversion
555 uipc_socket.o_CFLAGS_ADD += -Wno-sign-conversion
556 unix_signal.o_CFLAGS_ADD += -Wno-sign-conversion
557 unix_startup.o_CFLAGS_ADD += -Wno-sign-conversion
558 ux_exception.o_CFLAGS_ADD += -Wno-sign-conversion
559 vfs_attrlist.o_CFLAGS_ADD += -Wno-sign-conversion
560 vfs_bio.o_CFLAGS_ADD += -Wno-sign-conversion
561 vfs_cache.o_CFLAGS_ADD += -Wno-sign-conversion
562 vfs_cluster.o_CFLAGS_ADD += -Wno-sign-conversion
563 vfs_cprotect.o_CFLAGS_ADD += -Wno-sign-conversion
564 vfs_disk_conditioner.o_CFLAGS_ADD += -Wno-sign-conversion
565 vfs_fsevents.o_CFLAGS_ADD += -Wno-sign-conversion
566 vfs_fslog.o_CFLAGS_ADD += -Wno-sign-conversion
567 vfs_init.o_CFLAGS_ADD += -Wno-sign-conversion
568 vfs_lookup.o_CFLAGS_ADD += -Wno-sign-conversion
569 vfs_quota.o_CFLAGS_ADD += -Wno-sign-conversion
570 vfs_subr.o_CFLAGS_ADD += -Wno-sign-conversion
571 vfs_syscalls.o_CFLAGS_ADD += -Wno-sign-conversion
572 vfs_utfconv.o_CFLAGS_ADD += -Wno-sign-conversion
573 vfs_vnops.o_CFLAGS_ADD += -Wno-sign-conversion
574 vfs_xattr.o_CFLAGS_ADD += -Wno-sign-conversion
575 vm_compressor_backing_file.o_CFLAGS_ADD += -Wno-sign-conversion
576 vm_unix.o_CFLAGS_ADD += -Wno-sign-conversion
577 vn.o_CFLAGS_ADD += -Wno-sign-conversion
578 vnode_pager.o_CFLAGS_ADD += -Wno-sign-conversion
579
580 #
581 # Machine-independent per-file flags
582 #
583
584 #
585 # This rule insures that the subr_prof.c does NOT get compiled with
586 # profiling. It implements mcount() and profiling it leads to recursion.
587 #
588
589 subr_prof.o_CFLAGS_RM = -pg
590
591 # Rebuild if per-file overrides change
592 ${OBJS}: $(firstword $(MAKEFILE_LIST))
593
594 # Rebuild if global compile flags change
595 $(COBJS): .CFLAGS
596 .CFLAGS: ALWAYS
597 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
598 $(CXXOBJS): .CXXFLAGS
599 .CXXFLAGS: ALWAYS
600 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
601 $(SOBJS): .SFLAGS
602 .SFLAGS: ALWAYS
603 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
604
605 $(COMPONENT).filelist: $(OBJS)
606 @$(LOG_LDFILELIST) $(COMPONENT)
607 $(_v)for obj in ${OBJS}; do \
608 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
609 done > $(COMPONENT).filelist
610
611 $(COMPONENT).libfilelist: $(LIBOBJS)
612 @$(LOG_LDFILELIST) "lib$(COMPONENT)"
613 $(_v)for obj in ${LIBOBJS}; do \
614 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
615 done > $(COMPONENT).libfilelist
616
617 MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
618
619 init_sysent.c: $(TARGET)/bsd.syscalls.master
620 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
621 $(_v)$(MAKESYSCALLS) $< table > /dev/null
622
623 syscalls.c: $(TARGET)/bsd.syscalls.master
624 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
625 $(_v)$(MAKESYSCALLS) $< names > /dev/null
626
627 audit_kevents.c: $(TARGET)/bsd.syscalls.master
628 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
629 $(_v)$(MAKESYSCALLS) $< audit > /dev/null
630
631 systrace_args.c: $(TARGET)/bsd.syscalls.master
632 @$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
633 $(_v)$(MAKESYSCALLS) $< systrace > /dev/null
634
635 ifeq ($(RC_ProjectName),xnu_libraries)
636 do_all: $(COMPONENT).libfilelist
637 else
638 do_all: $(COMPONENT).filelist
639 endif
640
641 do_build_all:: do_all
642
643 %RULES
644
645 include $(MakeInc_rule)
646 include $(MakeInc_dir)