summaryrefslogtreecommitdiff
path: root/util/flashrom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom/Makefile')
-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 *~