LingmoOS-kernel/tools/testing/selftests/powerpc/flags.mk

10 lines
308 B
Makefile
Raw Normal View History

2024-07-18 03:58:23 +00:00
#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
CFLAGS := -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(selfdir)/powerpc/include $(USERCFLAGS)
export CFLAGS