aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-09-23 21:07:56 +0200
committerMattias Andrée <m@maandree.se>2026-09-23 21:07:56 +0200
commitb86ae58a37b26ac501076d2594b514e33e97e11e (patch)
tree769f91fc2dddd1eabfc609eea1147faa1c4283c2 /Makefile
parentMore testing (diff)
downloadlibrecrypt-b86ae58a37b26ac501076d2594b514e33e97e11e.tar.gz
librecrypt-b86ae58a37b26ac501076d2594b514e33e97e11e.tar.bz2
librecrypt-b86ae58a37b26ac501076d2594b514e33e97e11e.tar.xz
Add version testing functionality and bump to version 1.2
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ea1eeca..572b9ab 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,8 @@ include mk/$(OS).mk
LIB_MAJOR = 1
-LIB_MINOR = 1
+LIB_MINOR = 2
+LIB_PATCH = 0
LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR)
LIB_NAME = recrypt
@@ -45,7 +46,8 @@ OBJ_PUBLIC_NO_FUZZ =\
librecrypt_set_user_data.o\
librecrypt_get_user_data.o\
librecrypt_set_pepper.o\
- librecrypt_set_custom_algorithms.o
+ librecrypt_set_custom_algorithms.o\
+ librecrypt_version.o
OBJ_PUBLIC =\
$(OBJ_PUBLIC_FUZZ)\
@@ -91,7 +93,9 @@ all:
include argon2/suffix.mk
-ALL_CPPFLAGS = $(CPPFLAGS) $(CPPFLAGS_MODULES) $(FUZZED_CPPFLAGS)
+VERSION_CPPFLAGS = -DLIB_MAJOR=$(LIB_MAJOR) -DLIB_MINOR=$(LIB_MINOR) -DLIB_PATCH=$(LIB_PATCH)
+
+ALL_CPPFLAGS = $(CPPFLAGS) $(CPPFLAGS_MODULES) $(FUZZED_CPPFLAGS) $(VERSION_CPPFLAGS)
ALL_CFLAGS = $(CFLAGS) $(CFLAGS_MODULES) $(FUZZED_CFLAGS)
ALL_LDFLAGS = $(LDFLAGS) $(LDFLAGS_MODULES) $(FUZZED_LDFLAGS)