diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 21:19:39 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 21:19:39 -0700 |
| commit | 3de6de1ffa5e09314d6f283b6f5af3b07bcf88ed (patch) | |
| tree | 9052554e856096de0ecac43d079a89733f0ff47a /Lua/Makefile | |
| parent | 0ec89315b43b3adc5b90fe3ab4a778aea6b0e4ea (diff) | |
Added builtins for lua library
Diffstat (limited to 'Lua/Makefile')
| -rw-r--r-- | Lua/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
