From 784ec83696d9ecedc10ede022a035e671dd21607 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Mon, 25 Feb 2019 13:02:25 -0800 Subject: Rewrite and refactor C half. No more shared memory! It's fast! Three C modules: - tabfs (main thread; talks to FUSE) - common (tabfs<->ws communication helpers) - ws (side thread; talks to browser over WebSocket) It's single-threaded, but I don't think that matters anyway. --- fs/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'fs/Makefile') diff --git a/fs/Makefile b/fs/Makefile index 0a85261..1c35ef3 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -1,4 +1,4 @@ -TARGETS = hello +TARGETS = tabfs # Root for OSXFUSE includes and libraries OSXFUSE_ROOT = /usr/local @@ -18,12 +18,10 @@ CFLAGS_EXTRA = -Wall -g $(CFLAGS) LIBS = -losxfuse -.c: - $(CC) $(CFLAGS_OSXFUSE) $(CFLAGS_EXTRA) -o $@ $< $(LIBS) - all: $(TARGETS) -hello: hello.c +tabfs: common.c ws.c tabfs.c + $(CC) $(CFLAGS_OSXFUSE) $(CFLAGS_EXTRA) -o $@ $^ $(LIBS) clean: rm -f $(TARGETS) *.o @@ -33,5 +31,8 @@ unmount: killall -9 hello || true diskutil unmount force mnt || true -mount: hello - ./hello -odirect_io -f mnt +mount: tabfs + ./tabfs -odirect_io -s -f mnt + +debugmount: tabfs + lldb -- ./tabfs -odirect_io -s -f mnt -- cgit v1.2.3