gallium/winsys: compact compiler flags into Automake.inc

Cleanup the duplicating flags and consolidate into a sigle variable.

Note: this patch adds VISIBILITY_CFLAGS to the following targets
* freedreno/drm
* i915/{drm,sw}
* nouveau/drm
* sw/fbdev
* sw/null
* sw/wayland
* sw/wrapper
* sw/xlib

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov 2013-11-02 02:02:47 +00:00
parent 096b988360
commit f7ac1d5989
14 changed files with 28 additions and 32 deletions

View file

@ -50,3 +50,9 @@ GALLIUM_VDPAU_LIB_DEPS = \
$(VDPAU_LIBS) \
$(LIBDRM_LIBS)
GALLIUM_WINSYS_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gallium/include \
-I$(top_srcdir)/src/gallium/auxiliary \
$(DEFINES) \
$(VISIBILITY_CFLAGS)

View file

@ -25,7 +25,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(GALLIUM_WINSYS_CFLAGS) \
$(FREEDRENO_CFLAGS)
noinst_LTLIBRARIES = libfreedrenodrm.la

View file

@ -24,9 +24,8 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(GALLIUM_WINSYS_CFLAGS) \
$(INTEL_CFLAGS)
noinst_LTLIBRARIES = libi915drm.la

View file

@ -24,9 +24,8 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(GALLIUM_WINSYS_CFLAGS) \
$(INTEL_CFLAGS)
noinst_LTLIBRARIES = libi915sw.la

View file

@ -25,9 +25,8 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
$(GALLIUM_CFLAGS) \
$(INTEL_CFLAGS) \
$(VISIBILITY_CFLAGS)
$(GALLIUM_WINSYS_CFLAGS) \
$(INTEL_CFLAGS)
noinst_LTLIBRARIES = libintelwinsys.la

View file

@ -24,9 +24,8 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(GALLIUM_WINSYS_CFLAGS) \
$(NOUVEAU_CFLAGS)
noinst_LTLIBRARIES = libnouveaudrm.la

View file

@ -2,10 +2,8 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/include \
$(GALLIUM_CFLAGS) \
$(RADEON_CFLAGS) \
$(VISIBILITY_CFLAGS)
$(GALLIUM_WINSYS_CFLAGS) \
$(RADEON_CFLAGS)
noinst_LTLIBRARIES = libradeonwinsys.la

View file

@ -23,16 +23,13 @@
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers/svga \
-I$(top_srcdir)/src/gallium/drivers/svga/include \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(GALLIUM_WINSYS_CFLAGS) \
$(LIBDRM_CFLAGS)
AM_CFLAGS = $(VISIBILITY_CFLAGS)
#On some systems -std= must be added to CFLAGS to be the last -std=
CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64

View file

@ -22,9 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS) \
$(VISIBILITY_CFLAGS)
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libswdri.la

View file

@ -22,8 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS)
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libfbdev.la

View file

@ -22,8 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS)
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libws_null.la

View file

@ -22,8 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS) \
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS) \
$(WAYLAND_CFLAGS)
noinst_LTLIBRARIES = libws_wayland.la

View file

@ -22,8 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS)
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libwsw.la

View file

@ -22,8 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS) \
AM_CFLAGS = \
$(GALLIUM_WINSYS_CFLAGS) \
$(X11_INCLUDES)
noinst_LTLIBRARIES = libws_xlib.la