update Makefile to support overrides

This is what I needed to do to package this app for gentoo.  Hilarious work btw, really love it. thanks.
This commit is contained in:
Zero_Chaos 2016-09-18 23:33:29 -04:00 committed by GitHub
parent b95317c382
commit a5ec746492

View File

@ -1,7 +1,7 @@
UNAME := $(shell sh -c 'uname -s 2>/dev/null || echo not')
# Installation directories following GNU conventions
prefix = /usr/local
prefix ?= /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
sbindir = $(exec_prefix)/sbin
@ -14,8 +14,8 @@ BIN=bin
OBJ=obj
SRC=src
CC = gcc
CFLAGS = -Wextra -Wall
CC ?= gcc
CFLAGS ?= -Wextra -Wall
LDLIBS = -lncursesw
DARWIN_LDLIBS = -lncurses
NCURSES_H = /usr/include/ncurses.h