git: e5b3cd6100e4 - main - xregs_sig: Simplify Makefile by using MACHINE_CPUARCH in SRCS

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 17:13:36 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=e5b3cd6100e4ecaba0a21f58c2fd6ca0cb0dc8df

commit e5b3cd6100e4ecaba0a21f58c2fd6ca0cb0dc8df
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-06-03 17:13:23 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-06-03 17:13:23 +0000

    xregs_sig: Simplify Makefile by using MACHINE_CPUARCH in SRCS
    
    Reviewed by:            kib, jhb
    Differential Revision:  https://reviews.freebsd.org/D40383
---
 tools/test/xregs_sig/Makefile | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/tools/test/xregs_sig/Makefile b/tools/test/xregs_sig/Makefile
index 2827c8aa7486..a8817c372840 100644
--- a/tools/test/xregs_sig/Makefile
+++ b/tools/test/xregs_sig/Makefile
@@ -2,16 +2,10 @@
 .include <src.opts.mk>
 
 PROG=		xregs_sig
-SRCS=		xregs_sig.c
+SRCS=		xregs_sig.c c2x2c_${MACHINE_CPUARCH}.S
+
 MAN=
 
 LIBADD=		pthread
 
-.if ${MACHINE_CPUARCH} == "amd64"
-SRCS+=		c2x2c_amd64.S
-.endif
-.if ${MACHINE_CPUARCH} == "aarch64"
-SRCS+=		c2x2c_aarch64.S
-.endif
-
 .include <bsd.prog.mk>