path: root/Makefile
diff options
authorClark Rawlins <>2008-02-14 23:22:20 +0000
committerUwe Hermann <>2008-02-14 23:22:20 +0000
commit02016f742c871f99077f7c1304945ce81f452dd0 (patch)
treebb60b45f8d20b064088b67abf8e25e39123380fe /Makefile
parent3697ac75d5445c7ef66913cc3935f0bfe57a8d19 (diff)
Fix compilation with custom CFLAGS
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. Corresponding to flashrom svn r196 and coreboot v2 svn r3102. Signed-off-by: Clark Rawlins <> Acked-by: Ronald G. Minnich <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'Makefile')
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 708c077..57c9686 100644
--- a/Makefile
+++ b/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/")"'
+flashrom.o: flashrom.c
+ $(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
rm -f *.o *~
OpenPOWER on IntegriCloud