From: Chris Li Date: Sat, 6 Feb 2010 05:22:39 +0000 (-0800) Subject: gallium: Using the proper pattern rules for Makefile template. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62d1e40e0d672cc84708cd8a99f26ee5917c6aef;p=mesa.git gallium: Using the proper pattern rules for Makefile template. The .o.c rule is consider obsolete. Signed-off-by: José Fonseca --- diff --git a/src/gallium/Makefile.template b/src/gallium/Makefile.template index 136423513c6..35f603a84e0 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 $@