selftests/powerpc: Remove -flto from common CFLAGS
[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
a4cf0a2e 11CFLAGS := -Wall -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
0e56dacd 12
84f887bf 13export CFLAGS
0e56dacd 14
65b6ba63
ME
15SUB_DIRS = benchmarks \
16 copyloops \
17 dscr \
18 mm \
19 pmu \
20 primitives \
21 stringloops \
22 switch_endian \
23 syscalls \
24 tm \
25 vphn
0e56dacd
ME
26
27endif
28
a908f5de 29all: $(SUB_DIRS)
cbfd7dab 30
a908f5de 31$(SUB_DIRS):
cbfd7dab 32 $(MAKE) -k -C $@ all
0e56dacd 33
6faeeea4
ME
34include ../lib.mk
35
36override define RUN_TESTS
a908f5de 37 @for TARGET in $(SUB_DIRS); do \
0e56dacd
ME
38 $(MAKE) -C $$TARGET run_tests; \
39 done;
6faeeea4
ME
40endef
41
42override define INSTALL_RULE
d19d5efd 43 @for TARGET in $(SUB_DIRS); do \
6faeeea4
ME
44 $(MAKE) -C $$TARGET install; \
45 done;
46endef
47
48override define EMIT_TESTS
d19d5efd 49 @for TARGET in $(SUB_DIRS); do \
6faeeea4
ME
50 $(MAKE) -s -C $$TARGET emit_tests; \
51 done;
52endef
0e56dacd
ME
53
54clean:
a908f5de 55 @for TARGET in $(SUB_DIRS); do \
0e56dacd
ME
56 $(MAKE) -C $$TARGET clean; \
57 done;
58 rm -f tags
59
60tags:
61 find . -name '*.c' -o -name '*.h' | xargs ctags
62
d19d5efd 63.PHONY: tags $(SUB_DIRS)
This page took 0.123351 seconds and 5 git commands to generate.