-I$(top_srcdir)/src/gallium/include \
-I$(top_srcdir)/src/gallium/auxiliary \
$(DEFINES)
+
+# src/gallium/auxiliary must appear before src/gallium/drivers
+# because there are stupidly two rbug_context.h files in
+# different directories, and which one is included by the
+# preprocessor is determined by the ordering of the -I flags.
+GALLIUM_DRIVER_CFLAGS = \
+ -I$(srcdir)/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src/gallium/include \
+ -I$(top_srcdir)/src/gallium/auxiliary \
+ -I$(top_srcdir)/src/gallium/drivers \
+ $(DEFINES) \
+ $(VISIBILITY_CFLAGS)
+
+GALLIUM_DRIVER_CXXFLAGS = \
+ -I$(srcdir)/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src/gallium/include \
+ -I$(top_srcdir)/src/gallium/auxiliary \
+ -I$(top_srcdir)/src/gallium/drivers \
+ $(DEFINES) \
+ $(VISIBILITY_CXXFLAGS)
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libfreedreno.la
-
AM_CFLAGS = \
-Wno-packed-bitfield-compat \
- -I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/gallium/drivers/freedreno/a3xx \
-I$(top_srcdir)/src/gallium/drivers/freedreno/a2xx \
- $(GALLIUM_CFLAGS) \
- $(FREEDRENO_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(FREEDRENO_CFLAGS)
+
+noinst_LTLIBRARIES = libfreedreno.la
libfreedreno_la_SOURCES = \
$(C_SOURCES) \
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS)
noinst_LTLIBRARIES = libgalahad.la
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libi915.la
+AM_CFLAGS = \
+ $(GALLIUM_DRIVER_CFLAGS)
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS)
+noinst_LTLIBRARIES = libi915.la
libi915_la_SOURCES = $(C_SOURCES)
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS)
noinst_LTLIBRARIES = libidentity.la
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libilo.la
-
AM_CPPFLAGS = \
- -I$(srcdir)/include \
-I$(top_srcdir)/src/gallium/winsys/intel \
- $(GALLIUM_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS)
-AM_CFLAGS = \
- $(VISIBILITY_CFLAGS)
+noinst_LTLIBRARIES = libilo.la
libilo_la_SOURCES = $(C_SOURCES)
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
-AM_CFLAGS = $(LLVM_CFLAGS)
-AM_CXXFLAGS= $(LLVM_CXXFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(LLVM_CFLAGS)
+AM_CXXFLAGS= \
+ $(GALLIUM_DRIVER_CXXFLAGS) \
+ $(LLVM_CXXFLAGS)
noinst_LTLIBRARIES = libllvmpipe.la
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS)
noinst_LTLIBRARIES = libnoop.la
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libnouveau.la
-
AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers/nouveau/include \
- $(GALLIUM_CFLAGS) \
+ $(GALLIUM_DRIVER_CFLAGS) \
$(LIBDRM_CFLAGS) \
- $(NOUVEAU_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(NOUVEAU_CFLAGS)
+
+noinst_LTLIBRARIES = libnouveau.la
libnouveau_la_SOURCES = \
$(C_SOURCES) \
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libr300.la libr300-helper.la
-check_PROGRAMS = r300_compiler_tests
-TESTS = r300_compiler_tests
-
AM_CFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/mesa/program \
-I$(top_srcdir)/src/mesa \
-I$(top_srcdir)/src/glsl \
-I$(top_srcdir)/src/mapi \
- $(VISIBILITY_CFLAGS) \
- $(GALLIUM_CFLAGS) \
+ $(GALLIUM_DRIVER_CFLAGS) \
$(LLVM_CFLAGS) \
$(RADEON_CFLAGS)
+noinst_LTLIBRARIES = libr300.la libr300-helper.la
+check_PROGRAMS = r300_compiler_tests
+TESTS = r300_compiler_tests
+
r300_compiler_tests_LDADD = libr300.la libr300-helper.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(GALLIUM_DRI_LIB_DEPS)
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libr600.la
-
AM_CFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS) \
- $(RADEON_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(RADEON_CFLAGS)
AM_CXXFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/gallium/include \
- -I$(top_srcdir)/src/gallium/auxiliary \
- $(RADEON_CFLAGS) \
- $(DEFINES) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CXXFLAGS) \
+ $(RADEON_CFLAGS)
+
+noinst_LTLIBRARIES = libr600.la
libr600_la_SOURCES = \
$(C_SOURCES) \
if NEED_RADEON_LLVM
+AM_CFLAGS += \
+ $(LLVM_CFLAGS) \
+ -I$(top_srcdir)/src/gallium/drivers/radeon/
+
libr600_la_SOURCES += \
$(LLVM_C_SOURCES)
libr600_la_LIBADD += ../radeon/libllvmradeon.la
-AM_CFLAGS += \
- $(LLVM_CFLAGS) \
- -I$(top_srcdir)/src/gallium/drivers/radeon/
-
endif
if USE_R600_LLVM_COMPILER
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libradeon.la
-AM_CFLAGS = $(GALLIUM_CFLAGS) $(RADEON_CFLAGS) $(VISIBILITY_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(RADEON_CFLAGS)
+
+noinst_LTLIBRARIES = libradeon.la
libradeon_la_SOURCES = \
$(C_SOURCES)
if NEED_RADEON_LLVM
-libllvmradeon_la_LDFLAGS = \
- $(LLVM_LDFLAGS)
-
noinst_LTLIBRARIES += libllvmradeon.la
libllvmradeon_la_CXXFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(DEFINES) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CXXFLAGS)
libllvmradeon_la_CFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(LLVM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(LLVM_CFLAGS)
libllvmradeon_la_SOURCES = \
$(LLVM_CPP_FILES) \
$(LLVM_LIBS) \
$(ELF_LIB)
+libllvmradeon_la_LDFLAGS = \
+ $(LLVM_LDFLAGS)
+
endif
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = libradeonsi.la
-
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers/radeon \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS) \
- $(RADEON_CFLAGS)
AM_CFLAGS = \
- $(LLVM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ -I$(top_srcdir)/src/gallium/drivers/radeon \
+ $(GALLIUM_DRIVER_CFLAGS) \
+ $(RADEON_CFLAGS) \
+ $(LLVM_CFLAGS)
+
+noinst_LTLIBRARIES = libradeonsi.la
libradeonsi_la_SOURCES = $(C_SOURCES)
libradeonsi_la_LIBADD = \
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-noinst_LTLIBRARIES = librbug.la
-
-# GALLIUM_CFLAGS must appear before src/gallium/drivers
-# because there are stupidly two rbug_context.h files in
-# different directories, and which one is included by the
-# preprocessor is determined by the ordering of the -I flags.
AM_CFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS) \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include
+ $(GALLIUM_DRIVER_CFLAGS)
+
+noinst_LTLIBRARIES = librbug.la
librbug_la_SOURCES = $(C_SOURCES)
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_DRIVER_CFLAGS)
noinst_LTLIBRARIES = libsoftpipe.la
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/drivers/svga/include \
- -I$(top_srcdir)/src/gallium/drivers \
- -I$(top_srcdir)/include \
- $(GALLIUM_CFLAGS)
-
-AM_CFLAGS = $(VISIBILITY_CFLAGS)
+AM_CFLAGS = \
+ $(GALLIUM_DRIVER_CFLAGS)
#On some systems -std= must be added to CFLAGS to be the last -std=
CFLAGS += -std=gnu99
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- $(GALLIUM_CFLAGS) \
- $(VISIBILITY_CFLAGS)
+ $(GALLIUM_DRIVER_CFLAGS)
noinst_LTLIBRARIES = libtrace.la