projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the if for GCC 4 to an elseif so it does not interfere with MacOS
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 8a306139bed5163fa9799cc654781cf8d942723c..22f1370edf6665e0db8547cdb0cf35b80751f9cf 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,8
+2,11
@@
LIBS=-lrt
UNAME_S := $(shell uname -s)
LIBS=-lrt
UNAME_S := $(shell uname -s)
+GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
ifeq ($(UNAME_S),Darwin)
LIBS=
ifeq ($(UNAME_S),Darwin)
LIBS=
+else ifeq "$(GCCVERSIONGTEQ4)" "1"
+ CC=c99 --std=gnu99
endif
OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o
endif
OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o