aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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)