1 # SPDX-License-Identifier: GPL-2.0
2 CFLAGS
:= $(CFLAGS
) -Wall
-D_GNU_SOURCE
3 LDLIBS
:= $(LDLIBS
) -lm
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
/)
9 TEST_GEN_FILES
:= msr aperf
16 $(TEST_GEN_FILES
): $(HEADERS
)