summaryrefslogtreecommitdiff
path: root/powerpc/pmu/Makefile
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@hackbox.linaro.org>2014-10-01 15:24:10 +0100
committerMilosz Wasilewski <milosz.wasilewski@hackbox.linaro.org>2014-10-01 15:24:10 +0100
commite14eb051ff73ab8692770762adf44045ba092398 (patch)
tree117c21aa0b42865a321b078ddb71c410506c51c9 /powerpc/pmu/Makefile
parent6c2a5f64d0517e100c569b59423d5f5abc627a7c (diff)
Update to aad7fb916a10f1065ad23de0c80a4a04bcba8437 from repo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git branch masterfe82dcec644244676d55a1384c958d5f67979adbaad7fb916a10f1065ad23de0c80a4a04bcba8437
Diffstat (limited to 'powerpc/pmu/Makefile')
-rw-r--r--powerpc/pmu/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/powerpc/pmu/Makefile b/powerpc/pmu/Makefile
new file mode 100644
index 0000000..c9f4263
--- /dev/null
+++ b/powerpc/pmu/Makefile
@@ -0,0 +1,38 @@
+noarg:
+ $(MAKE) -C ../
+
+PROGS := count_instructions l3_bank_test per_event_excludes
+EXTRA_SOURCES := ../harness.c event.c lib.c
+
+SUB_TARGETS = ebb
+
+all: $(PROGS) $(SUB_TARGETS)
+
+$(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 sub_run_tests
+ @-for PROG in $(PROGS); do \
+ ./$$PROG; \
+ done;
+
+clean: sub_clean
+ rm -f $(PROGS) loop.o
+
+$(SUB_TARGETS):
+ $(MAKE) -k -C $@ all
+
+sub_run_tests: all
+ @for TARGET in $(SUB_TARGETS); do \
+ $(MAKE) -C $$TARGET run_tests; \
+ done;
+
+sub_clean:
+ @for TARGET in $(SUB_TARGETS); do \
+ $(MAKE) -C $$TARGET clean; \
+ done;
+
+.PHONY: all run_tests clean sub_run_tests sub_clean $(SUB_TARGETS)