summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/flags.mk
blob: b909bee3cb2a3f537647b2bb64e55cdf72f5b1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#This checks for any ENV variables and add those.

ifeq ($(GIT_VERSION),)
GIT_VERSION := $(shell git describe --always --long --dirty || echo "unknown")
export GIT_VERSION
endif

ifeq ($(CFLAGS),)
CFLAGS := -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(selfdir)/powerpc/include $(CFLAGS)
export CFLAGS
endif