flags.mk 308 B

123456789
  1. #This checks for any ENV variables and add those.
  2. ifeq ($(GIT_VERSION),)
  3. GIT_VERSION := $(shell git describe --always --long --dirty || echo "unknown")
  4. export GIT_VERSION
  5. endif
  6. CFLAGS := -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(selfdir)/powerpc/include $(USERCFLAGS)
  7. export CFLAGS