xregs_sig: Simplify Makefile by using MACHINE_CPUARCH in SRCS

Reviewed by:		kib, jhb
Differential Revision:	https://reviews.freebsd.org/D40383
This commit is contained in:
Dmitry Chagin 2023-06-03 20:13:23 +03:00
parent 1b0d96f3c4
commit e5b3cd6100

View file

@ -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>