only add -lrt on Linux
Most other UNIX-likes (like *BSD) don't need it.
This commit is contained in:
parent
77d2a1e5dd
commit
73ce944bb2
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -1,11 +1,11 @@
|
|||
# Makefile for the open-source release of adventure 2.5
|
||||
|
||||
CCFLAGS=-std=c99
|
||||
LIBS=-lrt
|
||||
LIBS=
|
||||
UNAME_S := $(shell uname -s)
|
||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
LIBS=
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
LIBS=-lrt
|
||||
else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||
CC=c99
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue