1 diff --git a/Makefile b/Makefile
2 index 7c13b9275e0f..25765f76110e 100644
7 # Authors: Tim Stoakes <tim@stoakes.net>
9 -CFLAGS = -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64
10 +ALL_CFLAGS = -std=c99 -D_FILE_OFFSET_BITS=64 $(CFLAGS)
14 @@ -28,16 +28,10 @@ LIBS = -lnotmuch -lfuse
18 - $(CC) -o $@ $+ $(LIBS)
19 + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS)
22 rm -f *.o *.dep notmuchfs
25 - $(COMPILE.c) -MD -o $@ $<
27 - sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
28 - -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.dep; \
31 --include $(OBJS:.o=.dep)
32 + $(CC) $(ALL_CFLAGS) -c -o $@ $<