1 1.3.2.2 pgoyette # $NetBSD: exec.mk,v 1.3.2.2 2017/01/07 08:53:41 pgoyette Exp $ 2 1.3.2.2 pgoyette 3 1.3.2.2 pgoyette # this makefile fragment can be included to modify the default 4 1.3.2.2 pgoyette # ABI a program is compiled with. this is designed to be used 5 1.3.2.2 pgoyette # by tools that must match the kernel image like savecore(8) 6 1.3.2.2 pgoyette # and kvm(3) using tools. 7 1.3.2.2 pgoyette 8 1.3.2.2 pgoyette # currently this file is used by these Makefiles: 9 1.3.2.2 pgoyette # 10 1.3.2.2 pgoyette # sbin/savecore/Makefile 11 1.3.2.2 pgoyette # usr.bin/fstat/Makefile 12 1.3.2.2 pgoyette # usr.bin/netstat/Makefile 13 1.3.2.2 pgoyette # usr.bin/pmap/Makefile 14 1.3.2.2 pgoyette # usr.bin/systat/Makefile 15 1.3.2.2 pgoyette # usr.bin/vmstat/Makefile 16 1.3.2.2 pgoyette # usr.sbin/crash/Makefile 17 1.3.2.2 pgoyette # usr.sbin/kgmon/Makefile 18 1.3.2.2 pgoyette # usr.sbin/pstat/Makefile 19 1.3.2.2 pgoyette # usr.sbin/trpt/Makefile 20 1.3.2.2 pgoyette # 21 1.3.2.2 pgoyette # of these, savecore, crash and kgmon are the only ones that 22 1.3.2.2 pgoyette # can be considered "not a bug". all the *stat tools should 23 1.3.2.2 pgoyette # be converted to use sysctl(3) on the running kernel, and 24 1.3.2.2 pgoyette # anyone who needs kvm-access on crash dumps can build their 25 1.3.2.2 pgoyette # own 64 bit version as necessary. 26 1.3.2.2 pgoyette 27 1.3.2.2 pgoyette # mips64 defaults to 32 bit userland, but with a 64 bit kernel 28 1.3.2.2 pgoyette # most kvm-using tools are happier with 64 bit. 29 1.3.2.2 pgoyette 30 1.3.2.2 pgoyette .if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" 31 1.3.2.2 pgoyette 32 1.3.2.2 pgoyette # XXX -pie makes n64 crash 33 1.3.2.2 pgoyette NOPIE=1 34 1.3.2.2 pgoyette # XXX interesting dynamic binaries crash (hello.c works.) 35 1.3.2.2 pgoyette LDSTATIC=-static 36 1.3.2.2 pgoyette 37 1.3.2.2 pgoyette . include <bsd.own.mk> 38 1.3.2.2 pgoyette 39 1.3.2.2 pgoyette . if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG) 40 1.3.2.2 pgoyette . include "${.PARSEDIR}/mips64/64/bsd.64.mk" 41 1.3.2.2 pgoyette . endif # ${MKCOMPAT} != "no" 42 1.3.2.2 pgoyette 43 1.3.2.2 pgoyette .endif # mips64 44