summaryrefslogtreecommitdiffstats
path: root/examples/libsmbclient
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-06-30 04:01:51 +0000
committerRichard Sharpe <sharpe@samba.org>2001-06-30 04:01:51 +0000
commit9627bace72eb3be322f8895b055a31768e551136 (patch)
treee085aecd525545f5b3fc0a5202a570e1933d755a /examples/libsmbclient
parent015a077acc49e59179dc10256fd32166ee4623e2 (diff)
downloadsamba-9627bace72eb3be322f8895b055a31768e551136.tar.gz
samba-9627bace72eb3be322f8895b055a31768e551136.tar.xz
samba-9627bace72eb3be322f8895b055a31768e551136.zip
Add a static linking target to the examples Makefile so I can test out static linking ...
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile
index 20bc99cac08..3b56def3fdf 100644
--- a/examples/libsmbclient/Makefile
+++ b/examples/libsmbclient/Makefile
@@ -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 *~