diff options
author | Clark Rawlins <clark@bit63.org> | 2008-02-14 23:22:20 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-02-14 23:22:20 +0000 |
commit | f197e0cae5219afc1c21b1826707e46dffe1ef73 (patch) | |
tree | bb60b45f8d20b064088b67abf8e25e39123380fe /Makefile | |
parent | cb3ab255e5209cf168eb565b3810cd476f193403 (diff) | |
download | flashrom-f197e0cae5219afc1c21b1826707e46dffe1ef73.zip flashrom-f197e0cae5219afc1c21b1826707e46dffe1ef73.tar.gz |
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 <clark@bit63.org>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 *~ |