This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
[kai/samba.git] / examples / libsmbclient / Makefile
index 20bc99cac08a9570277b6cc7a4ca730148c2fcd8..8c1def8a162a705fcc68f5bf79408a07f070e2a7 100644 (file)
@@ -1,4 +1,5 @@
 #
+CC = gcc
 
 SAMBA_INCL = ../../source/include
 
@@ -12,9 +13,13 @@ testsmbc: testsmbc.o
        @echo Linking testsmbc
        @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient
 
+testsmbc-static: testsmbc.o 
+       @echo Linking testsmbc
+       @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
+
 tree: tree.o
        @echo Linking tree
        @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
 
 clean:
-       @rm -f *.o *~
\ No newline at end of file
+       @rm -f *.o *~