Add a static linking target to the examples Makefile so I can test out static linking ...
authorRichard Sharpe <sharpe@samba.org>
Sat, 30 Jun 2001 04:01:51 +0000 (04:01 +0000)
committerRichard Sharpe <sharpe@samba.org>
Sat, 30 Jun 2001 04:01:51 +0000 (04:01 +0000)
examples/libsmbclient/Makefile

index 20bc99cac08a9570277b6cc7a4ca730148c2fcd8..3b56def3fdff40969965e91f4f7b6f23b832d371 100644 (file)
@@ -12,9 +12,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 *~