From b63e2e3bb6a682d969bbe3f579f5fe0bbb54aa2f Mon Sep 17 00:00:00 2001 From: "R. Andrew Ohana" Date: Sat, 7 Jul 2012 20:39:18 -0700 Subject: [PATCH] Make compatible with OSXFUSE's compatibility layer --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 42af865..067ea2b 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ +ifeq ($(shell [ -d /usr/local/include/osxfuse ] && echo osxfuse),osxfuse) +CFLAGS += -I/usr/local/include/osxfuse +LDFLAGS += -lfuse +else ifeq ($(shell which pkg-config), ) $(error You need to install pkg-config in order to compile this sources) endif - -CFLAGS += $(shell pkg-config fuse --cflags) -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra +CFLAGS += $(shell pkg-config fuse --cflags) LDFLAGS += $(shell pkg-config fuse --libs) +endif + +CFLAGS += -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra ifeq ($(shell uname), Darwin) CFLAGS += -mmacosx-version-min=10.5