summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-03-14 00:42:25 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-03-14 00:42:25 +0100
commit540affb926afd91a1f4cacbe1ad4e27225d88a72 (patch)
treeae0bcc4a4adf44d3d6d8f165950774b86d323a42 /Makefile
parentb5b33a50fcb3a5e19751a38ad7b3cc71dfcdbfaf (diff)
Makefile: preserve some flags even if $CFLAGS is setv1.0.1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5884b00..71fcfa0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,8 @@ BINDIR=/usr/bin
LIBDIR=/usr/lib
MY_LIBDIR=$(LIBDIR)/fb-client
CC=cc
-CFLAGS?=-O2 -std=c99 -Wall -Wextra -pedantic
+CFLAGS?=-O2
+MY_CFLAGS=-std=c99 -Wall -Wextra -pedantic
LIBCURL:=$(shell pkg-config --silence-errors --libs --cflags libcurl)
ifdef LIBCURL
@@ -19,7 +20,7 @@ fb: fb.in
chmod 755 $@
fb-helper: fb-helper.c
- $(CC) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
+ $(CC) $(MY_CFLAGS) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
clean:
rm -f fb fb-helper