summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7fb655d..238de2b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,7 @@ BINDIR=/usr/bin
LIBDIR=/usr/lib
MY_LIBDIR=$(LIBDIR)/fb-client
CC=cc
-CFLAGS?=-O2
-MY_CFLAGS=-std=c99 -Wall -Wextra -pedantic
+CFLAGS:=-std=c99 -O2 -Wall -Wextra -pedantic $(CFLAGS)
LIBCURL:=$(shell pkg-config --silence-errors --libs --cflags libcurl)
ifdef LIBCURL
@@ -20,7 +19,7 @@ fb: fb.in
chmod 755 $@
fb-helper: fb-helper.c
- $(CC) $(MY_CFLAGS) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
+ $(CC) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
clean:
rm -f fb fb-helper