flashrom/flashrom--Makefile_cleanup.diff
2009-01-08 10:26:15 +00:00

36 lines
1005 B
Diff

--- Makefile.Makefile_cleanup 2008-07-02 07:03:58.000000000 +0400
+++ Makefile 2008-07-07 21:31:20.000000000 +0400
@@ -9,15 +9,15 @@
CC = gcc
STRIP = strip
INSTALL = /usr/bin/install
-PREFIX = /usr/local
+PREFIX = /usr
#CFLAGS = -O2 -g -Wall -Werror
-CFLAGS = -Os -Wall -Werror
+#CFLAGS = -Os -Wall -Werror
OS_ARCH = $(shell uname)
ifeq ($(OS_ARCH), SunOS)
LDFLAGS = -lpci -lz
else
LDFLAGS = -lpci -lz
-STRIP_ARGS = -s
+#STRIP_ARGS = -s
endif
ifeq ($(OS_ARCH), FreeBSD)
CFLAGS += -I/usr/local/include
@@ -35,12 +35,11 @@
# 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/")"'
$(PROGRAM): $(OBJS)
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
flashrom.o: flashrom.c
$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@