From f257cda04ad0f5b6efbb435de61e45d2ae5acbb1 Mon Sep 17 00:00:00 2001 From: "Sijmen J. Mulder" Date: Sun, 16 Dec 2018 17:56:41 +0100 Subject: Make optimization flags configurable --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1f1af1..30d66f4 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,10 @@ STRIP ?= strip PKG_CONFIG ?= pkg-config INSTALL ?= install -CFLAGS ?= -O3 +CFLAGS_OPTIMIZATION ?= -O3 + CFLAGS += -Wall -Wextra -Wno-unused-parameter +CFLAGS += $(CFLAGS_OPTIMIZATION) ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1) CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw) -- cgit v1.2.3-70-g09d2