add a cool lua repl

This commit is contained in:
jacqueline
2023-12-13 16:10:08 +11:00
parent 5a2f0b08e0
commit 64b106c13e
87 changed files with 8150 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
OS=$(shell uname)
OBJECTS=linenoise.o encodings/utf8.o linenoiselib.o
ifeq ($(OS),Darwin)
linenoise.dylib: $(OBJECTS)
gcc -o $@ -bundle -undefined dynamic_lookup $^ $(OPT_LIB)
else
CFLAGS=-fPIC -I/usr/include/lua5.1
linenoise.so: $(OBJECTS)
gcc -o $@ -shared $^ $(OPT_LIB)
endif
clean:
rm -f *.o encodings/*.o *.so *.dylib