aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:53:16 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:53:16 +0100
commit4d68868deb710ac3983e6c7559ccdec869023258 (patch)
tree3edb3b4d5bae77f870426e3324a40cf0fb28f3f1
parent1bf2e1be8078758c07303a18047fd5e05f3e5b45 (diff)
downloadlog-4d68868deb710ac3983e6c7559ccdec869023258.tar.gz
log-4d68868deb710ac3983e6c7559ccdec869023258.zip
Add static and shared targets
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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