1 1.7 riastrad # $NetBSD: exec.mk,v 1.7 2023/05/13 10:56:08 riastradh Exp $ 2 1.1 mrg 3 1.1 mrg # this makefile fragment can be included to modify the default 4 1.1 mrg # ABI a program is compiled with. this is designed to be used 5 1.1 mrg # by tools that must match the kernel image like savecore(8) 6 1.1 mrg # and kvm(3) using tools. 7 1.1 mrg 8 1.1 mrg # currently this file is used by these Makefiles: 9 1.1 mrg # 10 1.7 riastrad # external/bsd/ipf/Makefile.inc 11 1.1 mrg # sbin/savecore/Makefile 12 1.1 mrg # usr.bin/fstat/Makefile 13 1.1 mrg # usr.bin/netstat/Makefile 14 1.1 mrg # usr.bin/pmap/Makefile 15 1.1 mrg # usr.bin/systat/Makefile 16 1.2 mrg # usr.bin/vmstat/Makefile 17 1.1 mrg # usr.sbin/crash/Makefile 18 1.1 mrg # usr.sbin/kgmon/Makefile 19 1.1 mrg # usr.sbin/pstat/Makefile 20 1.1 mrg # usr.sbin/trpt/Makefile 21 1.1 mrg # 22 1.1 mrg # of these, savecore, crash and kgmon are the only ones that 23 1.1 mrg # can be considered "not a bug". all the *stat tools should 24 1.1 mrg # be converted to use sysctl(3) on the running kernel, and 25 1.1 mrg # anyone who needs kvm-access on crash dumps can build their 26 1.5 simonb # own 64 bit version as necessary. ipfilter doesn't use 27 1.5 simonb # 64-bit alignment/size safe structures. 28 1.7 riastrad # 29 1.1 mrg 30 1.1 mrg # mips64 defaults to 32 bit userland, but with a 64 bit kernel 31 1.1 mrg # most kvm-using tools are happier with 64 bit. 32 1.1 mrg 33 1.4 macallan .if ${MACHINE_ARCH} == "mips64el" || (${MACHINE_ARCH} == "mips64eb" && ${MACHINE} != "sgimips") 34 1.1 mrg 35 1.1 mrg # XXX -pie makes n64 crash 36 1.1 mrg NOPIE=1 37 1.1 mrg 38 1.1 mrg . include <bsd.own.mk> 39 1.1 mrg 40 1.3 skrll . if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG) 41 1.1 mrg . include "${.PARSEDIR}/mips64/64/bsd.64.mk" 42 1.1 mrg . endif # ${MKCOMPAT} != "no" 43 1.1 mrg 44 1.1 mrg .endif # mips64 45