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>
$(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)
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers \
- $(GALLIUM_CFLAGS) \
+ $(GALLIUM_WINSYS_CFLAGS) \
$(FREEDRENO_CFLAGS)
noinst_LTLIBRARIES = libfreedrenodrm.la
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
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
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(INTEL_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_WINSYS_CFLAGS) \
+ $(INTEL_CFLAGS)
noinst_LTLIBRARIES = libintelwinsys.la
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
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
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
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libswdri.la
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libfbdev.la
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libws_null.la
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS) \
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS) \
$(WAYLAND_CFLAGS)
noinst_LTLIBRARIES = libws_wayland.la
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS)
noinst_LTLIBRARIES = libwsw.la
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- $(GALLIUM_CFLAGS) \
+AM_CFLAGS = \
+ $(GALLIUM_WINSYS_CFLAGS) \
$(X11_INCLUDES)
noinst_LTLIBRARIES = libws_xlib.la