2007-09-07 18:40:42 +00:00
|
|
|
--- Makefile 2007-08-05 15:15:51.000000000 +0400
|
|
|
|
+++ Makefile 2007-08-05 15:18:46.000000000 +0400
|
|
|
|
@@ -7,18 +7,10 @@
|
|
|
|
PROGRAM = flashrom
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
-STRIP = strip
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
-PREFIX = /usr/local
|
|
|
|
-#CFLAGS = -O2 -g -Wall -Werror
|
|
|
|
-CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
2007-10-03 13:05:39 +00:00
|
|
|
+PREFIX = /usr
|
2007-09-07 18:40:42 +00:00
|
|
|
OS_ARCH = $(shell uname)
|
|
|
|
-ifeq ($(OS_ARCH), SunOS)
|
|
|
|
LDFLAGS = -lpci -lz
|
|
|
|
-else
|
|
|
|
-LDFLAGS = -lpci -lz -static
|
|
|
|
-STRIP_ARGS = -s
|
|
|
|
-endif
|
|
|
|
|
|
|
|
OBJS = chipset_enable.o board_enable.o udelay.o jedec.o sst28sf040.o \
|
|
|
|
am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o w49f002u.o \
|
|
|
|
@@ -30,7 +22,6 @@
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJS)
|
|
|
|
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
|
|
|
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~
|