summaryrefslogtreecommitdiffstats
path: root/Makefile
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
commita69c447b908c2e4b31df78eba830a88ab8547662 (patch)
tree56b97dff2ef46cc42f38cf4272a06625c40509b9 /Makefile
parent0593f21f1049e2dc8df1e2920c29ce9e93f7a663 (diff)
downloadast2050-flashrom-a69c447b908c2e4b31df78eba830a88ab8547662.zip
ast2050-flashrom-a69c447b908c2e4b31df78eba830a88ab8547662.tar.gz
Small cleanup in Makefile
Corresponding to flashrom svn r398 and coreboot v2 svn r3904. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d46600b..a0c195b 100644
--- a/Makefile
+++ b/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 \
OpenPOWER on IntegriCloud