From 7113fbaa7361be3bc6fa07cf806aba07095fb3ad Mon Sep 17 00:00:00 2001 From: Richard Reader Date: Mon, 29 May 2017 10:32:40 +0100 Subject: [PATCH] No librt on macOS --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5eab9d5..17bbe69 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,14 @@ # Makefile for the open-source release of adventure 2.5 - -LIBS=-lrt +ifeq ($(OS),Windows_NT) + LIBS=-lrt +else + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Darwin) + LIBS= + else + LIBS=-lrt + endif +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