summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-08 02:02:41 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-08 03:01:48 -0400
commit8593074c9a014c24ccb3b22de5b38ff569fec93b (patch)
tree77f7fad29e0467f97bdffc31d9a2d13b232c7e0f /Makefile
parent06f385a854302a692f76307853ec2c3e7a2c3c64 (diff)
downloadlibvt100-8593074c9a014c24ccb3b22de5b38ff569fec93b.tar.gz
libvt100-8593074c9a014c24ccb3b22de5b38ff569fec93b.zip
start trying out a re2c-based parser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1a98ee9..b2624d7 100644
--- a/Makefile
+++ b/Makefile
@@ -34,11 +34,8 @@ $(BUILD)%.o: $(SRC)%.c
$(SRC)screen.c: $(SRC)parser.h
-$(SRC)%.c: $(SRC)%.l
- $(LEX) -o $@ $<
-
-$(SRC)%.h: $(SRC)%.l
- $(LEX) --header-file=$(<:.l=.h) -o /dev/null $<
+$(SRC)%.c: $(SRC)%.re
+ re2c -o $@ $<
clean:
rm -f $(OUT) $(SOUT) $(OBJ) $(OBJ:$(BUILD)%.o=$(BUILD).%.d)