From 89cf21971736c63d0dfb80563f85afd33af2237a Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Sat, 30 Jun 2001 04:01:51 +0000 Subject: Add a static linking target to the examples Makefile so I can test out static linking ... (This used to be commit 9627bace72eb3be322f8895b055a31768e551136) --- examples/libsmbclient/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile index 20bc99cac0..3b56def3fd 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 *~ -- cgit