From 45c9460ed8a854a85bc38f38137396516f409c62 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 30 Nov 2022 23:11:18 +0100 Subject: Add version --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a1f8f85..9fd2dc0 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,9 @@ CC = clang SRC != find src -name '*.c' OBJ = ${SRC:.c=.o} +VERSION = 0.0.0 WARNINGS = -Wall -Werror -CFLAGS = ${WARNINGS} -ansi -pedantic -fPIC +CFLAGS = -DVERSION='"${VERSION}"' ${WARNINGS} -ansi -pedantic -fPIC LFLAGS = all: ${OBJ} liblist.so -- cgit v1.2.3