Instead of adding extra flags to DEFINES with +=, define EXTRA_DEFINES instead.
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Mar 2006 16:24:46 +0000 (16:24 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Mar 2006 16:24:46 +0000 (16:24 +0000)
This eliminates a bunch of duplication in the compilation commmands.

src/glx/x11/Makefile

index 84e244501ae86a89fbee214301de9f5d2416608a..977967ac2fa3745dbc9f33d97684de6ee89f537a 100644 (file)
@@ -1,7 +1,7 @@
 TOP = ../../..
 include $(TOP)/configs/current
 
-DEFINES += -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER
+EXTRA_DEFINES = -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER
 
 SOURCES = \
          glcontextmodes.c \
@@ -53,10 +53,10 @@ INCLUDES = -I. \
 ##### RULES #####
 
 .c.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@
 
 .S.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES)  $< -o $@
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES)  $< -o $@
 
 ##### TARGETS #####