diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-12-13 16:10:08 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-12-13 16:10:08 +1100 |
| commit | 64b106c13e18c33be0f2b0de532054e0ed3f731d (patch) | |
| tree | b54b1c90d941bc456b4d51e864970720bdf2d648 /lib/lua-linenoise/Makefile | |
| parent | 5a2f0b08e0e3f20cda977b510b680d5843ae7283 (diff) | |
| download | tangara-fw-64b106c13e18c33be0f2b0de532054e0ed3f731d.tar.gz | |
add a cool lua repl
Diffstat (limited to 'lib/lua-linenoise/Makefile')
| -rw-r--r-- | lib/lua-linenoise/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/lua-linenoise/Makefile b/lib/lua-linenoise/Makefile new file mode 100644 index 00000000..430bf5f5 --- /dev/null +++ b/lib/lua-linenoise/Makefile @@ -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 |
