summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/pmu/Makefile
blob: 7216f009165537053a198bf905de14e80bab3b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
noarg:
	$(MAKE) -C ../

PROGS := count_instructions
EXTRA_SOURCES := ../harness.c event.c

all: $(PROGS)

$(PROGS): $(EXTRA_SOURCES)

# loop.S can only be built 64-bit
count_instructions: loop.S count_instructions.c $(EXTRA_SOURCES)
	$(CC) $(CFLAGS) -m64 -o $@ $^

run_tests: all
	@-for PROG in $(PROGS); do \
		./$$PROG; \
	done;

clean:
	rm -f $(PROGS) loop.o

.PHONY: all run_tests clean
OpenPOWER on IntegriCloud