]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/testing/selftests/powerpc/Makefile
selftests/powerpc: Add memcmp testcase
[mirror_ubuntu-bionic-kernel.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
11CC := $(CROSS_COMPILE)$(CC)
12CFLAGS := -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
13
14export CC CFLAGS
15
521adf53 16TARGETS = pmu copyloops mm tm primitives stringloops
0e56dacd
ME
17
18endif
19
cbfd7dab
ME
20all: $(TARGETS)
21
22$(TARGETS):
23 $(MAKE) -k -C $@ all
0e56dacd
ME
24
25run_tests: all
26 @for TARGET in $(TARGETS); do \
27 $(MAKE) -C $$TARGET run_tests; \
28 done;
29
30clean:
31 @for TARGET in $(TARGETS); do \
32 $(MAKE) -C $$TARGET clean; \
33 done;
34 rm -f tags
35
36tags:
37 find . -name '*.c' -o -name '*.h' | xargs ctags
38
cbfd7dab 39.PHONY: all run_tests clean tags $(TARGETS)