From a5ec7464920ff9902509f51929cce5ac2d56fa93 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Sun, 18 Sep 2016 23:33:29 -0400 Subject: [PATCH] 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. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8b3caa4..58289d4 100644 --- a/Makefile +++ b/Makefile @@ -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