summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-26 01:16:09 +0000
committerPeter Stuge <peter@stuge.se>2009-01-26 01:16:09 +0000
commitd48091a35c18745527d1e164f82bc774e4bd6b58 (patch)
treed403e35f457b54e2a19c77c1ef4110e1da80caee
parent53ac3947db69be8c526958b07f59a24dbc3678be (diff)
downloadcoreboot-d48091a35c18745527d1e164f82bc774e4bd6b58.tar.xz
flashrom: Small cleanup in Makefile.
Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3904 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/flashrom/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/flashrom/Makefile b/util/flashrom/Makefile
index d46600b653..a0c195bc29 100644
--- a/util/flashrom/Makefile
+++ b/util/flashrom/Makefile
@@ -12,11 +12,10 @@ 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), FreeBSD)
@@ -24,6 +23,8 @@ 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 \