Mesa (master): gallium: Using the proper pattern rules for Makefile template.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Feb 9 17:24:56 UTC 2010


Module: Mesa
Branch: master
Commit: 62d1e40e0d672cc84708cd8a99f26ee5917c6aef
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62d1e40e0d672cc84708cd8a99f26ee5917c6aef

Author: Chris Li <chrisl at vmware.com>
Date:   Fri Feb  5 21:22:39 2010 -0800

gallium: Using the proper pattern rules for Makefile template.

The .o.c rule is consider obsolete.

Signed-off-by: José Fonseca <jfonseca at vmware.com>

---

 src/gallium/Makefile.template |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/Makefile.template b/src/gallium/Makefile.template
index 1364235..35f603a 100644
--- a/src/gallium/Makefile.template
+++ b/src/gallium/Makefile.template
@@ -53,13 +53,13 @@ install:
 
 ##### RULES #####
 
-.c.o:
+%.o: %.c
 	$(CC) -c $(INCLUDES) $(DEFINES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
 
-.cpp.o:
+%.o: %.cpp
 	$(CXX) -c $(INCLUDES) $(DEFINES) $(CXXFLAGS) $(LIBRARY_DEFINES) $< -o $@
 
-.S.o:
+%.o: %.S
 	$(CC) -c $(INCLUDES) $(DEFINES) $(CFLAGS) $(LIBRARY_DEFINES)  $< -o $@
 
 




More information about the mesa-commit mailing list