summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-08 04:06:24 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-08 04:07:49 -0400
commitde7f97b964462c4ebb72e10500a0afd844793d40 (patch)
tree6ed7a8eb8bf695466de47a614575966f06534f29 /Makefile
parent8593074c9a014c24ccb3b22de5b38ff569fec93b (diff)
downloadlibvt100-de7f97b964462c4ebb72e10500a0afd844793d40.tar.gz
libvt100-de7f97b964462c4ebb72e10500a0afd844793d40.zip
add a couple flags to re2cre2c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b2624d7..ed274cf 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,9 @@ OPT ?= -g
CFLAGS ?= $(OPT) -Wall -Wextra -Werror
LDFLAGS ?= $(OPT) -Wall -Wextra -Werror
+RE2C ?= re2c
+RE2CFLAGS ?= -s --no-generation-date
+
ALLCFLAGS = $(shell pkg-config --cflags $(LIBS)) $(CFLAGS)
ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS)
@@ -35,7 +38,7 @@ $(BUILD)%.o: $(SRC)%.c
$(SRC)screen.c: $(SRC)parser.h
$(SRC)%.c: $(SRC)%.re
- re2c -o $@ $<
+ $(RE2C) $(RE2CFLAGS) -o $@ $<
clean:
rm -f $(OUT) $(SOUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d)