From cab7afe7af7a93f15c82fe5f4e50402ff1599ee6 Mon Sep 17 00:00:00 2001 From: Stilic Date: Fri, 1 Aug 2025 16:08:35 +0000 Subject: Update makefile --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 0a07ae9..cd80dc8 100644 --- a/makefile +++ b/makefile @@ -14,7 +14,7 @@ LFLAGS := -lm -shared -lcrypto -lssl LINKER := $(CC) TARGET := lullaby.so -INSTALL_DIR := /usr/lib64/lua/ +INSTALL_DIR := /usr/local/lib/lua/ SRCS := $(wildcard src/*.c) $(wildcard src/*/*.c) OBJS := $(SRCS:.c=.o) -- cgit v1.2.3 From cbe16a234d75d27dfab552d724e2d1a1c3a08564 Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 1 Aug 2025 11:41:39 -0500 Subject: install changes --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.3 From cd1c124e2def659dd2919e4387047de733afcc59 Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 1 Aug 2025 21:27:11 -0500 Subject: make user-agent editable with default header values --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 3d10a62..2e82331 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,6 @@ CC := clang +MAJOR_VERSION := "$(shell git -c safe.directory='*' describe --tags --abbrev=0)" GIT_COMMIT := "$(shell git -c safe.directory='*' describe --tags)-$(shell git -c safe.directory='*' describe --always --match 'NOT A TAG')" version ?= 5.4 @@ -9,7 +10,7 @@ ifeq ($(version),jit) install_version = 5.1 endif -CFLAGS := -D_GNU_SOURCE -Wall -fPIC -DGIT_COMMIT='$(GIT_COMMIT)' `pkg-config --cflags lua$(version)` +CFLAGS := -D_GNU_SOURCE -Wall -fPIC -DGIT_COMMIT='$(GIT_COMMIT)' -DMAJOR_VERSION='$(MAJOR_VERSION)' `pkg-config --cflags lua$(version)` LFLAGS := -lm -shared -lcrypto -lssl LINKER := $(CC) -- cgit v1.2.3