diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-03-14 00:42:25 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-03-14 00:42:25 +0100 |
commit | 540affb926afd91a1f4cacbe1ad4e27225d88a72 (patch) | |
tree | ae0bcc4a4adf44d3d6d8f165950774b86d323a42 /Makefile | |
parent | b5b33a50fcb3a5e19751a38ad7b3cc71dfcdbfaf (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-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |