summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/Makefile
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-03-30 02:39:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:23 -0500
commit7387dab585dadf710dbb72ddd211db1a1ba725c7 (patch)
tree11abe1c08d0fecc7c9b7e666889c75df2e9e7829 /examples/libsmbclient/Makefile
parent1635d50a20fb03b402465731494826471efc8f88 (diff)
downloadsamba-7387dab585dadf710dbb72ddd211db1a1ba725c7.tar.gz
samba-7387dab585dadf710dbb72ddd211db1a1ba725c7.tar.bz2
samba-7387dab585dadf710dbb72ddd211db1a1ba725c7.zip
r6126: added utility for testing smbc_stat()
(This used to be commit e1df648ea13651e1df3d209937034b351a7f1c2b)
Diffstat (limited to 'examples/libsmbclient/Makefile')
-rw-r--r--examples/libsmbclient/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile
index 6c89fd431e..1e89e7077e 100644
--- a/examples/libsmbclient/Makefile
+++ b/examples/libsmbclient/Makefile
@@ -6,19 +6,16 @@ EXTLIB_INCL = -I/usr/include/gtk-1.2 \
-I/usr/include/glib-1.2 \
-I/usr/lib/glib/include
-CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
+DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
-LDFLAGS = -L/usr/lib
+LDFLAGS = -L/usr/local/samba/lib
-all: testsmbc tree testacl testbrowse smbsh
+all: testsmbc tree testacl testbrowse teststat smbsh
testsmbc: testsmbc.o
@echo Linking testsmbc
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
-
-testsmbc-static: testsmbc.o
- @echo Linking testsmbc
- @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient
tree: tree.o
@echo Linking tree
@@ -32,9 +29,13 @@ testbrowse: testbrowse.o
@echo Linking testbrowse
@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -lsmbclient -lpopt $<
+teststat: teststat.o
+ @echo Linking teststat
+ @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
+
smbsh:
make -C smbwrapper
clean:
- @rm -f *.o *~ testsmbc tree testacl testbrowse
+ @rm -f *.o *~ testsmbc tree testacl testbrowse teststat
@make -C smbwrapper clean