]> Pileus Git - ~andy/linux/blob - tools/testing/selftests/powerpc/pmu/Makefile
Merge tag 'writeback-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg...
[~andy/linux] / tools / testing / selftests / powerpc / pmu / Makefile
1 noarg:
2         $(MAKE) -C ../
3
4 PROGS := count_instructions
5 EXTRA_SOURCES := ../harness.c event.c
6
7 all: $(PROGS)
8
9 $(PROGS): $(EXTRA_SOURCES)
10
11 # loop.S can only be built 64-bit
12 count_instructions: loop.S count_instructions.c $(EXTRA_SOURCES)
13         $(CC) $(CFLAGS) -m64 -o $@ $^
14
15 run_tests: all
16         @-for PROG in $(PROGS); do \
17                 ./$$PROG; \
18         done;
19
20 clean:
21         rm -f $(PROGS) loop.o
22
23 .PHONY: all run_tests clean