diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:55:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:55:35 -0400 |
commit | dc2fffbd1a8763fe7228c119ba2a709e57bc73da (patch) | |
tree | fd5ba838392bf731140ea672b223f2d1b0579576 | |
parent | 5752866867b53739b04b28bb0c5e009371d8efd8 (diff) | |
download | libvt100-dc2fffbd1a8763fe7228c119ba2a709e57bc73da.tar.gz libvt100-dc2fffbd1a8763fe7228c119ba2a709e57bc73da.zip |
allow overriding the optimization level
make OPT=-O2
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,8 +6,9 @@ OBJ = $(BUILD)parser.o \ $(BUILD)screen.o \ $(BUILD)unicode-extra.o LIBS = glib-2.0 -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)) $(CFLAGS) ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS) |