xref: /linux/tools/testing/selftests/powerpc/flags.mk (revision 0b0e9cdb3d1f8fda823b592b0667b4b0595e2ba7)
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
8CFLAGS := -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(selfdir)/powerpc/include $(USERCFLAGS)
9export CFLAGS
10