Teach _Makefile_ to only do _-DWITH_INOTIFY_ when on a Linux machine.
This commit is contained in:
parent
762b67c163
commit
89f6f820bf
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue