components/libnet/patches/makefile.in.patch
changeset 650 e2fc423a4fd5
parent 649 6f77c32cf359
child 651 501e808038f6
equal deleted inserted replaced
649:6f77c32cf359 650:e2fc423a4fd5
     1 --- libnet-1.1.2.1/src/Makefile.in.orig	Thu Jul 14 14:55:19 2011
       
     2 +++ libnet-1.1.2.1/src/Makefile.in	Thu Jul 14 14:55:34 2011
       
     3 @@ -109,7 +109,7 @@
       
     4  
       
     5  DISTCLEANFILES = *~
       
     6  
       
     7 -lib_LIBRARIES = libnet.a
       
     8 +lib_LIBRARIES = libnet.a libnet.so
       
     9  
       
    10  libnet_a_SOURCES = libnet_asn1.c \
       
    11  			libnet_build_802.1q.c \
       
    12 @@ -163,7 +163,7 @@
       
    13  			libnet_link_dlpi.c \
       
    14  			libnet_link_linux.c \
       
    15  			libnet_link_nit.c \
       
    16 - 			libnet_link_none.c \
       
    17 +			libnet_link_none.c \
       
    18  			libnet_link_pf.c \
       
    19  			libnet_link_snit.c \
       
    20  			libnet_link_snoop.c \
       
    21 @@ -269,6 +269,10 @@
       
    22  	$(libnet_a_AR) libnet.a $(libnet_a_OBJECTS) $(libnet_a_LIBADD)
       
    23  	$(RANLIB) libnet.a
       
    24  
       
    25 +libnet.so: $(libnet_a_OBJECTS) $(libnet_a_DEPENDENCIES) 
       
    26 +	-rm -f libnet.so
       
    27 +	$(CC) $(CFLAGS) -shared -o libnet.so $(libnet_a_OBJECTS) $(libnet_a_LIBADD) -Wl,-soname=libnet.so
       
    28 +
       
    29  mostlyclean-compile:
       
    30  	-rm -f *.$(OBJEXT) core *.core
       
    31  
       
    32 @@ -379,6 +383,9 @@
       
    33  
       
    34  clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
       
    35  
       
    36 +clean-obj:
       
    37 +	rm -f *.o
       
    38 +
       
    39  distclean: distclean-am
       
    40  
       
    41  distclean-am: clean-am distclean-compile distclean-generic \