From de7f97b964462c4ebb72e10500a0afd844793d40 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 8 May 2016 04:06:24 -0400 Subject: add a couple flags to re2c --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3-54-g00ecf