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
/)
9 GIT_VERSION
= $(shell git describe
--always
--long
--dirty || echo
"unknown")
11 CFLAGS
:= -Wall
-O2
-Wall
-Werror
-DGIT_VERSION
='"$(GIT_VERSION)"' -I
$(CURDIR
) $(CFLAGS
)
15 SUB_DIRS
= benchmarks \
38 override define RUN_TESTS
39 @for TARGET in
$(SUB_DIRS
); do \
40 $(MAKE
) -C
$$TARGET run_tests
; \
44 override define INSTALL_RULE
45 @for TARGET in
$(SUB_DIRS
); do \
46 $(MAKE
) -C
$$TARGET install; \
50 override define EMIT_TESTS
51 @for TARGET in
$(SUB_DIRS
); do \
52 $(MAKE
) -s
-C
$$TARGET emit_tests
; \
57 @for TARGET in
$(SUB_DIRS
); do \
58 $(MAKE
) -C
$$TARGET clean; \
63 find .
-name
'*.c' -o
-name
'*.h' | xargs ctags
65 .PHONY
: tags $(SUB_DIRS
)
This page took 0.030231 seconds and 5 git commands to generate.