- Since the example is for a cpu, use MACHINE_CPU instead of MACHINE_ARCH.

- In some cpu, it is necessary to use GOT to make it a PIE,
  which are too complicated as examples, so MKPIE=no by default.
This commit is contained in:
ryo 2022-10-14 19:42:13 +00:00
parent aef5eb5f59
commit 945c4dec66
1 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
# $NetBSD: Makefile.inst,v 1.1 2011/11/12 01:18:41 jmmv Exp $
# $NetBSD: Makefile.inst,v 1.2 2022/10/14 19:42:13 ryo Exp $
.include <bsd.own.mk>
.if exists(${MACHINE_ARCH}.s)
.if exists(${MACHINE_CPU}.s)
PROG= hello
MAN= # empty
LDFLAGS= -nostdlib
SRCS= ${MACHINE_ARCH}.s
SRCS= ${MACHINE_CPU}.s
MKPIE= no
.endif
.include <bsd.prog.mk>