From f01121c37c95fff7fce140bb8de71fa1ad325640 Mon Sep 17 00:00:00 2001 From: Jason Benaim Date: Sat, 24 Nov 2018 03:19:58 -0800 Subject: [PATCH] Fix: using -Werror for non-debug builds --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 68dc978..424a761 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ target ?= hs100 objects := $(patsubst %.c,%.o,$(wildcard *.c)) -CFLAGS=-Wall -Werror -std=c99 -ggdb -Os + +CFLAGS=-std=c99 -Os +ifdef DEBUG +CFLAGS+=-Wall -Werror -ggdb +endif .PHONY: all all: $(target)