gems-kernel/source/THIRDPARTY/xnu/bsd/conf/Makefile.template
2024-06-03 11:29:39 -05:00

593 lines
26 KiB
Makefile

#
# Copyright (c) 2000-2020 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
# The contents of this file constitute Original Code as defined in and
# are subject to the Apple Public Source License Version 1.1 (the
# "License"). You may not use this file except in compliance with the
# License. Please obtain a copy of the License at
# http://www.apple.com/publicsource and read it before using this file.
#
# This Original Code and all software distributed under the License are
# distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
# License for the specific language governing rights and limitations
# under the License.
#
# @APPLE_LICENSE_HEADER_END@
#
#
# Mach Operating System
# Copyright (c) 1986 Carnegie-Mellon University
# All rights reserved. The CMU software License Agreement specifies
# the terms and conditions for use and redistribution.
#
export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
include $(MakeInc_cmd)
include $(MakeInc_def)
#
# XXX: CFLAGS
#
CFLAGS+= -include meta_features.h -DDRIVER_PRIVATE \
-D_KERNEL_BUILD -DKERNEL_BUILD -DMACH_KERNEL -DBSD_BUILD \
-DBSD_KERNEL_PRIVATE \
-Warray-bounds-pointer-arithmetic
SFLAGS+= -include meta_features.h
#
# Directories for mig generated files
#
COMP_SUBDIRS =
#
# Make sure we don't remove this by accident if interrupted at the wrong
# time.
#
.PRECIOUS: Makefile
#
# Theses macros are filled in by the config program depending on the
# current configuration. The MACHDEP macro is replaced by the
# contents of the machine dependent makefile template and the others
# are replaced by the corresponding symbol definitions for the
# configuration.
#
%OBJS
%LIBOBJS
%CFILES
%CXXFILES
%SFILES
%MACHDEP
tcp_cubic.o_CWARNFLAGS_ADD += -Wno-error=implicit-int-float-conversion
#
# Diagnostic opt-outs. We need to make this list empty.
#
# DO NOT ADD MORE HERE.
#
# -Wno-address-of-packed-member
ah_core.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
ah_input.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
dlil.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
esp_input.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
esp_output.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
frag6.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
icmp6.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
if_ipsec.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
if_stf.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
in6_cksum.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
in6_gif.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
ip6_forward.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
ip6_input.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
ip6_output.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
ipsec.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
iptap.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
mld6.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
mptcp_opt.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
nd6.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
nd6_nbr.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
nd6_prproxy.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
nd6_rtr.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
necp.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
packet_mangler.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
pf_norm.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
pktap.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
raw_ip6.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
tcp_input.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
tcp_subr.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
udp6_output.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
udp6_usrreq.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
udp_usrreq.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
# -Wno-cast-align
audit_bsm_token.o_CWARNFLAGS_ADD += -Wno-cast-align
audit_pipe.o_CWARNFLAGS_ADD += -Wno-cast-align
audit_session.o_CWARNFLAGS_ADD += -Wno-cast-align
bind_vnops.o_CWARNFLAGS_ADD += -Wno-cast-align
dtrace.o_CWARNFLAGS_ADD += -Wno-cast-align
fasttrap.o_CWARNFLAGS_ADD += -Wno-cast-align
fasttrap_isa.o_CWARNFLAGS_ADD += -Wno-cast-align
fbt.o_CWARNFLAGS_ADD += -Wno-cast-align
fbt_arm.o_CWARNFLAGS_ADD += -Wno-cast-align
fbt_x86.o_CWARNFLAGS_ADD += -Wno-cast-align
if_bond.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_credential.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_descrip.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_event.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_exec.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_guarded.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_lockf.o_CWARNFLAGS_ADD += -Wno-cast-align
kern_subr.o_CWARNFLAGS_ADD += -Wno-cast-align
km.o_CWARNFLAGS_ADD += -Wno-cast-align
mach_loader.o_CWARNFLAGS_ADD += -Wno-cast-align
memdev.o_CWARNFLAGS_ADD += -Wno-cast-align
munge.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_gss.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_serv.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_socket.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_srvcache.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_subs.o_CWARNFLAGS_ADD += -Wno-cast-align
nfs_syscalls.o_CWARNFLAGS_ADD += -Wno-cast-align
proc_info.o_CWARNFLAGS_ADD += -Wno-cast-align
qsort.o_CWARNFLAGS_ADD += -Wno-cast-align
sdt.o_CWARNFLAGS_ADD += -Wno-cast-align
sdt_arm.o_CWARNFLAGS_ADD += -Wno-cast-align
shadow.o_CWARNFLAGS_ADD += -Wno-cast-align
spec_vnops.o_CWARNFLAGS_ADD += -Wno-cast-align
subr_log.o_CWARNFLAGS_ADD += -Wno-cast-align
sys_generic.o_CWARNFLAGS_ADD += -Wno-cast-align
sys_pipe.o_CWARNFLAGS_ADD += -Wno-cast-align
systemcalls.o_CWARNFLAGS_ADD += -Wno-cast-align
systrace.o_CWARNFLAGS_ADD += -Wno-cast-align
tty.o_CWARNFLAGS_ADD += -Wno-cast-align
tty_compat.o_CWARNFLAGS_ADD += -Wno-cast-align
tty_dev.o_CWARNFLAGS_ADD += -Wno-cast-align
ubc_subr.o_CWARNFLAGS_ADD += -Wno-cast-align
uipc_mbuf.o_CWARNFLAGS_ADD += -Wno-cast-align
uipc_usrreq.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_attrlist.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_fsevents.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_syscalls.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_utfconv.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_vnops.o_CWARNFLAGS_ADD += -Wno-cast-align
vfs_xattr.o_CWARNFLAGS_ADD += -Wno-cast-align
vn.o_CWARNFLAGS_ADD += -Wno-cast-align
# -Wno-cast-qual
dis_tables.o_CWARNFLAGS_ADD += -Wno-cast-qual
# -Wno-format
dlil.o_CWARNFLAGS_ADD += -Wno-format
in_rmx.o_CWARNFLAGS_ADD += -Wno-format
in6_rmx.o_CWARNFLAGS_ADD += -Wno-format
route.o_CWARNFLAGS_ADD += -Wno-format
# -Wno-format-extra-args
dlil.o_CWARNFLAGS_ADD += -Wno-format-extra-args
kpi_interface.o_CWARNFLAGS_ADD += -Wno-format-extra-args
in_rmx.o_CWARNFLAGS_ADD += -Wno-format-extra-args
in6_rmx.o_CWARNFLAGS_ADD += -Wno-format-extra-args
route.o_CWARNFLAGS_ADD += -Wno-format-extra-args
# -Wno-format-invalid-specifier
dlil.o_CWARNFLAGS_ADD += -Wno-format-invalid-specifier
in_rmx.o_CWARNFLAGS_ADD += -Wno-format-invalid-specifier
in6_rmx.o_CWARNFLAGS_ADD += -Wno-format-invalid-specifier
kpi_interface.o_CWARNFLAGS_ADD += -Wno-format-invalid-specifier
route.o_CWARNFLAGS_ADD += -Wno-format-invalid-specifier
# -Wno-implicit-int-conversion
audit.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
audit_bsm.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
audit_bsm_errno.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
audit_bsm_token.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
audit_worker.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
content_filter.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
devfs_fdesc_support.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
devfs_vnops.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
dis_tables.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
dtrace.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
fasttrap.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
fasttrap_isa.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
fbt_arm.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
flow_agg.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
flowadv.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_bond.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_bridge.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_fake.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_stf.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_utun.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
if_vlan.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
in6_gif.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
in6_pcb.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
in_gif.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
km.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
necp.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
network_agent.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
ntstat.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
null_vnops.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pf.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pf_norm.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
shadow.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
skpc.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
spec_vnops.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
systemcalls.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
systrace.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
sysv_msg.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
sysv_sem.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
uipc_mbuf.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
vfs_quota.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
vsock_domain.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
# -Wno-shorten-64-to-32
audit_bsm.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
audit_bsm_token.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
audit_pipe.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
audit_session.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
audit_syscalls.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
audit_worker.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
bind_vnops.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
devfs_fdesc_support.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
devfs_tree.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
devfs_vnops.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
devtimer.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
dis_tables.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
doc_tombstone.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
dtrace.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
dtrace_ptss.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
esp_chachapoly.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
fasttrap.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
fasttrap_isa.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_bond.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_bridge.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_fake.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_gif.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_stf.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_utun.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
if_vlan.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
in6_rmx.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
in_rmx.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
iptap.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kern_fork.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kern_malloc.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kern_overrides.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
lockprof.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
mem.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
memdev.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
nd6_rtr.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
necp.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
necp_client.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
network_agent.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
ntstat.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
null_vnops.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
pf.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
pf_norm.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
pf_pbuf.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
profile_prvd.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
profile_runtime.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
sdt.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
shadow.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
skpc.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
spec_vnops.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
stubs.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
systemcalls.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
sysv_msg.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
sysv_sem.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
sysv_shm.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
uipc_mbuf.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
unix_signal.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
ux_exception.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vfs_cluster.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vfs_quota.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vfs_subr.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vfs_support.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vn.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
xcpm.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
# -Wno-sign-compare
dest6.o_CWARNFLAGS_ADD += -Wno-sign-compare
dhcp_options.o_CWARNFLAGS_ADD += -Wno-sign-compare
esp_chachapoly.o_CWARNFLAGS_ADD += -Wno-sign-compare
frag6.o_CWARNFLAGS_ADD += -Wno-sign-compare
in6.o_CWARNFLAGS_ADD += -Wno-sign-compare
in6_cksum.o_CWARNFLAGS_ADD += -Wno-sign-compare
in6_proto.o_CWARNFLAGS_ADD += -Wno-sign-compare
radix.o_CWARNFLAGS_ADD += -Wno-sign-compare
route6.o_CWARNFLAGS_ADD += -Wno-sign-compare
scope6.o_CWARNFLAGS_ADD += -Wno-sign-compare
uipc_mbuf.o_CWARNFLAGS_ADD += -Wno-sign-compare
# -Wno-sign-conversion
audit.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_arg.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_bsd.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_bsm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_bsm_klib.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_bsm_token.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_mac.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_pipe.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_session.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_syscalls.o_CWARNFLAGS_ADD += -Wno-sign-conversion
audit_worker.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bind_vfsops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bind_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
blist.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bpf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_stubs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cbrtf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
chunklist.o_CWARNFLAGS_ADD += -Wno-sign-conversion
content_filter.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu_in_cksum_gen.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cuckoo_hashtable_test.o_CWARNFLAGS_ADD += -Wno-sign-conversion
decmpfs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dest6.o_CWARNFLAGS_ADD += -Wno-sign-conversion
devfs_fdesc_support.o_CWARNFLAGS_ADD += -Wno-sign-conversion
devfs_tree.o_CWARNFLAGS_ADD += -Wno-sign-conversion
devfs_vfsops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
devfs_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
devtimer.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dhcp_options.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dis_tables.o_CWARNFLAGS_ADD += -Wno-sign-conversion
disassembler.o_CWARNFLAGS_ADD += -Wno-sign-conversion
doc_tombstone.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace_glue.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace_isa.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace_ptss.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dtrace_subr_arm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ether_if_module.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ether_inet6_pr_module.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ether_inet_pr_module.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fasttrap.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fasttrap_isa.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fbt.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fbt_arm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fbt_x86.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fifo_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
flowhash.o_CWARNFLAGS_ADD += -Wno-sign-conversion
frag6.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_bond.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_bridge.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_fake.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_gif.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_ipsec.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_llatbl.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_loop.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_low_power_mode.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_pflog.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_stf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_utun.o_CWARNFLAGS_ADD += -Wno-sign-conversion
if_vlan.o_CWARNFLAGS_ADD += -Wno-sign-conversion
imageboot.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_cga.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_cksum.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_gif.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_pcb.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_proto.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in6_rmx.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in_gif.o_CWARNFLAGS_ADD += -Wno-sign-conversion
in_rmx.o_CWARNFLAGS_ADD += -Wno-sign-conversion
instr_size.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ip6_forward.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ip6_id.o_CWARNFLAGS_ADD += -Wno-sign-conversion
iptap.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_acct.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_authorization.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_clock.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_control.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_core.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_credential.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_cs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_descrip.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_event.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_exit.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_fork.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_guarded.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_kpc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_lockf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_malloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_memorystatus.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_memorystatus_freeze.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_memorystatus_notify.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_mib.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_mman.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_ntptime.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_overrides.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_persona.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_physio.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_proc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_prot.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_resource.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_shutdown.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_sig.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_symfile.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_synch.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_time.o_CWARNFLAGS_ADD += -Wno-sign-conversion
km.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpi_mbuf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpi_protocol.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpi_socketfilter.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpi_vfs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
lockprof.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mach_loader.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mach_process.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mem.o_CWARNFLAGS_ADD += -Wno-sign-conversion
memdev.o_CWARNFLAGS_ADD += -Wno-sign-conversion
monotonic.o_CWARNFLAGS_ADD += -Wno-sign-conversion
munge.o_CWARNFLAGS_ADD += -Wno-sign-conversion
nd6_prproxy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
nd6_send.o_CWARNFLAGS_ADD += -Wno-sign-conversion
necp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
necp_client.o_CWARNFLAGS_ADD += -Wno-sign-conversion
netboot.o_CWARNFLAGS_ADD += -Wno-sign-conversion
network_agent.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ntstat.o_CWARNFLAGS_ADD += -Wno-sign-conversion
null_vfsops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
null_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
packet_mangler.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pf_norm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pf_pbuf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pf_table.o_CWARNFLAGS_ADD += -Wno-sign-conversion
posix_sem.o_CWARNFLAGS_ADD += -Wno-sign-conversion
posix_shm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
process_policy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
profile_prvd.o_CWARNFLAGS_ADD += -Wno-sign-conversion
profile_runtime.o_CWARNFLAGS_ADD += -Wno-sign-conversion
radix.o_CWARNFLAGS_ADD += -Wno-sign-conversion
randomdev.o_CWARNFLAGS_ADD += -Wno-sign-conversion
route6.o_CWARNFLAGS_ADD += -Wno-sign-conversion
routefs_ops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
scope6.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sdt.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sdt_arm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sdt_x86.o_CWARNFLAGS_ADD += -Wno-sign-conversion
shadow.o_CWARNFLAGS_ADD += -Wno-sign-conversion
spec_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
subr_log.o_CWARNFLAGS_ADD += -Wno-sign-conversion
subr_prf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sys_coalition.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sys_generic.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sys_pipe.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sys_reason.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sys_ulock.o_CWARNFLAGS_ADD += -Wno-sign-conversion
systemcalls.o_CWARNFLAGS_ADD += -Wno-sign-conversion
systrace.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sysv_msg.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sysv_sem.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sysv_shm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
tcp_cc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
tcp_cubic.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ubc_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
uipc_mbuf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
unix_signal.o_CWARNFLAGS_ADD += -Wno-sign-conversion
unix_startup.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ux_exception.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_attrlist.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_bio.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_cache.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_cluster.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_cprotect.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_disk_conditioner.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_fsevents.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_fslog.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_lookup.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_quota.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_syscalls.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_utfconv.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_vnops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfs_xattr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_compressor_backing_file.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_unix.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vn.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vnode_pager.o_CWARNFLAGS_ADD += -Wno-sign-conversion
# -Wconditional-uninitialized
doc_tombstone.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
kpi_vfs.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_attrlist.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_bio.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_cache.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_cluster.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_conf.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_cprotect.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_disk_conditioner.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_fsevents.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_fslog.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_init.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_io_compression_stats.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_lookup.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_quota.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_subr.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_support.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_syscalls.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_unicode.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_utfconf.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_vnops.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vfs_xattr.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
vnode_if.o_CWARNFLAGS_ADD += -Wconditional-uninitialized
# -Wxnu-typed-allocators
kern_malloc.o_CWARNFLAGS_ADD += -Wno-xnu-typed-allocators
#
# Machine-independent per-file flags
#
#
# This rule insures that the subr_prof.c does NOT get compiled with
# profiling. It implements mcount() and profiling it leads to recursion.
#
subr_prof.o_CFLAGS_RM = -pg
# Rebuild if per-file overrides change
${OBJS}: $(firstword $(MAKEFILE_LIST))
# Rebuild if global compile flags change
$(COBJS): .CFLAGS
.CFLAGS: ALWAYS
$(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
$(CXXOBJS): .CXXFLAGS
.CXXFLAGS: ALWAYS
$(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
$(SOBJS): .SFLAGS
.SFLAGS: ALWAYS
$(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
$(COMPONENT).filelist: $(OBJS)
@$(LOG_LDFILELIST) $(COMPONENT)
$(_v)for obj in ${OBJS}; do \
$(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
done > $(COMPONENT).filelist
$(COMPONENT).libfilelist: $(LIBOBJS)
@$(LOG_LDFILELIST) "lib$(COMPONENT)"
$(_v)for obj in ${LIBOBJS}; do \
$(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
done > $(COMPONENT).libfilelist
MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
init_sysent.c: $(TARGET)/bsd.syscalls.master
@$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
$(_v)$(MAKESYSCALLS) $< table > /dev/null
syscalls.c: $(TARGET)/bsd.syscalls.master
@$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
$(_v)$(MAKESYSCALLS) $< names > /dev/null
audit_kevents.c: $(TARGET)/bsd.syscalls.master
@$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
$(_v)$(MAKESYSCALLS) $< audit > /dev/null
systrace_args.c: $(TARGET)/bsd.syscalls.master
@$(LOG_GENERATE) "$@$(Color0) from $(ColorF)$(<F)$(Color0)"
$(_v)$(MAKESYSCALLS) $< systrace > /dev/null
ifeq ($(RC_ProjectName),xnu_libraries)
do_all: $(COMPONENT).libfilelist
else
do_all: $(COMPONENT).filelist
endif
do_build_all:: do_all
%RULES
include $(MakeInc_rule)
include $(MakeInc_dir)