--- libnet-1.1.2.1/src/Makefile.in.orig Thu Jul 14 14:55:19 2011
+++ libnet-1.1.2.1/src/Makefile.in Thu Jul 14 14:55:34 2011
@@ -109,7 +109,7 @@
DISTCLEANFILES = *~
-lib_LIBRARIES = libnet.a
+lib_LIBRARIES = libnet.a libnet.so
libnet_a_SOURCES = libnet_asn1.c \
libnet_build_802.1q.c \
@@ -163,7 +163,7 @@
libnet_link_dlpi.c \
libnet_link_linux.c \
libnet_link_nit.c \
- libnet_link_none.c \
+ libnet_link_none.c \
libnet_link_pf.c \
libnet_link_snit.c \
libnet_link_snoop.c \
@@ -269,6 +269,10 @@
$(libnet_a_AR) libnet.a $(libnet_a_OBJECTS) $(libnet_a_LIBADD)
$(RANLIB) libnet.a
+libnet.so: $(libnet_a_OBJECTS) $(libnet_a_DEPENDENCIES)
+ -rm -f libnet.so
+ $(CC) $(CFLAGS) -shared -o libnet.so $(libnet_a_OBJECTS) $(libnet_a_LIBADD) -Wl,-soname=libnet.so
+
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
@@ -379,6 +383,9 @@
clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
+clean-obj:
+ rm -f *.o
+
distclean: distclean-am
distclean-am: clean-am distclean-compile distclean-generic \