From 713ee92c96c0c92cdd1fe64a58cc1f9abd94d11c Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 26 Jan 2009 01:23:31 +0000 Subject: flashrom: Darwin / Mac OS X Through DirectIO from coresystems GmbH we now support Darwin/Mac OS X. DirectIO is available at http://www.coresystems.de/en/directio Signed-off-by: Stefan Reinauer Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/flashrom/Makefile') diff --git a/util/flashrom/Makefile b/util/flashrom/Makefile index a0c195bc29..86f91d4a34 100644 --- a/util/flashrom/Makefile +++ b/util/flashrom/Makefile @@ -18,6 +18,10 @@ OS_ARCH = $(shell uname) ifneq ($(OS_ARCH), SunOS) STRIP_ARGS = -s endif +ifeq ($(OS_ARCH), Darwin) +CFLAGS += -I/usr/local/include +LDFLAGS += -framework IOKit -framework DirectIO -L/usr/local/lib +endif ifeq ($(OS_ARCH), FreeBSD) CFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib -- cgit v1.2.3