Index: Makefile
--- Makefile.orig	2008-10-09 04:38:01.000000000 +0200
+++ Makefile	2010-03-13 22:47:21.000000000 +0100
@@ -4,23 +4,21 @@
 MAJOR = 1
 MINOR = 9
 REVISION = 3
-LIB = libcli.so
+LIB = libcli.a
 
 CC = gcc
-DEBUG = -g
-OPTIM = -O3
-CFLAGS += $(DEBUG) $(OPTIM) -Wall -Wformat-security -Wno-format-zero-length
-LDFLAGS += -shared -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
+DEBUG =
+OPTIM = -O2
+CPPFLAGS += -I.
+CFLAGS += $(DEBUG) $(OPTIM)
+LDFLAGS +=
 LIBPATH += -L.
 LIBS = -lcrypt
 
 all: $(LIB) clitest
 
 $(LIB): libcli.o
-	$(CC) -o $(LIB).$(MAJOR).$(MINOR).$(REVISION) $^ $(LDFLAGS) $(LIBS)
-	-rm -f $(LIB) $(LIB).$(MAJOR).$(MINOR)
-	ln -s $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR)
-	ln -s $(LIB).$(MAJOR).$(MINOR) $(LIB)
+	ar cr $(LIB) libcli.o
 
 %.o: %.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c $<
Index: libcli.c
--- libcli.c.orig	2008-10-09 04:38:01.000000000 +0200
+++ libcli.c	2010-03-13 22:47:34.000000000 +0100
@@ -9,7 +9,6 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <memory.h>
-#include <malloc.h>
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
