From 7387dab585dadf710dbb72ddd211db1a1ba725c7 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Wed, 30 Mar 2005 02:39:22 +0000 Subject: r6126: added utility for testing smbc_stat() (This used to be commit e1df648ea13651e1df3d209937034b351a7f1c2b) --- examples/libsmbclient/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'examples/libsmbclient/Makefile') diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile index 6c89fd431ec..1e89e7077e7 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 -- cgit