summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-03 23:15:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-03 23:23:31 +0200
commitf9f16b0db92e4c35acb761dd447362150f6aaf0d (patch)
tree29970fe4f2cc5bc64c5cf9168cd9074629cf3c86
parent492a243a00d1c15794b148f8e69fb9614f590219 (diff)
Fix accessing libsmbclient library
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 587294fee..2ee616bc3 100644
--- a/Makefile
+++ b/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 -lpthread -lports -lihash -ldl -lshouldbeinlibc -lsmbclient
+CFLAGS=-O0 -g3 -Wall $(shell pkg-config --cflags smbclient)
+LDLIBS= $(shell pkg-config --libs smbclient) -lnsl -lnetfs -lfshelp -liohelp -lpthread -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