From edda7a7100ffb5cac308ce0640d47c8437e5d0e7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 6 May 2016 05:57:02 -0400 Subject: allow overriding the optimization level make OPT=-O2 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e03bceb..0ec8698 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,9 @@ DOBJ = $(BUILD)runesd.o \ COBJ = $(BUILD)runesc.o \ $(BUILD)util.o LIBS = cairo cairo-xlib libuv pangocairo -CFLAGS ?= -g -Wall -Wextra -Werror -LDFLAGS ?= -g -Wall -Wextra -Werror +OPT ?= -g +CFLAGS ?= $(OPT) -Wall -Wextra -Werror +LDFLAGS ?= $(OPT) -Wall -Wextra -Werror ALLCFLAGS = $(shell pkg-config --cflags $(LIBS)) -Ilibvt100/src $(CFLAGS) ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS) -- cgit v1.2.3-54-g00ecf