summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-03-11 14:06:42 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-03-11 14:06:42 -0500
commit21f6c460fcda0161993f75421614efb6971af23b (patch)
tree80ff098bd62d81a694ad22c1dae66cdb01c7e51f /Makefile
parentd03c58ef1cc8aa932b4f652dea14f762716bc02a (diff)
downloadbfs-21f6c460fcda0161993f75421614efb6971af23b.tar.xz
Make a printf()-style API for colored messages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e1d302f..ebd929a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,8 @@ VERSION := $(shell git describe --always)
endif
CC ?= gcc
-CFLAGS ?= -g -Wall
+WFLAGS ?= -Wall -Wmissing-declarations
+CFLAGS ?= -g $(WFLAGS)
LDFLAGS ?=
DEPFLAGS ?= -MD -MP -MF $(@:.o=.d)
RM ?= rm -f
@@ -46,7 +47,7 @@ all: bfs
bfs: bftw.o color.o dstring.o eval.o main.o parse.o printf.o typo.o util.o
$(CC) $(ALL_LDFLAGS) $^ -o $@
-release: CFLAGS := -O3 -flto -Wall -DNDEBUG
+release: CFLAGS := -O3 -flto $(WFLAGS) -DNDEBUG
release: bfs
%.o: %.c