Makefile (879f99ef2c4c05d9a7f0a67a05f1415663119825) Makefile (d34b661b10ab49c9058cd6602fd0162ba6db40a3)
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
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
16TARGETS = pmu copyloops
16TARGETS = pmu copyloops mm
17
18endif
19
20all:
21 @for TARGET in $(TARGETS); do \
22 $(MAKE) -C $$TARGET all; \
23 done;
24

--- 15 unchanged lines hidden ---
17
18endif
19
20all:
21 @for TARGET in $(TARGETS); do \
22 $(MAKE) -C $$TARGET all; \
23 done;
24

--- 15 unchanged lines hidden ---