Module Name: src Committed By: ryo Date: Fri Oct 14 19:42:14 UTC 2022
Modified Files: src/share/examples/asm/hello: Makefile.inst Log Message: - 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/share/examples/asm/hello/Makefile.inst Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/examples/asm/hello/Makefile.inst diff -u src/share/examples/asm/hello/Makefile.inst:1.1 src/share/examples/asm/hello/Makefile.inst:1.2 --- src/share/examples/asm/hello/Makefile.inst:1.1 Sat Nov 12 01:18:41 2011 +++ src/share/examples/asm/hello/Makefile.inst Fri Oct 14 19:42:13 2022 @@ -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>