aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorame <[email protected]>2025-08-01 21:27:11 -0500
committerame <[email protected]>2025-08-01 21:27:11 -0500
commitcd1c124e2def659dd2919e4387047de733afcc59 (patch)
tree07d7d81c3be94e4b7cdf3284e7a78939c3d683d4 /makefile
parent6b0cda77a3e04e4fb3024b21bb648b6bf9f62568 (diff)
make user-agent editable with default header values
Diffstat (limited to 'makefile')
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
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)