diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c2394d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC = gcc + +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 + +sshfs: sshfs.o + +clean: + rm -f *.o sshfs |