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 +++-- libvt100 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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) diff --git a/libvt100 b/libvt100 index 5752866..dc2fffb 160000 --- a/libvt100 +++ b/libvt100 @@ -1 +1 @@ -Subproject commit 5752866867b53739b04b28bb0c5e009371d8efd8 +Subproject commit dc2fffbd1a8763fe7228c119ba2a709e57bc73da -- cgit v1.2.3