Teach _Makefile_ to only do _-DWITH_INOTIFY_ when on a Linux machine.

This commit is contained in:
Jimmy Tang 2012-06-18 09:20:35 +01:00 committed by Joey Hess
parent 762b67c163
commit 89f6f820bf

View file

@ -1,6 +1,12 @@
OS:=$(shell uname | sed 's/[-_].*//')
ifeq ($(OS),Linux)
BASEFLAGS_OPTS+=-DWITH_INOTIFY
endif
PREFIX=/usr
IGNORE=-ignore-package monads-fd -ignore-package monads-tf
BASEFLAGS=-Wall $(IGNORE) -outputdir tmp -IUtility -DWITH_S3 -DWITH_INOTIFY
BASEFLAGS=-Wall $(IGNORE) -outputdir tmp -IUtility -DWITH_S3 $(BASEFLAGS_OPTS)
GHCFLAGS=-O2 $(BASEFLAGS)
ifdef PROFILE