From 3de6de1ffa5e09314d6f283b6f5af3b07bcf88ed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 23 Sep 2021 21:19:39 -0700 Subject: Added builtins for lua library --- Lua/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lua/Makefile') diff --git a/Lua/Makefile b/Lua/Makefile index d67289e..c729821 100644 --- a/Lua/Makefile +++ b/Lua/Makefile @@ -36,12 +36,15 @@ all: bp.so clean: rm -f lbp.o bp.so -lbp.o: lbp.c +lbp.o: lbp.c builtins.h $(CC) -c $(ALL_FLAGS) -o $@ $< bp.so: lbp.o ../pattern.o ../utils.o ../utf8.o ../match.o ../definitions.o $(MAKESO) -o $@ $^ +builtins.h: ../grammars/builtins.bp + sed 's/\\/\\\\/g;s/"/\\"/g;s/ /\\t/g;s/^/"/;s/$$/\\n"/' $< >$@ + test: bp.so $(LUA) test.lua -- cgit v1.2.3