irqchip: Fix dependencies for archs w/o HAS_IOMEM
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / pmu / Makefile
bloba9099d9f8f39ea8a38a6345b15e2d24ab2e00eb7
1 noarg:
2 $(MAKE) -C ../
4 TEST_PROGS := count_instructions l3_bank_test per_event_excludes
5 EXTRA_SOURCES := ../harness.c event.c lib.c
7 all: $(TEST_PROGS) ebb
9 $(TEST_PROGS): $(EXTRA_SOURCES)
11 # loop.S can only be built 64-bit
12 count_instructions: loop.S count_instructions.c $(EXTRA_SOURCES)
13 $(CC) $(CFLAGS) -m64 -o $@ $^
15 include ../../lib.mk
17 DEFAULT_RUN_TESTS := $(RUN_TESTS)
18 override define RUN_TESTS
19 $(DEFAULT_RUN_TESTS)
20 $(MAKE) -C ebb run_tests
21 endef
23 DEFAULT_EMIT_TESTS := $(EMIT_TESTS)
24 override define EMIT_TESTS
25 $(DEFAULT_EMIT_TESTS)
26 $(MAKE) -s -C ebb emit_tests
27 endef
29 DEFAULT_INSTALL_RULE := $(INSTALL_RULE)
30 override define INSTALL_RULE
31 $(DEFAULT_INSTALL_RULE)
32 $(MAKE) -C ebb install
33 endef
35 clean:
36 rm -f $(TEST_PROGS) loop.o
37 $(MAKE) -C ebb clean
39 ebb:
40 $(MAKE) -k -C $@ all
42 .PHONY: all run_tests clean ebb