]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
ed2d26d7 | 2 | CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE |
93a4388b | 3 | LDLIBS += -lm |
ed2d26d7 | 4 | |
6aa69043 DD |
5 | uname_M := $(shell uname -m 2>/dev/null || echo not) |
6 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) | |
7 | ||
8 | ifeq (x86,$(ARCH)) | |
29fa1d43 | 9 | TEST_GEN_FILES := msr aperf |
67b2e30e | 10 | endif |
ed2d26d7 | 11 | |
29fa1d43 | 12 | TEST_PROGS := run.sh |
ed2d26d7 | 13 | |
29fa1d43 | 14 | include ../lib.mk |
ed2d26d7 | 15 | |
29fa1d43 | 16 | $(TEST_GEN_FILES): $(HEADERS) |