xref: /linux/tools/testing/selftests/intel_pstate/Makefile (revision be709d48329a500621d2a05835283150ae137b45)
1# SPDX-License-Identifier: GPL-2.0
2CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
3LDLIBS := $(LDLIBS) -lm
4
5uname_M := $(shell uname -m 2>/dev/null || echo not)
6ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
7
8ifeq (x86,$(ARCH))
9TEST_GEN_FILES := msr aperf
10endif
11
12TEST_PROGS := run.sh
13
14include ../lib.mk
15
16$(TEST_GEN_FILES): $(HEADERS)
17