aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-06 05:57:02 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-06 05:57:02 -0400
commitedda7a7100ffb5cac308ce0640d47c8437e5d0e7 (patch)
tree191947c284a0a153e5c9deeb8870af974af1c096
parent8f20ab88c90feefc7b88d4b27b02800c2d9f4e20 (diff)
downloadrunes-edda7a7100ffb5cac308ce0640d47c8437e5d0e7.tar.gz
runes-edda7a7100ffb5cac308ce0640d47c8437e5d0e7.zip
allow overriding the optimization level
make OPT=-O2
-rw-r--r--Makefile5
m---------libvt1000
2 files changed, 3 insertions, 2 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
-Subproject 5752866867b53739b04b28bb0c5e009371d8efd
+Subproject dc2fffbd1a8763fe7228c119ba2a709e57bc73d