aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile5
2 files changed, 5 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index dd06800..49f5cc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
liblist.so
+liblist.a
*.o
test/list.h
test/test1
diff --git a/Makefile b/Makefile
index b9561ee..c847f10 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ WARNINGS = -Wall -Werror
CFLAGS = -DVERSION='"${VERSION}"' ${WARNINGS} -ansi -pedantic -fPIC
LFLAGS =
-all: ${OBJ} liblist.so
+all: ${OBJ} liblist.so liblist.a
.c.o:
${CC} -c ${CFLAGS} $< -o $@
@@ -36,6 +36,9 @@ all: ${OBJ} liblist.so
liblist.so:
${CC} -shared -o $@ ${OBJ}
+liblist.a:
+ ar rcs $@ ${OBJ}
+
clean:
rm -f liblist.so ${OBJ} clist-${VERSION}.tar.gz
@make -C test $@