summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbernd <bernd@zuse.pci.uni-heidelberg.de>2007-03-18 12:52:14 +0100
committerbernd <bernd@zuse.pci.uni-heidelberg.de>2007-03-18 12:52:14 +0100
commit56c20f2d923cd91cb7a5c39e4b778bb4f8e36980 (patch)
tree8429616496bfb2330172db94204077734c892210 /Makefile
parent0e39e96d1b3f7c7ea588e6355a7381d73ae74a8e (diff)
downloadunionfs-fuse-56c20f2d923cd91cb7a5c39e4b778bb4f8e36980.tar.gz
Fix the Makefile to allow static compilation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3c60be4..1f66674 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
CFLAGS += -Wall
CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
-LDFLAGS += -lfuse -lm
+LIB = -lfuse -lpthread -lm -lrt
+LDFLAGS +=
HASHTABLE_OBJ = hashtable.o hashtable_itr.o hash.o elfhash.o
@@ -8,7 +9,7 @@ UNIONFS_OBJ = unionfs.o stats.o opts.o debug.o findbranch.o readdir.o general.o
unionfs: $(UNIONFS_OBJ) $(HASHTABLE_OBJ)
- $(CC) $(LDFLAGS) -o $@ $(UNIONFS_OBJ) $(HASHTABLE_OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(UNIONFS_OBJ) $(HASHTABLE_OBJ) $(LIB)
clean:
rm -f unionfs