summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2019-02-25 09:14:51 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2019-02-25 09:14:51 +0200
commit51198be4ea5dbe3b4dd3eb956cc8d8edba20c06e (patch)
treeca44e793ec19f4e7e5164f2a5370bf667ebb2904 /Makefile
parent995841ab4dd7676151e5a74c735926e68b937971 (diff)
make: -D_FORTIYF_SOURCE=2 by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 54f80f3..90c11b3 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,9 @@ MAKEFLAGS += --no-builtin-rules
WARNINGS := -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=3 -Wstack-usage=12500 \
-Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
-override CFLAGS ?= -g
-override CFLAGS += -std=c11 $(WARNINGS)
+override CFLAGS ?= -g -O2 $(WARNINGS)
+override CFLAGS += -std=c11
+override CPPFLAGS ?= -D_FORTIFY_SOURCE=2
override CPPFLAGS += -Isrc
bins = escpos2raster starpbm