diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-06-08 17:56:24 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-06-18 12:17:24 +0200 |
commit | 3905f9b23566abbfe2f03a8caeef8515f53c6a59 (patch) | |
tree | 2a6b56740075e93da7776d1d166d2d25cb398433 /Makefile | |
parent | 24e3a280b06f6db7f4addd801e96546ef946c8cf (diff) | |
download | pianobar-3905f9b23566abbfe2f03a8caeef8515f53c6a59.tar.gz pianobar-3905f9b23566abbfe2f03a8caeef8515f53c6a59.tar.bz2 pianobar-3905f9b23566abbfe2f03a8caeef8515f53c6a59.zip |
Makefile: Don't override CFLAGS and CC environment variables
Closes #129.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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=\ |