diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2019-02-25 13:02:25 -0800 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2019-02-25 13:02:25 -0800 |
commit | 784ec83696d9ecedc10ede022a035e671dd21607 (patch) | |
tree | a459ee535e22ce53c344dc53452050d511428a67 /fs/Makefile | |
parent | 90181466bd12553abef43f165b7b8a2c7ad2f1c3 (diff) |
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.
Diffstat (limited to 'fs/Makefile')
-rw-r--r-- | fs/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
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 |