2023-05-13 13:56:08 +03:00
|
|
|
# $NetBSD: exec.mk,v 1.7 2023/05/13 10:56:08 riastradh Exp $
|
2016-12-23 13:19:57 +03:00
|
|
|
|
|
|
|
# this makefile fragment can be included to modify the default
|
|
|
|
# ABI a program is compiled with. this is designed to be used
|
|
|
|
# by tools that must match the kernel image like savecore(8)
|
|
|
|
# and kvm(3) using tools.
|
|
|
|
|
|
|
|
# currently this file is used by these Makefiles:
|
|
|
|
#
|
2023-05-13 13:56:08 +03:00
|
|
|
# external/bsd/ipf/Makefile.inc
|
2016-12-23 13:19:57 +03:00
|
|
|
# sbin/savecore/Makefile
|
|
|
|
# usr.bin/fstat/Makefile
|
|
|
|
# usr.bin/netstat/Makefile
|
|
|
|
# usr.bin/pmap/Makefile
|
|
|
|
# usr.bin/systat/Makefile
|
2016-12-30 02:42:38 +03:00
|
|
|
# usr.bin/vmstat/Makefile
|
2016-12-23 13:19:57 +03:00
|
|
|
# usr.sbin/crash/Makefile
|
|
|
|
# usr.sbin/kgmon/Makefile
|
|
|
|
# usr.sbin/pstat/Makefile
|
|
|
|
# usr.sbin/trpt/Makefile
|
|
|
|
#
|
|
|
|
# of these, savecore, crash and kgmon are the only ones that
|
|
|
|
# can be considered "not a bug". all the *stat tools should
|
|
|
|
# be converted to use sysctl(3) on the running kernel, and
|
|
|
|
# anyone who needs kvm-access on crash dumps can build their
|
2021-01-05 14:07:59 +03:00
|
|
|
# own 64 bit version as necessary. ipfilter doesn't use
|
|
|
|
# 64-bit alignment/size safe structures.
|
2023-05-13 13:56:08 +03:00
|
|
|
#
|
2016-12-23 13:19:57 +03:00
|
|
|
|
|
|
|
# mips64 defaults to 32 bit userland, but with a 64 bit kernel
|
|
|
|
# most kvm-using tools are happier with 64 bit.
|
|
|
|
|
2018-09-20 05:51:21 +03:00
|
|
|
.if ${MACHINE_ARCH} == "mips64el" || (${MACHINE_ARCH} == "mips64eb" && ${MACHINE} != "sgimips")
|
2016-12-23 13:19:57 +03:00
|
|
|
|
|
|
|
# XXX -pie makes n64 crash
|
|
|
|
NOPIE=1
|
|
|
|
|
|
|
|
. include <bsd.own.mk>
|
|
|
|
|
2017-01-06 00:28:42 +03:00
|
|
|
. if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG)
|
2016-12-23 13:19:57 +03:00
|
|
|
. include "${.PARSEDIR}/mips64/64/bsd.64.mk"
|
|
|
|
. endif # ${MKCOMPAT} != "no"
|
|
|
|
|
|
|
|
.endif # mips64
|