This is xnu-8019. See this file in:
#
# 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 -DMACH_KERNEL_PRIVATE -DMACH_KERNEL
SFLAGS+= -include meta_features.h

ifeq ($(KSANCOV),1)
# Don't instrument functions called by the ksancov runtime. SanitizeCoverage does
# not support blacklists, so exclude the whole file.
machine_routines.o_CFLAGS_RM = $(KCOV_CFLAGS)
machine_routines_common.o_CFLAGS_RM = $(KCOV_CFLAGS)
pcb_native.o_CFLAGS_RM = $(KCOV_CFLAGS)
endif

#
# XXX: INCFLAGS to include libsa prototypes
#
INCFLAGS_MAKEFILE= -I$(SOURCE)libsa

#
# Directories for mig generated files
#
COMP_SUBDIRS = \
	atm \
	default_pager \
	device \
	mach \
	UserNotification \
	gssd \
	kextd \
	lockd

#
#  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

vm_tests.o_CFLAGS_ADD += -O0 -g

#
# Diagnostic opt-outs.  We need to make this list empty.
#
# DO NOT ADD MORE HERE.
#
# -Wno-atomic-implicit-seq-cst
mp.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
pmCPU.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
pmap_pcid.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
xcpm_dvfs.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
xcpm_fi.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
xcpm_idle.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
# -Wno-cast-align
bsd_i386.o_CWARNFLAGS_ADD += -Wno-cast-align
ccdigest_final_64be.o_CWARNFLAGS_ADD += -Wno-cast-align
ccdigest_init.o_CWARNFLAGS_ADD += -Wno-cast-align
ccdigest_update.o_CWARNFLAGS_ADD += -Wno-cast-align
cchmac_final.o_CWARNFLAGS_ADD += -Wno-cast-align
cchmac_init.o_CWARNFLAGS_ADD += -Wno-cast-align
commpage.o_CWARNFLAGS_ADD += -Wno-cast-align
cpu_threads.o_CWARNFLAGS_ADD += -Wno-cast-align
host.o_CWARNFLAGS_ADD += -Wno-cast-align
kdp_machdep.o_CWARNFLAGS_ADD += -Wno-cast-align
kdp_udp.o_CWARNFLAGS_ADD += -Wno-cast-align
kdp_x86_common.o_CWARNFLAGS_ADD += -Wno-cast-align
locks_i386.o_CWARNFLAGS_ADD += -Wno-cast-align
machine_task.o_CWARNFLAGS_ADD += -Wno-cast-align
model_dep.o_CWARNFLAGS_ADD += -Wno-cast-align
mp_desc.o_CWARNFLAGS_ADD += -Wno-cast-align
pcb.o_CWARNFLAGS_ADD += -Wno-cast-align
pcb_native.o_CWARNFLAGS_ADD += -Wno-cast-align
processor.o_CWARNFLAGS_ADD += -Wno-cast-align
status.o_CWARNFLAGS_ADD += -Wno-cast-align
task.o_CWARNFLAGS_ADD += -Wno-cast-align
task_policy.o_CWARNFLAGS_ADD += -Wno-cast-align
video_console.o_CWARNFLAGS_ADD += -Wno-cast-align
# -Wno-implicit-int-conversion
acpi.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
commpage.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
cpu.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
cpu_threads.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
kdebug_trigger.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
kern_stackshot.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
lapic_native.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
loose_ends.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
lz4.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
model_dep.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
mp.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
mp_desc.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pcb.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pcb_native.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pmap_pcid.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
pmap_x86_common.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
sched_clutch.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
thread_group.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
trap.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
uat.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
video_console.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
xcpm_dvfs.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
xcpm_ioctl.o_CWARNFLAGS_ADD += -Wno-implicit-int-conversion
# -Wno-shorten-64-to-32
arm_vm_init.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
backtrace.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
btlog.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
caches.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
callstack.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
clock.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
clock_oldops.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
iokit_rpc.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
ipc_kmsg.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
ipc_pset.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
ipc_right.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kdp_core.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kdp_vm.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kern_cdata.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
kern_stackshot.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
loose_ends.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
mach_msg.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
machine_routines.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
mk_timer.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
model_dep.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
pcb.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
pmap.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
processor_core.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
rtclock.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
status.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
telemetry.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_init.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_kern.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_object.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_shared_region_pager.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_swapfile_pager.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
vm_user.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
# -Wno-sign-conversion
Diagnostics.o_CWARNFLAGS_ADD += -Wno-sign-conversion
acpi.o_CWARNFLAGS_ADD += -Wno-sign-conversion
action.o_CWARNFLAGS_ADD += -Wno-sign-conversion
affinity.o_CWARNFLAGS_ADD += -Wno-sign-conversion
alternate_debugger.o_CWARNFLAGS_ADD += -Wno-sign-conversion
arcade.o_CWARNFLAGS_ADD += -Wno-sign-conversion
arm_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
arm_timer.o_CWARNFLAGS_ADD += -Wno-sign-conversion
arm_vm_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ast.o_CWARNFLAGS_ADD += -Wno-sign-conversion
backtrace.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bank.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bitmap_test.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_arm64.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_i386.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_i386_native.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_kern.o_CWARNFLAGS_ADD += -Wno-sign-conversion
bsd_vm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
btlog.o_CWARNFLAGS_ADD += -Wno-sign-conversion
caches.o_CWARNFLAGS_ADD += -Wno-sign-conversion
callstack.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ccdrbg_nisthmac.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cchmac.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cchmac_final.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cchmac_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
clock.o_CWARNFLAGS_ADD += -Wno-sign-conversion
clock_oldops.o_CWARNFLAGS_ADD += -Wno-sign-conversion
coalition.o_CWARNFLAGS_ADD += -Wno-sign-conversion
commpage.o_CWARNFLAGS_ADD += -Wno-sign-conversion
copyio.o_CWARNFLAGS_ADD += -Wno-sign-conversion
corpse.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu_quiesce.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu_threads.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpu_topology.o_CWARNFLAGS_ADD += -Wno-sign-conversion
cpuid.o_CWARNFLAGS_ADD += -Wno-sign-conversion
dbgwrap.o_CWARNFLAGS_ADD += -Wno-sign-conversion
debug.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ecc_logging.o_CWARNFLAGS_ADD += -Wno-sign-conversion
entropy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
exception.o_CWARNFLAGS_ADD += -Wno-sign-conversion
fpu.o_CWARNFLAGS_ADD += -Wno-sign-conversion
gzalloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
host.o_CWARNFLAGS_ADD += -Wno-sign-conversion
host_notify.o_CWARNFLAGS_ADD += -Wno-sign-conversion
hv.o_CWARNFLAGS_ADD += -Wno-sign-conversion
i386_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
i386_timer.o_CWARNFLAGS_ADD += -Wno-sign-conversion
i386_vm_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
iokit_rpc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_eventlink.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_host.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_importance.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_init.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_kmsg.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_kobject.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_mqueue.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_object.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_port.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_pset.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_right.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_space.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_tt.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ipc_voucher.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kalloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kdp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kdp_core.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kdp_machdep.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kdp_serial.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kdp_vm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_monotonic.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kern_stackshot.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kernel_tests.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kext_alloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpc_arm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpc_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kpc_x86.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kperf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kperf_kpc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kperf_mp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kperf_timer.o_CWARNFLAGS_ADD += -Wno-sign-conversion
kperfbsd.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ktest_emit.o_CWARNFLAGS_ADD += -Wno-sign-conversion
lapic_native.o_CWARNFLAGS_ADD += -Wno-sign-conversion
lazy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ledger.o_CWARNFLAGS_ADD += -Wno-sign-conversion
locks.o_CWARNFLAGS_ADD += -Wno-sign-conversion
locks_arm.o_CWARNFLAGS_ADD += -Wno-sign-conversion
locks_i386.o_CWARNFLAGS_ADD += -Wno-sign-conversion
locks_i386_opt.o_CWARNFLAGS_ADD += -Wno-sign-conversion
loose_ends.o_CWARNFLAGS_ADD += -Wno-sign-conversion
lowmem_vectors.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ltable.o_CWARNFLAGS_ADD += -Wno-sign-conversion
lz4.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mach_debug.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mach_kernelrpc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mach_port.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machdep_call.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine_check.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine_remote_time.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine_routines.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine_routines_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
machine_task.o_CWARNFLAGS_ADD += -Wno-sign-conversion
meminfo.o_CWARNFLAGS_ADD += -Wno-sign-conversion
memory_object.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mk_sp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mk_timer.o_CWARNFLAGS_ADD += -Wno-sign-conversion
model_dep.o_CWARNFLAGS_ADD += -Wno-sign-conversion
monotonic_arm64.o_CWARNFLAGS_ADD += -Wno-sign-conversion
monotonic_x86_64.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mp_desc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mp_native.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mpsc_queue.o_CWARNFLAGS_ADD += -Wno-sign-conversion
mtrr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pal_routines.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pcb.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pcb_native.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pet.o_CWARNFLAGS_ADD += -Wno-sign-conversion
platform_tests.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmCPU.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmap.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmap_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmap_pcid.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmap_tests.o_CWARNFLAGS_ADD += -Wno-sign-conversion
pmap_x86_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
printf.o_CWARNFLAGS_ADD += -Wno-sign-conversion
priority.o_CWARNFLAGS_ADD += -Wno-sign-conversion
prng_random.o_CWARNFLAGS_ADD += -Wno-sign-conversion
processor.o_CWARNFLAGS_ADD += -Wno-sign-conversion
remote_time.o_CWARNFLAGS_ADD += -Wno-sign-conversion
rtclock.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sart.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_amp.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_amp_common.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_average.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_clutch.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_dualq.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_multiq.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_prim.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sched_traditional.o_CWARNFLAGS_ADD += -Wno-sign-conversion
serial_console.o_CWARNFLAGS_ADD += -Wno-sign-conversion
serial_general.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sfi.o_CWARNFLAGS_ADD += -Wno-sign-conversion
shart.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sleh.o_CWARNFLAGS_ADD += -Wno-sign-conversion
stack.o_CWARNFLAGS_ADD += -Wno-sign-conversion
startup.o_CWARNFLAGS_ADD += -Wno-sign-conversion
status.o_CWARNFLAGS_ADD += -Wno-sign-conversion
status_shared.o_CWARNFLAGS_ADD += -Wno-sign-conversion
subrs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
sync_sema.o_CWARNFLAGS_ADD += -Wno-sign-conversion
syscall_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
t8020dart.o_CWARNFLAGS_ADD += -Wno-sign-conversion
task.o_CWARNFLAGS_ADD += -Wno-sign-conversion
task_policy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
telemetry.o_CWARNFLAGS_ADD += -Wno-sign-conversion
test_lock.o_CWARNFLAGS_ADD += -Wno-sign-conversion
test_thread_call.o_CWARNFLAGS_ADD += -Wno-sign-conversion
thread_call.o_CWARNFLAGS_ADD += -Wno-sign-conversion
thread_group.o_CWARNFLAGS_ADD += -Wno-sign-conversion
thread_policy.o_CWARNFLAGS_ADD += -Wno-sign-conversion
timer_call.o_CWARNFLAGS_ADD += -Wno-sign-conversion
trap.o_CWARNFLAGS_ADD += -Wno-sign-conversion
trustcache.o_CWARNFLAGS_ADD += -Wno-sign-conversion
turnstile.o_CWARNFLAGS_ADD += -Wno-sign-conversion
uat.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ucode.o_CWARNFLAGS_ADD += -Wno-sign-conversion
ux_handler.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vfp_state_test.o_CWARNFLAGS_ADD += -Wno-sign-conversion
video_console.o_CWARNFLAGS_ADD += -Wno-sign-conversion
video_scroll.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm32_user.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_compressor.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_compressor_algorithms.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_compressor_backing_store.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_compressor_pager.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_fault.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_fourk_pager.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_kern.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_map.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_map_store_ll.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_map_store_rb.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_object.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_pageout.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_phantom_cache.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_purgeable.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_resident.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_shared_region.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vm_user.o_CWARNFLAGS_ADD += -Wno-sign-conversion
vmx_cpu.o_CWARNFLAGS_ADD += -Wno-sign-conversion
waitq.o_CWARNFLAGS_ADD += -Wno-sign-conversion
work_interval.o_CWARNFLAGS_ADD += -Wno-sign-conversion
xcpm_dvfs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
xcpm_fi.o_CWARNFLAGS_ADD += -Wno-sign-conversion
xcpm_idle.o_CWARNFLAGS_ADD += -Wno-sign-conversion
xcpm_ioctl.o_CWARNFLAGS_ADD += -Wno-sign-conversion

