allow OPTFLAGS to be overridden
This commit is contained in:
parent
c504f4025f
commit
979f9cd966
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -16,13 +16,13 @@ all=$(bins) $(mans) docs
|
|||
|
||||
OS:=$(shell uname | sed 's/[-_].*//')
|
||||
ifeq ($(OS),Linux)
|
||||
OPTFLAGS=-DWITH_INOTIFY -DWITH_DBUS
|
||||
OPTFLAGS?=-DWITH_INOTIFY -DWITH_DBUS
|
||||
clibs=Utility/libdiskfree.o Utility/libmounts.o
|
||||
THREADFLAGS=$(shell if test -e `ghc --print-libdir`/libHSrts_thr.a; then printf -- -threaded; fi)
|
||||
else
|
||||
# BSD system
|
||||
THREADFLAGS=-threaded
|
||||
OPTFLAGS=-DWITH_KQUEUE
|
||||
OPTFLAGS?=-DWITH_KQUEUE
|
||||
clibs=Utility/libdiskfree.o Utility/libmounts.o Utility/libkqueue.o
|
||||
ifeq ($(OS),Darwin)
|
||||
# Ensure OSX compiler builds for 32 bit when using 32 bit ghc
|
||||
|
|
Loading…
Reference in a new issue