From 21f6c460fcda0161993f75421614efb6971af23b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 11 Mar 2017 14:06:42 -0500 Subject: Make a printf()-style API for colored messages --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3