aboutsummaryrefslogtreecommitdiffstats
path: root/lufis/Makefile
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-11-09 15:40:23 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-11-09 15:40:23 +0000
commite6d7c3dd81d0a0ddec3a8b24edcbdbca519c54cc (patch)
tree6edeefaceda2223c6531415a861a9ff3d90ab9d4 /lufis/Makefile
parentdb1c3650b287d1766017aec3c370c70aed29261e (diff)
downloadlibfuse-e6d7c3dd81d0a0ddec3a8b24edcbdbca519c54cc.tar.gz
fix
Diffstat (limited to 'lufis/Makefile')
-rw-r--r--lufis/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/lufis/Makefile b/lufis/Makefile
index 713e509..5ff0392 100644
--- a/lufis/Makefile
+++ b/lufis/Makefile
@@ -1,6 +1,17 @@
CC = gcc
-CFLAGS = -Wall -W -g
-LDLIBS = -lfuse -lpthread -ldl -rdynamic
+
+CFLAGS := -Wall -W -g
+LDLIBS := -lpthread -ldl -rdynamic
+
+PKGCONFIG := env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config
+FUSEVER := $(shell $(PKGCONFIG) --modversion fuse 2> /dev/null)
+ifeq ($(FUSEVER),)
+ LDLIBS += -lfuse
+else
+ CFLAGS += $(shell $(PKGCONFIG) --cflags fuse)
+ LDLIBS += $(shell $(PKGCONFIG) --libs fuse)
+endif
+
CPPFLAGS := -D_FILE_OFFSET_BITS=64
#CPPFLAGS += -DDEBUG