aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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