summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-17 13:41:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-17 13:41:09 -0400
commit08edeb5df043f6cadccd0fc94a79bba30c2ef98e (patch)
tree08a4a374cce4806a8b2f09ee5cbcda42ad5641f1 /Makefile
parent19518cadfe06a1a89144e5172f790f3228377c26 (diff)
avoid building watch or assistant on Solaris
Solaris does not use kqueue, it has some other poll interface.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a18cafa3..27ef62d46 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,10 @@ OPTFLAGS?=-DWITH_INOTIFY
clibs=Utility/libdiskfree.o Utility/libmounts.o
THREADFLAGS=$(shell if test -e `ghc --print-libdir`/libHSrts_thr.a; then printf -- -threaded; fi)
else
+ifeq ($(OS),Solaris)
+# Solaris is not supported by the assistant or watch command.
+FEATURES:=$(shell echo $(FEATURES) | sed -e 's/-DWITH_ASSISTANT//' -e 's/-DWITH_WEBAPP//')
+else
# BSD system
THREADFLAGS=-threaded
OPTFLAGS?=-DWITH_KQUEUE
@@ -32,6 +36,7 @@ CFLAGS=-Wall -m32
endif
endif
endif
+endif
ALLFLAGS = $(BASEFLAGS) $(FEATURES) $(OPTFLAGS) $(THREADFLAGS)