summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2009-09-13 23:27:48 +0200
committerRadek Podgorny <radek@podgorny.cz>2009-09-13 23:27:48 +0200
commit3833b223b7e5146a3386b0acc910440bc38f8456 (patch)
tree05bd95ef15eff1a431b34ddf50de7eab611b498e /src/Makefile
parentbb83ed71696a6033e3a2d539cf55d5cb497e5531 (diff)
downloadunionfs-fuse-3833b223b7e5146a3386b0acc910440bc38f8456.tar.gz
Makefile improvements by Yann E. Morin.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 7f75f40..df98c94 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,9 +1,12 @@
CFLAGS += -Wall
-CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
-#CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -DHAVE_SETXATTR
+CPPFLAGS += $(shell pkg-config --cflags fuse)
+CPPFLAGS += -DFUSE_USE_VERSION=26
+#CPPFLAGS += -DHAVE_SETXATTR
+
LDFLAGS +=
-LIB = -lfuse -lpthread -lm
+LIB = $(shell pkg-config --libs fuse)
+LIB += -lm # For ceil(3)
HASHTABLE_OBJ = hashtable.o hashtable_itr.o
UNIONFS_OBJ = unionfs.o stats.o opts.o debug.o findbranch.o readdir.o general.o unlink.o rmdir.o cow.o cow_utils.o string.o