# 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)
	$(_v)for hib_file in ${HIB_FILES};		\
	do	\
                $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} || exit 1; \
                mv $${hib_file}__ $${hib_file} || exit 1; \
	done
	@$(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

ifeq ($(RC_ProjectName),xnu_libraries)
do_all: $(COMPONENT).libfilelist
else
do_all: $(COMPONENT).filelist
endif

do_build_all:: do_all

# genassym.o actually is an assembly file,
# we name it genassym.o to help with the automatic
# dependency generation

GENASSYM_LOCATION = $(CURRENT_ARCH_CONFIG_LC)

ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64)
GENASSYM_LOCATION = i386
else ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
GENASSYM_LOCATION = i386
endif

-include genassym.d
genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
genassym.o: $(SOURCE_DIR)/$(COMPONENT)/$(GENASSYM_LOCATION)/genassym.c
	@$(LOG_GENASSYM) "$<"
	$(_v)${GENASSYM_KCC} ${CFLAGS} ${CFLAGS_NOLTO_FLAG} -fno-integrated-as -MD -S -o ${@} ${INCFLAGS} $<

assym.s: genassym.o
	$(_v)sed -e '/^[[:space:]]*DEFINITION__define__/!d;{N;s/\n//;}' -e 's/^[[:space:]]*DEFINITION__define__\([^:]*\):.*ascii.*\"[\$$]*\([-0-9\#]*\)\".*$$/#define \1 \2/' -e 'p'  -e 's/#//2' -e 's/^[[:space:]]*#define \([A-Za-z0-9_]*\)[[:space:]]*[\$$#]*\([-0-9]*\).*$$/#define \1_NUM \2/' genassym.o > $@

${SOBJS}: assym.s

%RULES

include $(MakeInc_rule)
include $(MakeInc_dir)