X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=22f1370edf6665e0db8547cdb0cf35b80751f9cf;hb=7555c5354a0db4b0eafe5e9b742068f01985860c;hp=7526a71d8d0c426d570a6ddbe1eebd081cb9d90e;hpb=ae3c34084f2afe7332973ab20fcaf1a29264c078;p=open-adventure.git diff --git a/Makefile b/Makefile index 7526a71..22f1370 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,10 @@ LIBS=-lrt UNAME_S := $(shell uname -s) +GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) ifeq ($(UNAME_S),Darwin) LIBS= -endif -GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) -ifeq "$(GCCVERSIONGTEQ4)" "1" +else ifeq "$(GCCVERSIONGTEQ4)" "1" CC=c99 --std=gnu99 endif