summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-24 11:56:20 -0700
committerKarolin Seeger <kseeger@samba.org>2008-07-25 16:22:55 +0200
commit9840c962ac62539eace7b0f5c6d0deb5ad655e87 (patch)
tree4372ad248461f0a1b5555786a1148a757cc36245 /examples/libsmbclient
parent4d33c78a0dc5c4d0edb5ce9da1fd900ff7995464 (diff)
downloadsamba-9840c962ac62539eace7b0f5c6d0deb5ad655e87.tar.gz
Use sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy. (cherry picked from commit 2518197d7f3833b5d85fe42b05b51d89fa69eb75)
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile
index a50e80a9189..50a690c68eb 100644
--- a/examples/libsmbclient/Makefile
+++ b/examples/libsmbclient/Makefile
@@ -5,7 +5,7 @@ SAMBA_INCL = -I/usr/local/samba/include
EXTLIB_INCL = -I/usr/include/gtk-1.2 \
-I/usr/include/glib-1.2 \
-I/usr/lib/glib/include
-EXTLIB_INCL = `gtk-config --cflags`
+#EXTLIB_INCL = `gtk-config --cflags`
DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CFLAGS = -O0 -g $(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
@@ -28,7 +28,8 @@ TESTS= testsmbc \
testchmod \
testutime \
testread \
- testwrite
+ testwrite \
+ libsmbclient.c
# tree \
@@ -94,6 +95,10 @@ testwrite: testwrite.o
@echo Linking testwrite
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
+libsmbclient: libsmbclient.o
+ @echo Linking libsmbclient
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
+
smbsh:
make -C smbwrapper