Merge branch 'master' into gallium-new-formats
[mesa.git] / src / gallium / drivers / svga / Makefile
index fe1d6d7384181c585927d6936742357191213f10..f36190818757f87d711b74fe0f4dac26caade016 100644 (file)
@@ -4,8 +4,8 @@ include $(TOP)/configs/current
 LIBNAME = svga
 
 C_SOURCES = \
-       svgadump/st_shader_dump.c \
-       svgadump/st_shader_op.c \
+       svgadump/svga_shader_dump.c \
+       svgadump/svga_shader_op.c \
        svgadump/svga_dump.c \
        svga_cmd.c \
        svga_context.c \
@@ -50,14 +50,11 @@ C_SOURCES = \
 LIBRARY_INCLUDES = \
        -I$(TOP)/src/gallium/drivers/svga/include
 
+# With linux-debug we get a lots of warnings, filter out the bad flags.
+CFLAGS := $(filter-out -pedantic, $(filter-out -ansi, $(CFLAGS)))
+
 LIBRARY_DEFINES = \
+       -std=gnu99 -fvisibility=hidden \
        -DHAVE_STDINT_H -DHAVE_SYS_TYPES_H
 
-CC = gcc -fvisibility=hidden -msse -msse2
-
-# Set the gnu99 standard to enable anonymous structs in vmware headers.
-#
-CFLAGS = -Wall -Wmissing-prototypes -std=gnu99 -ffast-math \
-       $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
-
 include ../../Makefile.template