diff options
author | Omar Rizwan <omar@omar.website> | 2021-01-02 11:47:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 11:47:32 -0800 |
commit | 1f9d5de4dadac826655ea6b412004a9c0b56dc21 (patch) | |
tree | bb3859bcf17166d1e08cfefc8c4f08d6d87970a0 /fs/Makefile | |
parent | fef9289e3a7f82cda6319d5f19d5a5f13f3cc44b (diff) | |
parent | 2c7e30217188f49097ce86b081b1a694822ab363 (diff) |
Merge pull request #19 from yggdr/freebsd
FreeBSD compatibility
Diffstat (limited to 'fs/Makefile')
-rw-r--r-- | fs/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/Makefile b/fs/Makefile index e5a4b18..97ca01a 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -4,6 +4,9 @@ TARGETS = tabfs OSXFUSE_ROOT = /usr/local #OSXFUSE_ROOT = /opt/local +# Root for libraries from FreeBSD's ports +FREEBSD_ROOT = /usr/local + CFLAGS_EXTRA = -DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64 -Wall -Wno-unused-function -g ifeq ($(shell uname -s),Linux) @@ -14,6 +17,10 @@ ifeq ($(shell uname -s),Darwin) CFLAGS = -I$(OSXFUSE_ROOT)/include/osxfuse/fuse -L$(OSXFUSE_ROOT)/lib -D_DARWIN_USE_64_BIT_INODE $(CFLAGS_EXTRA) LIBS = -losxfuse endif +ifeq ($(shell uname -s),FreeBSD) + CFLAGS += -L$(FREEBSD_ROOT)/lib -I$(FREEBSD_ROOT)/include $(CFLAGS_EXTRA) + LIBS = -lfuse +endif all: $(TARGETS) |