xref: /linux/tools/testing/selftests/prctl/Makefile (revision 71e2f4dd5a65bd8dbca0b77661e75eea471168f8)
1# SPDX-License-Identifier: GPL-2.0
2ifndef CROSS_COMPILE
3uname_M := $(shell uname -m 2>/dev/null || echo not)
4ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
5
6ifeq ($(ARCH),x86)
7TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
8		disable-tsc-test
9all: $(TEST_PROGS)
10
11include ../lib.mk
12
13clean:
14	rm -fr $(TEST_PROGS)
15endif
16endif
17