[coreboot] [PATCH] flashrom: Clean up Makefile

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Tue Jun 23 12:49:55 CEST 2009


The akefile rules for %.o and flashrom.o are identical. Let %.o handle
flashrom.o as well.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Index: flashrom-makefile_cleanup/Makefile
===================================================================
--- flashrom-makefile_cleanup/Makefile	(Revision 624)
+++ flashrom-makefile_cleanup/Makefile	(Arbeitskopie)
@@ -70,11 +70,8 @@
 
 FEATURE_LIBS = $(shell LANG=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-lftdi")
 
-flashrom.o: flashrom.c .features
-	$(CC) $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) -c -o $@ $< $(SVNDEF)
-
 %.o: %.c .features
-	$(CC) $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) -c $< -o $@ $(SVNDEF)
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) $(SVNDEF) -o $@ -c $<
 
 clean:
 	rm -f $(PROGRAM) *.o


-- 
http://www.hailfinger.org/

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flashrom_makefile_cleanup.diff
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090623/755b709b/attachment.ksh>


More information about the coreboot mailing list