From 5ed694ea38d78a8a64f939cf9c4519cb9945b5b2 Mon Sep 17 00:00:00 2001 From: agibert Date: Mon, 25 Feb 2002 23:37:21 +0000 Subject: [PATCH] Now generates static and dynamic libraries. --- lib/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 4ba273f..dbaa2c6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,11 +1,13 @@ - -all: libnode.so +all: libnode.a libnode.so libnode.o: libnode.c node.h libnode.h ../../libver/ver.h Makefile gcc -c -g -o libnode.o -I . -I ../../libver libnode.c +libnode.a: libnode.o + ar -r libnode.a libnode.o + libnode.so: libnode.o ld -shared -o libnode.so libnode.o clean: - rm libnode.o libnode.so + rm -f libnode.o libnode.a libnode.so