summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-06-08 17:56:24 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-06-18 12:17:24 +0200
commit3905f9b23566abbfe2f03a8caeef8515f53c6a59 (patch)
tree2a6b56740075e93da7776d1d166d2d25cb398433 /Makefile
parent24e3a280b06f6db7f4addd801e96546ef946c8cf (diff)
downloadpianobar-windows-3905f9b23566abbfe2f03a8caeef8515f53c6a59.tar.gz
pianobar-windows-3905f9b23566abbfe2f03a8caeef8515f53c6a59.tar.bz2
pianobar-windows-3905f9b23566abbfe2f03a8caeef8515f53c6a59.zip
Makefile: Don't override CFLAGS and CC environment variables
Closes #129.
Diffstat (limited to 'Makefile')
-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=\