1 # SPDX-License-Identifier: GPL-2.0 !! 1 CC := $(CROSS_COMPILE)gcc 2 CFLAGS := $(CFLAGS) -Wall !! 2 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE 3 LDLIBS += -lm !! 3 LDFLAGS := $(LDFLAGS) -lm 4 4 5 ARCH ?= $(shell uname -m 2>/dev/null || echo n !! 5 TARGETS := msr aperf 6 ARCH_PROCESSED := $(shell echo $(ARCH) | sed - << 7 6 8 ifeq (x86,$(ARCH_PROCESSED)) !! 7 TEST_PROGS := $(TARGETS) run.sh 9 TEST_GEN_FILES := msr aperf << 10 endif << 11 8 12 TEST_PROGS := run.sh !! 9 .PHONY: all clean >> 10 all: $(TARGETS) 13 11 14 include ../lib.mk !! 12 $(TARGETS): $(HEADERS) 15 13 16 $(TEST_GEN_FILES): $(HEADERS) !! 14 clean: >> 15 rm -f $(TARGETS)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.