xref: /linux/tools/testing/selftests/powerpc/flags.mk (revision 68c402fe5c5e5aa9a04c8bba9d99feb08a68afa7)
1#This checks for any ENV variables and add those.
2
3ifeq ($(GIT_VERSION),)
4GIT_VERSION := $(shell git describe --always --long --dirty || echo "unknown")
5export GIT_VERSION
6endif
7
8ifeq ($(CFLAGS),)
9CFLAGS := -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(selfdir)/powerpc/include $(CFLAGS)
10export CFLAGS
11endif
12
13