OSDN Git Service

Replace DEFINES with DRIVER_DEFINES. If a driver needs to set extra flags,
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 6 Apr 2006 16:47:51 +0000 (16:47 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 6 Apr 2006 16:47:51 +0000 (16:47 +0000)
do so with DRIVER_DEFINES.
This eliminates the duplicated flags we were passing to each cc command.

src/mesa/drivers/dri/Makefile.template

index 9e1b362..f07dda3 100644 (file)
@@ -57,10 +57,10 @@ SHARED_INCLUDES = \
 ##### RULES #####
 
 .c.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
 
 .S.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES)  $< -o $@
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES)  $< -o $@
 
 
 ##### TARGETS #####
@@ -88,8 +88,8 @@ $(LIB_DIR)/$(LIBNAME): $(LIBNAME)
 .PHONY: depend
 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
        touch depend
-       $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \
-               >& /dev/null 
+       $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
+               $(ASM_SOURCES) >& /dev/null 
 
 
 # Emacs tags