commit c08f656e94117c7a5e7112921702ef0cff45811d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Aug 3 23:15:51 2020 +0200

    Fix accessing libsmbclient library

diff --git a/smbfs/Makefile b/smbfs/Makefile
index 097cab48f..1e9d90bd5 100644
--- a/smbfs/Makefile
+++ b/smbfs/Makefile
@@ -1,9 +1,9 @@
 CC=gcc
-CFLAGS=-O0 -g3 -Wall  
-LDFLAGS=  -L/lib -L/local/samba/lib/ -I/local/samba/include/   -lnsl -lnetfs -lfshelp -liohelp -lthreads -lports -lihash -ldl -lshouldbeinlibc -lsmbclient
+CFLAGS=-O0 -g3 -Wall $(shell pkg-config --cflags smbclient)
+LDLIBS=  $(shell pkg-config --libs smbclient)   -lnsl -lnetfs -lfshelp -liohelp -lthreads -lports -lihash -ldl -lshouldbeinlibc
 
 smbfs: clean smb.o smbfs.o smbnetfs.o
-	$(CC) $(LDFLAGS) smb.o smbfs.o smbnetfs.o -osmbfs
+	$(CC) smb.o smbfs.o smbnetfs.o -osmbfs $(LDLIBS)
 
 smb.o:
 	$(CC)  $(CFLAGS) smb.c  -I/local/samba/include/ -c  
@@ -17,4 +17,4 @@ smbnetfs.o:
 clean:
 	rm -rf *.o smbfs
         
-all: smbfs
\ No newline at end of file
+all: smbfs
