aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2279615..afec99d 100644
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,16 @@ LIBNAME = liblog
CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} ${LIBINC}
LDFLAGS = ${LIBS}
-dist:
- @make OPT='-O2 -pipe -Werror' all
+dist: static shared
-static: clean libs
+# ar -rc libaz.a libabc.a libxyz.a
+static: libs
@make OPT='-O2 -pipe -Werror' ${LIBNAME:=.a}
+ rm -f ${OBJ}
-shared: clean libs
+shared: libs
@make OPT='-O2 -pipe -Werror -fPIC' ${LIBNAME:=.so}
+ rm -f ${OBJ}
debug:
@make OPT=-g all