From 4d68868deb710ac3983e6c7559ccdec869023258 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 4 Feb 2023 00:53:16 +0100 Subject: Add static and shared targets --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3d7412e..c3edc8c 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,15 @@ LIBNAME = liblog CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -I${LIBINC} LDFLAGS = ${LIBS} - dist: @make OPT='-O2 -pipe -Werror' all +static: clean libs + @make OPT='-O2 -pipe -Werror' ${LIBNAME:=.a} + +shared: clean libs + @make OPT='-O2 -pipe -Werror -fPIC' ${LIBNAME:=.so} + debug: @make OPT=-g all -- cgit v1.2.3