aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile6
-rw-r--r--readme.md2
2 files changed, 5 insertions, 3 deletions
diff --git a/makefile b/makefile
index cd80dc8..3d10a62 100644
--- a/makefile
+++ b/makefile
@@ -14,7 +14,7 @@ LFLAGS := -lm -shared -lcrypto -lssl
LINKER := $(CC)
TARGET := lullaby.so
-INSTALL_DIR := /usr/local/lib/lua/
+INSTALL := /usr/local/lib/lua/
SRCS := $(wildcard src/*.c) $(wildcard src/*/*.c)
OBJS := $(SRCS:.c=.o)
@@ -33,8 +33,8 @@ release: CFLAGS += -O3
release: all
install::
- mkdir $(INSTALL_DIR)$(install_version) -p
- cp $(TARGET) $(INSTALL_DIR)$(install_version)/$(TARGET)
+ mkdir $(INSTALL)$(install_version) -p
+ cp $(TARGET) $(INSTALL)$(install_version)/$(TARGET)
# ok so im pretty sure asan should be linked too, however dlclose needs to be masked anyways
# and since libasan needs to be the first thing to load, you'll have to add it anyways
diff --git a/readme.md b/readme.md
index f67d8d0..b8a4ccb 100644
--- a/readme.md
+++ b/readme.md
@@ -43,6 +43,8 @@ windows works through msys2, install `mingw-w64-x86_64-lua` then run `make CC=gc
you can install with `doas make install` which will install lullaby.so into /usr/local/lib/lua/5.X
+install directory can be configured with `INSTALL=...` which defaults to /usr/local/lib/lua/, but may be wanted in /usr/lib64/lua/
+
lua version can be specified with `version=...`, similar to 5.1, 5.3, jit, the default it 5.4
for working on the code base, i recommend using bear to generate compile_commands.json [(as outlined here)](https://clangd.llvm.org/installation#compile_commandsjson) which should probably let your ide find the headers