summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-01-26 01:23:31 +0000
committerPeter Stuge <peter@stuge.se>2009-01-26 01:23:31 +0000
commit3451aa55079c126cf5ab6753f8c238bc85c3f0b6 (patch)
tree8c343406448761849134777cf4a7c81b089a7d58 /Makefile
parent9fd389ecf29ca24e65f0ac5175518ead0ac241f0 (diff)
downloadflashrom-3451aa55079c126cf5ab6753f8c238bc85c3f0b6.zip
flashrom-3451aa55079c126cf5ab6753f8c238bc85c3f0b6.tar.gz
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 Corresponding to flashrom svn r399 and coreboot v2 svn r3905. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a0c195b..86f91d4 100644
--- a/Makefile
+++ b/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
OpenPOWER on IntegriCloud