r6126: added utility for testing smbc_stat()
[samba.git] / examples / libsmbclient / smbwrapper / Makefile
index 099c2049866b77b2f64aa47186369543da5f899d..8e7070cb597b8010699535927216509b2442b4ad 100644 (file)
@@ -3,7 +3,7 @@ DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 
 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
 
 
 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
 
-LDFLAGS = -L/usr/lib
+LDFLAGS = -L/usr/local/samba/lib
 
 SMBINCLUDE = -I../../../source/include
 CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE)
 
 SMBINCLUDE = -I../../../source/include
 CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE)
@@ -22,11 +22,12 @@ $(BIN)/smbwrapper.so:       $(SMBWRAPPER_OBJS)
                --export-all-symbols \
                -o $(BIN)/smbwrapper.so \
                $(SMBWRAPPER_OBJS) \
                --export-all-symbols \
                -o $(BIN)/smbwrapper.so \
                $(SMBWRAPPER_OBJS) \
+               $(LDFLAGS) \
                $(LIBS) \
                -Wl,-soname=`basename $@`
 
 $(BIN)/smbsh: $(SMBSH_OBJS)
                $(LIBS) \
                -Wl,-soname=`basename $@`
 
 $(BIN)/smbsh: $(SMBSH_OBJS)
-       $(CC) -g -o $(BIN)/smbsh $(SMBSH_OBJS) $(LIBS)
+       $(CC) -g -o $(BIN)/smbsh $(SMBSH_OBJS) $(LIBS) $(LDFLAGS)
 
 opendir_smbsh: opendir_smbsh.o
        $(CC) -g -o opendir_smbsh opendir_smbsh.o $(LIBS) $(DMALLOC)
 
 opendir_smbsh: opendir_smbsh.o
        $(CC) -g -o opendir_smbsh opendir_smbsh.o $(LIBS) $(DMALLOC)