35 lines
959 B
Diff
35 lines
959 B
Diff
--- Makefile.orig 2009-01-26 09:42:02.000000000 +0300
|
|
+++ Makefile 2009-03-11 15:46:46.227346626 +0300
|
|
@@ -9,14 +9,14 @@
|
|
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
|
|
LDFLAGS =
|
|
|
|
OS_ARCH = $(shell uname)
|
|
ifneq ($(OS_ARCH), SunOS)
|
|
-STRIP_ARGS = -s
|
|
+#STRIP_ARGS = -s
|
|
endif
|
|
ifeq ($(OS_ARCH), Darwin)
|
|
CFLAGS += -I/usr/local/include
|
|
@@ -40,12 +40,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 $@
|