summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6075a01..97ca76b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,14 @@ LIBDIR:=${PREFIX}/lib
INCDIR:=${PREFIX}/include
MANDIR:=${PREFIX}/share/man
DYNLINK:=0
-CFLAGS:=-O2 -DNDEBUG
-LDFLAGS:=
-CC:=c99
+
+# Respect environment variables set by user; does not work with :=
+ifeq (${CFLAGS},)
+ CFLAGS=-O2 -DNDEBUG
+endif
+ifeq (${CC},cc)
+ CC=c99
+endif
PIANOBAR_DIR=src
PIANOBAR_SRC=\