aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fs/Makefile')
-rw-r--r--fs/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/fs/Makefile b/fs/Makefile
new file mode 100644
index 0000000..a854880
--- /dev/null
+++ b/fs/Makefile
@@ -0,0 +1,30 @@
+TARGETS = hello
+
+# Root for OSXFUSE includes and libraries
+OSXFUSE_ROOT = /usr/local
+#OSXFUSE_ROOT = /opt/local
+
+INCLUDE_DIR = $(OSXFUSE_ROOT)/include/osxfuse/fuse
+LIBRARY_DIR = $(OSXFUSE_ROOT)/lib
+
+CC ?= gcc
+
+CFLAGS_OSXFUSE = -I$(INCLUDE_DIR) -L$(LIBRARY_DIR)
+CFLAGS_OSXFUSE += -DFUSE_USE_VERSION=26
+CFLAGS_OSXFUSE += -D_FILE_OFFSET_BITS=64
+CFLAGS_OSXFUSE += -D_DARWIN_USE_64_BIT_INODE
+
+CFLAGS_EXTRA = -Wall -g $(CFLAGS)
+
+LIBS = -losxfuse
+
+.c:
+ $(CC) $(CFLAGS_OSXFUSE) $(CFLAGS_EXTRA) -o $@ $< $(LIBS)
+
+all: $(TARGETS)
+
+hello: hello.c
+
+clean:
+ rm -f $(TARGETS) *.o
+ rm -rf *.dSYM