Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[deliverable/linux.git] / tools / testing / selftests / powerpc / Makefile
CommitLineData
0e56dacd
ME
1# Makefile for powerpc selftests
2
3# ARCH can be overridden by the user for cross compiling
4ARCH ?= $(shell uname -m)
5ARCH := $(shell echo $(ARCH) | sed -e s/ppc.*/powerpc/)
6
7ifeq ($(ARCH),powerpc)
8
9GIT_VERSION = $(shell git describe --always --long --dirty || echo "unknown")
10
ca49e64f 11CFLAGS := -std=gnu99 -Wall -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
0e56dacd 12
84f887bf 13export CFLAGS
0e56dacd 14
43750880
CS
15SUB_DIRS = alignment \
16 benchmarks \
65b6ba63 17 copyloops \
438517ec 18 context_switch \
65b6ba63
ME
19 dscr \
20 mm \
21 pmu \
22 primitives \
23 stringloops \
24 switch_endian \
25 syscalls \
26 tm \
01127f1e
CB
27 vphn \
28 math
0e56dacd
ME
29
30endif
31
a908f5de 32all: $(SUB_DIRS)
cbfd7dab 33
a908f5de 34$(SUB_DIRS):
cbfd7dab 35 $(MAKE) -k -C $@ all
0e56dacd 36
6faeeea4
ME
37include ../lib.mk
38
39override define RUN_TESTS
a908f5de 40 @for TARGET in $(SUB_DIRS); do \
0e56dacd
ME
41 $(MAKE) -C $$TARGET run_tests; \
42 done;
6faeeea4
ME
43endef
44
45override define INSTALL_RULE
d19d5efd 46 @for TARGET in $(SUB_DIRS); do \
6faeeea4
ME
47 $(MAKE) -C $$TARGET install; \
48 done;
49endef
50
51override define EMIT_TESTS
d19d5efd 52 @for TARGET in $(SUB_DIRS); do \
6faeeea4
ME
53 $(MAKE) -s -C $$TARGET emit_tests; \
54 done;
55endef
0e56dacd
ME
56
57clean:
a908f5de 58 @for TARGET in $(SUB_DIRS); do \
0e56dacd
ME
59 $(MAKE) -C $$TARGET clean; \
60 done;
61 rm -f tags
62
63tags:
64 find . -name '*.c' -o -name '*.h' | xargs ctags
65
d19d5efd 66.PHONY: tags $(SUB_DIRS)
This page took 0.138374 seconds and 5 git commands to generate.