aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorame <[email protected]>2024-08-19 22:48:49 -0500
committerame <[email protected]>2024-08-19 22:48:49 -0500
commitb093eebff0f8c6dedc49c62747049fe7e464c8f3 (patch)
tree88b7681a450767075958f6d882e13fddcee20c80 /makefile
parent463325d637250e13dbc3153ce59048cf9be57bdb (diff)
build version & malloc mutex
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/makefile b/makefile
index 6b2dd48..11731cb 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,8 @@
CC := clang
-CFLAGS := -fPIC
+
+GIT_COMMIT := "$(shell git describe --tags)-$(shell git describe --always --match 'NOT A TAG')"
+
+CFLAGS := -fPIC -DGIT_COMMIT='$(GIT_COMMIT)'
LFLAGS := -lm -shared
LINKER := clang