Browse Source

Replace DEFINES with DRIVER_DEFINES. If a driver needs to set extra flags,

do so with DRIVER_DEFINES.
This eliminates the duplicated flags we were passing to each cc command.
tags/mesa-6_5-20060712
Brian Paul 19 years ago
parent
commit
0dcab2a86a
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/mesa/drivers/dri/Makefile.template

+ 4
- 4
src/mesa/drivers/dri/Makefile.template View 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

Loading…
Cancel
Save