commit f161baf0dd84d5fe31051dafffe580956e058d58 parent 63c41312dbeb32d617614d3ec255fc8cf7a90d93 Author: Andreas Gruhler <andreas.gruhler@uzh.ch> Date: Sun, 18 Dec 2016 15:34:53 +0100 Merge pull request #29 from shaggytwodope/master add makefile exception for osx Diffstat:
M | Makefile | | | 14 | ++++++++++++-- |
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -4,12 +4,22 @@ PREFIX ?= /usr/local BINDIR ?= $(DESTDIR)$(PREFIX)/bin CC = gcc -CFLAGS = -lncursesw -Wall +CFLAGS = -Wall +UNAME = ${shell uname} + +ifeq ($(UNAME),Linux) + LIBS = -lncursesw +endif + +ifeq ($(UNAME),Darwin) + LIBS = -lncurses +endif + default: $(TARGET) $(TARGET): $(SRC) - $(CC) $(SRC) -o $(TARGET) $(CFLAGS) + $(CC) $(SRC) -o $(TARGET) $(CFLAGS) $(LIBS) clean: rm -f $(TARGET)