diff options
| author | ame <[email protected]> | 2024-08-19 22:48:49 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-08-19 22:48:49 -0500 |
| commit | bf97d851115e5d5cae7ad80131e3726b3eef5b2d (patch) | |
| tree | 88b7681a450767075958f6d882e13fddcee20c80 /makefile | |
| parent | 520a98fd73faddfddcbef75ac0609c7ca745a542 (diff) | |
build version & malloc mutex
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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
|
