diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:57:02 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:57:02 -0400 |
commit | edda7a7100ffb5cac308ce0640d47c8437e5d0e7 (patch) | |
tree | 191947c284a0a153e5c9deeb8870af974af1c096 /Makefile | |
parent | 8f20ab88c90feefc7b88d4b27b02800c2d9f4e20 (diff) | |
download | runes-edda7a7100ffb5cac308ce0640d47c8437e5d0e7.tar.gz runes-edda7a7100ffb5cac308ce0640d47c8437e5d0e7.zip |
allow overriding the optimization level
make OPT=-O2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |