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 7526a71d8d0c426d570a6ddbe1eebd081cb9d90e..22f1370edf6665e0db8547cdb0cf35b80751f9cf 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,11
+2,10
@@
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=
-endif
-GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
-ifeq "$(GCCVERSIONGTEQ4)" "1"
+else ifeq "$(GCCVERSIONGTEQ4)" "1"
CC=c99 --std=gnu99
endif
CC=c99 --std=gnu99
endif