blob: c3cb10a6d7e1e50014e92647d8fdcd0fefd5935a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
TARGETS = tabfs
# 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 -Wno-unused-function -g $(CFLAGS)
LIBS = -losxfuse
all: $(TARGETS)
tabfs: common.c tabfs.c
$(CC) $(CFLAGS_OSXFUSE) $(CFLAGS_EXTRA) -o $@ $^ $(LIBS)
clean:
rm -f $(TARGETS) *.o
rm -rf *.dSYM
unmount:
killall -9 tabfs || true
diskutil unmount force mnt || true
mount: tabfs
./tabfs -odirect_io -s -f mnt
debugmount: tabfs
lldb -- ./tabfs -odirect_io -s -f mnt
|