get rid of switching CC to c99 entirely
Specifying -std=c99 is sufficient. Tested with: clang 4.0.0, clang 3.8.0, gcc 5.4.0, gcc 4.2.1
This commit is contained in:
parent
c9a14d1c38
commit
756bdec1d8
1 changed files with 1 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -1,13 +1,11 @@
|
||||||
# Makefile for the open-source release of adventure 2.5
|
# Makefile for the open-source release of adventure 2.5
|
||||||
|
|
||||||
|
CC?=gcc
|
||||||
CCFLAGS=-std=c99
|
CCFLAGS=-std=c99
|
||||||
LIBS=
|
LIBS=
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
LIBS=-lrt
|
LIBS=-lrt
|
||||||
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
|
||||||
CC?=c99
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS=main.o init.o actions1.o actions2.o score.o misc.o
|
OBJS=main.o init.o actions1.o actions2.o score.o misc.o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue