summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorcvs2svn Import User <samba-bugs@samba.org>2001-06-30 11:08:07 +0000
committercvs2svn Import User <samba-bugs@samba.org>2001-06-30 11:08:07 +0000
commit6432c5be82d81a123b284224f4503e0ed49a7f58 (patch)
tree240b6e07cb5679914e7d5396019d38649ec89ac3 /examples
parentff1df203f5a3154c90343d893e48b38a227eb001 (diff)
parent93c45024cdbbf51322106e2a5961db8c09618833 (diff)
downloadsamba-6432c5be82d81a123b284224f4503e0ed49a7f58.tar.gz
samba-6432c5be82d81a123b284224f4503e0ed49a7f58.tar.xz
samba-6432c5be82d81a123b284224f4503e0ed49a7f58.zip
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_2'.
Diffstat (limited to 'examples')
-rw-r--r--examples/libsmbclient/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile
new file mode 100644
index 00000000000..8c1def8a162
--- /dev/null
+++ b/examples/libsmbclient/Makefile
@@ -0,0 +1,25 @@
+#
+CC = gcc
+
+SAMBA_INCL = ../../source/include
+
+CFLAGS = -I$(SAMBA_INCL)
+
+LDFLAGS = -L/usr/lib
+
+all: testsmbc tree
+
+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 *~