diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 891060ecc6dc3ed9db2700fd3a9cc66d6d728612
parent 535232a35a272781f8b64ee07ac07bf82df5035e
Author: Johnathan Jenkins <john@nixheads.co.uk>
Date:   Thu, 15 Dec 2016 18:05:47 -0800

add makefile exception for osx

Diffstat:
MMakefile | 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)