diff options
author | Joey Hess <joeyh@oberon.tam-lin.net> | 2012-12-27 14:19:12 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-12-27 15:22:29 -0400 |
commit | 4c6096e2f92db212c2172e5567e5eaa53629ab9a (patch) | |
tree | 625ab2f9fce363477e7f0385c659ca5b6fe2f23f /Makefile | |
parent | eeee547d7f9a4247d82954b823c1649e115d76d9 (diff) |
OSX FSEvents support
Needs work to deal with directory renames better; otherwise seems to
basically work.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |