summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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