x86, cpufeature: If we disable CLFLUSH, we should disable CLFLUSHOPT
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / Makefile
blobbd24ae5aaeab052894d2c998754ec150084c9bba
1 # Makefile for powerpc selftests
3 # ARCH can be overridden by the user for cross compiling
4 ARCH ?= $(shell uname -m)
5 ARCH := $(shell echo $(ARCH) | sed -e s/ppc.*/powerpc/)
7 ifeq ($(ARCH),powerpc)
9 GIT_VERSION = $(shell git describe --always --long --dirty || echo "unknown")
11 CC := $(CROSS_COMPILE)$(CC)
12 CFLAGS := -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
14 export CC CFLAGS
16 TARGETS = pmu
18 endif
20 all:
21 @for TARGET in $(TARGETS); do \
22 $(MAKE) -C $$TARGET all; \
23 done;
25 run_tests: all
26 @for TARGET in $(TARGETS); do \
27 $(MAKE) -C $$TARGET run_tests; \
28 done;
30 clean:
31 @for TARGET in $(TARGETS); do \
32 $(MAKE) -C $$TARGET clean; \
33 done;
34 rm -f tags
36 tags:
37 find . -name '*.c' -o -name '*.h' | xargs ctags
39 .PHONY: all run_tests clean tags