From c58a27842f19a6ea78c1192ef104937d9ae9c40e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 14 Oct 2012 20:32:27 -0400 Subject: allow OPTFLAGS to be overridden --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9acdd1a49..e4b0b8207 100644 --- a/Makefile +++ b/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 -- cgit v1.2.3