flashrom: Winbond SuperIO SPI driver.
[coreboot.git] / util / flashrom / Makefile
index d46600b6532ec7dffa0d7601227683edd27d4cb5..4388b53f4006ff22faca1ea902c5def65304300e 100644 (file)
@@ -12,24 +12,29 @@ INSTALL = /usr/bin/install
 PREFIX  = /usr/local
 #CFLAGS  = -O2 -g -Wall -Werror
 CFLAGS  = -Os -Wall -Werror
+LDFLAGS = 
+
 OS_ARCH        = $(shell uname)
-ifeq ($(OS_ARCH), SunOS)
-LDFLAGS = -lpci -lz
-else
-LDFLAGS = -lpci -lz
+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
 endif
 
+LDFLAGS += -lpci -lz
+
 OBJS = chipset_enable.o board_enable.o udelay.o jedec.o stm50flw0x0x.o \
        sst28sf040.o am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o \
        w49f002u.o 82802ab.o pm49fl00x.o sst49lf040.o en29f002a.o \
        sst49lfxxxc.o sst_fwhub.o layout.o cbtable.o flashchips.o physmap.o \
        flashrom.o w39v080fa.o sharplhf00l04.o w29ee011.o spi.o it87spi.o \
-       ichspi.o w39v040c.o sb600spi.o
+       ichspi.o w39v040c.o sb600spi.o wbsio_spi.o
 
 all: pciutils dep $(PROGRAM)