From 46fc14dcc8cdba1d66ae6fa9fdcbbf33265d676e Mon Sep 17 00:00:00 2001 From: Clark Rawlins Date: Thu, 14 Feb 2008 23:22:20 +0000 Subject: 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 Acked-by: Ronald G. Minnich Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3102 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/flashrom/Makefile') 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 *~ -- cgit v1.2.3