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