properly build a library for the content of the lib directory
diff --git a/lib/Makefile.am b/lib/Makefile.am
new file mode 100644
index 0000000..7c06e27
--- /dev/null
+++ b/lib/Makefile.am
@@ -0,0 +1,7 @@
+noinst_LIBRARIES = libmisc.a
+
+noinst_HEADERS = gnugetopt.h ippool.h lookup.h syserr.h tun.h
+
+AM_CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb
+
+libmisc_a_SOURCES = getopt1.c getopt.c ippool.c lookup.c syserr.c tun.c