Merge pull request #61 from dimkr/master
authorMichael Göhler <somebody.here@gmx.de>
Thu, 20 Nov 2014 20:30:37 +0000 (21:30 +0100)
committerMichael Göhler <somebody.here@gmx.de>
Thu, 20 Nov 2014 20:30:37 +0000 (21:30 +0100)
Respect CFLAGS, LDFLAGS and CPPFLAGS.

Makefile
src/Makefile

index 9abc3c0..c1f8658 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ DESTDIR =
 PREFIX  = /usr/local
 
 CURSES  = ncursesw
-LDFLAGS = -s
+LDFLAGS ?= -s
 
 ifeq (Windows_NT,$(OS))
        ifeq (,$(findstring CYGWIN,$(UNAME_S)))
index ac4888e..333ed8d 100644 (file)
@@ -22,8 +22,9 @@ UNAME_S := $(shell uname -s 2>/dev/null || echo not)
 
 SOURCES  = $(wildcard *.c)
 OBJECTS  = $(SOURCES:.c=.o)
-CFLAGS   = -O3 -Wall
-CPPFLAGS = -I../include
+CFLAGS   ?= -O3
+CFLAGS   += -Wall
+CPPFLAGS += -I../include
 
 ifeq ($(DEBUG),1)
        CFLAGS := -O0 -Wall -g