diff options
| -rw-r--r-- | makefile | 6 | ||||
| -rw-r--r-- | readme.md | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -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
@@ -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
|
