summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)