From 4c6096e2f92db212c2172e5567e5eaa53629ab9a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 27 Dec 2012 14:19:12 -0500 Subject: OSX FSEvents support Needs work to deal with directory renames better; otherwise seems to basically work. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 31f32b871..2dc75651a 100644 --- a/Makefile +++ b/Makefile @@ -26,14 +26,19 @@ FEATURES:=$(shell echo $(FEATURES) | sed -e 's/-DWITH_ASSISTANT//' -e 's/-DWITH_ else # BSD system THREADFLAGS=-threaded -OPTFLAGS?=-DWITH_KQUEUE -clibs=Utility/libdiskfree.o Utility/libmounts.o Utility/libkqueue.o ifeq ($(OS),Darwin) +# use fsevents for OSX +OPTFLAGS?=-DWITH_FSEVENTS +clibs=Utility/libdiskfree.o Utility/libmounts.o # Ensure OSX compiler builds for 32 bit when using 32 bit ghc GHCARCH:=$(shell ghc -e 'print System.Info.arch') ifeq ($(GHCARCH),i386) CFLAGS=-Wall -m32 endif +else +# BSD system with kqueue +OPTFLAGS?=-DWITH_KQUEUE +clibs=Utility/libdiskfree.o Utility/libmounts.o Utility/libkqueue.o endif endif endif -- cgit v1.2.3