summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorClark Rawlins <clark@bit63.org>2008-02-14 23:22:20 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-02-14 23:22:20 +0000
commit46fc14dcc8cdba1d66ae6fa9fdcbbf33265d676e (patch)
treeb93e410cd1af66e9f0e45e787eb96d356e1b2c4a /util/flashrom
parent9792a034e4d56e16d6db7e45574013585cd5c452 (diff)
With this small change it is possible to build flashrom again when
specifying custom CFLAGS/LDFLAGS from the make command line like: make CFLAGS="..." LDFLAGS="..." I need to do this when building flashrom in a cross compiler environment like buildroot for a foreign target. Signed-off-by: Clark Rawlins <clark@bit63.org> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3102 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/flashrom/Makefile b/util/flashrom/Makefile
index 708c077459..57c96867d2 100644
--- a/util/flashrom/Makefile
+++ b/util/flashrom/Makefile
@@ -32,12 +32,14 @@ all: pciutils dep $(PROGRAM)
# of the checked out flashrom files.
SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
-CFLAGS += $(SVNDEF)
$(PROGRAM): $(OBJS)
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
+flashrom.o: flashrom.c
+ $(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
+
clean:
rm -f *.o *~