1 CC := $(CROSS_COMPILE)gcc 2 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE 3 LDFLAGS := $(LDFLAGS) -lm 4 5 TARGETS := msr aperf 6 7 TEST_PROGS := $(TARGETS) run.sh 8 9 .PHONY: all clean 10 all: $(TARGETS) 11 12 $(TARGETS): $(HEADERS) 13 14 clean: 15 rm -f $(TARGETS) 16