summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/smbwrapper/Makefile
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-03 15:06:48 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-09 01:58:24 +0100
commit4328f3ccf37d9a1baadbc55f658902e3b16ff125 (patch)
tree203f4238cd13e283b423ee97df6ce2714298fd7f /examples/libsmbclient/smbwrapper/Makefile
parentb93326b9689d0ad935eed35f7cf5201ad04ac1ff (diff)
downloadsamba-4328f3ccf37d9a1baadbc55f658902e3b16ff125.tar.gz
samba-4328f3ccf37d9a1baadbc55f658902e3b16ff125.tar.bz2
samba-4328f3ccf37d9a1baadbc55f658902e3b16ff125.zip
smbwrapper: Remove smbwrapper
There are now many better ways to access a remote SMB filesystem, which do not rely on LD_PRELOAD and the associated dangers. FUSE, gvfs and the CIFS VFS are all much better options which do not require knowing every possible libc entry point that can deal with a file descriptor. As an example of the maintainence that would be required to keep this going, recent changes to deal with thread races and close-on-exec have resulted in dup3(), but this isn't currently mapped. While this would not be hard to add, it illistrates why it is better to move to an interface designed for this task. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Feb 9 01:58:24 CET 2012 on sn-devel-104
Diffstat (limited to 'examples/libsmbclient/smbwrapper/Makefile')
-rw-r--r--examples/libsmbclient/smbwrapper/Makefile39
1 files changed, 0 insertions, 39 deletions
diff --git a/examples/libsmbclient/smbwrapper/Makefile b/examples/libsmbclient/smbwrapper/Makefile
deleted file mode 100644
index 952015e96e..0000000000
--- a/examples/libsmbclient/smbwrapper/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-LIBS = -lwbclient -lsmbclient -ltalloc -ltdb -ldl
-DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-
-CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
-
-LDFLAGS = -L/usr/local/samba/lib -L../../../source3/bin
-
-SMBINCLUDE = -I../../../source3/include
-CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE)
-
-BIN = .
-
-STRFUNC = bsd-strlcat.o bsd-strlcpy.o
-
-
-SMBWRAPPER_OBJS = smbw.o smbw_dir.o smbw_stat.o wrapper.o select.o $(STRFUNC)
-SMBSH_OBJS = smbsh.o $(STRFUNC)
-
-all: $(BIN)/smbwrapper.so $(BIN)/smbsh
-
-$(BIN)/smbwrapper.so: $(SMBWRAPPER_OBJS)
- $(CC) -g \
- -Wl,-init=smbw_initialize \
- -shared \
- --export-all-symbols \
- -o $(BIN)/smbwrapper.so \
- $(SMBWRAPPER_OBJS) \
- $(LDFLAGS) \
- $(LIBS) \
- -Wl,-soname=`basename $@`
-
-$(BIN)/smbsh: $(SMBSH_OBJS)
- $(CC) -g -o $(BIN)/smbsh $(SMBSH_OBJS) $(LIBS) $(LDFLAGS)
-
-opendir_smbsh: opendir_smbsh.o
- $(CC) -g -o opendir_smbsh opendir_smbsh.o $(LIBS) $(DMALLOC)
-
-clean:
- rm -f *.o *~ opendir_smbsh smbsh smbwrapper.so