projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0f604
)
Test for >= gcc 4, and change to g99 -std=gnu99 for the compiler if it is found.
author
Warren Melnick
<warrenmelnick@gmail.com>
Mon, 29 May 2017 14:42:37 +0000
(10:42 -0400)
committer
Warren Melnick
<warrenmelnick@gmail.com>
Mon, 29 May 2017 14:42:37 +0000
(10:42 -0400)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 8a306139bed5163fa9799cc654781cf8d942723c..7526a71d8d0c426d570a6ddbe1eebd081cb9d90e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-5,6
+5,10
@@
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LIBS=
endif
+GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
+ifeq "$(GCCVERSIONGTEQ4)" "1"
+ CC=c99 --std=gnu99
+endif
OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o
SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control