anv: kill off custom CFLAGS
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 20 Apr 2016 21:12:54 +0000 (22:12 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 07:38:04 +0000 (08:38 +0100)
AM_CFLAGS already does all that we need.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/Makefile.am

index 03c2365b3b92cef5ee31739f52b6135fb1112938..3b0238fe2e9c2954fe647ac7d334fe22fb38f489 100644 (file)
@@ -68,7 +68,7 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/src/compiler/nir \
        -I$(top_builddir)/src/intel
 
-libvulkan_intel_la_CFLAGS = $(CFLAGS) -DVK_USE_PLATFORM_XCB_KHR -Wno-override-init -msse2
+AM_CFLAGS = -DVK_USE_PLATFORM_XCB_KHR -Wno-override-init -msse2
 
 VULKAN_SOURCES = \
        $(VULKAN_FILES) \
@@ -78,16 +78,16 @@ BUILT_SOURCES = \
        $(VULKAN_GENERATED_FILES)
 
 
-libanv_gen7_la_CFLAGS = $(libvulkan_intel_la_CFLAGS) -DGEN_VERSIONx10=70
+libanv_gen7_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=70
 libanv_gen7_la_SOURCES = $(GEN7_FILES)
 
-libanv_gen75_la_CFLAGS = $(libvulkan_intel_la_CFLAGS) -DGEN_VERSIONx10=75
+libanv_gen75_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=75
 libanv_gen75_la_SOURCES = $(GEN75_FILES)
 
-libanv_gen8_la_CFLAGS = $(libvulkan_intel_la_CFLAGS) -DGEN_VERSIONx10=80
+libanv_gen8_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=80
 libanv_gen8_la_SOURCES = $(GEN8_FILES)
 
-libanv_gen9_la_CFLAGS = $(libvulkan_intel_la_CFLAGS) -DGEN_VERSIONx10=90
+libanv_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
 libanv_gen9_la_SOURCES = $(GEN9_FILES)
 
 if HAVE_EGL_PLATFORM_WAYLAND
@@ -105,7 +105,7 @@ AM_CPPFLAGS += -I$(top_srcdir)/src/egl/wayland/wayland-drm
 VULKAN_SOURCES += \
        wayland-drm-protocol.c \
        $(VULKAN_WSI_WAYLAND_FILES)
-libvulkan_intel_la_CFLAGS += -DHAVE_WAYLAND_PLATFORM -DVK_USE_PLATFORM_WAYLAND_KHR
+AM_CFLAGS += -DHAVE_WAYLAND_PLATFORM -DVK_USE_PLATFORM_WAYLAND_KHR
 
 VULKAN_ENTRYPOINT_CPPFLAGS += -DVK_USE_PLATFORM_WAYLAND_KHR
 endif
@@ -157,10 +157,6 @@ libvulkan_test_la_SOURCES =                             \
        $(VULKAN_SOURCES)                               \
        $(VULKAN_GEM_STUB_FILES)
 
-libvulkan_test_la_CFLAGS =                              \
-       -I$(top_srcdir)/src/intel/vulkan                \
-       $(libvulkan_intel_la_CFLAGS)
-
 libvulkan_test_la_LIBADD = $(libvulkan_intel_la_LIBADD)
 
 include $(top_srcdir)/install-lib-links.mk