flashrom/flashrom--Makefile_cleanup.diff

36 lines
1005 B
Diff
Raw Normal View History

2008-07-07 17:38:19 +00:00
--- Makefile.Makefile_cleanup 2008-07-02 07:03:58.000000000 +0400
+++ Makefile 2008-07-07 21:31:20.000000000 +0400
2008-05-17 19:35:14 +00:00
@@ -9,15 +9,15 @@
2007-09-07 18:40:42 +00:00
CC = gcc
2008-05-17 19:35:14 +00:00
STRIP = strip
2007-09-07 18:40:42 +00:00
INSTALL = /usr/bin/install
-PREFIX = /usr/local
+PREFIX = /usr
2008-05-17 19:35:14 +00:00
#CFLAGS = -O2 -g -Wall -Werror
2009-01-08 10:26:15 +00:00
-CFLAGS = -Os -Wall -Werror
+#CFLAGS = -Os -Wall -Werror
2007-09-07 18:40:42 +00:00
OS_ARCH = $(shell uname)
2008-05-17 19:35:14 +00:00
ifeq ($(OS_ARCH), SunOS)
LDFLAGS = -lpci -lz
else
2007-09-07 18:40:42 +00:00
LDFLAGS = -lpci -lz
-STRIP_ARGS = -s
2008-05-17 19:35:14 +00:00
+#STRIP_ARGS = -s
endif
2008-07-07 17:38:19 +00:00
ifeq ($(OS_ARCH), FreeBSD)
CFLAGS += -I/usr/local/include
@@ -35,12 +35,11 @@
2007-09-07 18:40:42 +00:00
2008-05-17 19:35:14 +00:00
# Set the flashrom version string from the highest revision number
# of the checked out flashrom files.
-SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
+#SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
2007-09-07 18:40:42 +00:00
$(PROGRAM): $(OBJS)
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
2008-05-17 19:35:14 +00:00
flashrom.o: flashrom.c
$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@