freedreno/a3xx/compiler: trans_cmp() sanity
[mesa.git] / src / gallium / drivers / Makefile.am
index c4dc6bf14df7e898231b19df92631e7c359034ee..f8baa3cf92c4a23249827603eefbef32a426d74b 100644 (file)
@@ -1,56 +1,69 @@
 AUTOMAKE_OPTIONS = subdir-objects
 
-AM_CPPFLAGS = \
-       -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src/gallium/include \
-       -I$(top_srcdir)/src/gallium/auxiliary \
-       -I$(top_srcdir)/src/gallium/drivers \
-       $(DEFINES)
 
-AM_CFLAGS = $(VISIBILITY_CFLAGS)
+SUBDIRS = . galahad identity noop trace rbug
 
-noinst_LTLIBRARIES =
+################################################################################
+
+if HAVE_GALLIUM_R600
 
-SUBDIRS = .
+SUBDIRS += radeon
+
+else
+
+if HAVE_GALLIUM_RADEONSI
+
+SUBDIRS += radeon
+
+endif
+
+endif
 
 ################################################################################
 
-if HAVE_GALAHAD_GALLIUM
+if HAVE_GALLIUM_FREEDRENO
+
+SUBDIRS += freedreno
+
+endif
+
+################################################################################
 
-noinst_LTLIBRARIES += galahad/libgalahad.la
+if HAVE_GALLIUM_I915
 
-galahad_libgalahad_la_SOURCES = \
-       galahad/glhd_objects.c \
-       galahad/glhd_context.c \
-       galahad/glhd_screen.c
+SUBDIRS += i915
 
 endif
 
 ################################################################################
 
-if HAVE_IDENTITY_GALLIUM
+if HAVE_GALLIUM_ILO
 
-noinst_LTLIBRARIES += identity/libidentity.la
+SUBDIRS += ilo
 
-identity_libidentity_la_SOURCES = \
-       identity/id_objects.c \
-       identity/id_context.c \
-       identity/id_screen.c
+endif
+
+################################################################################
+
+if HAVE_GALLIUM_NOUVEAU
+
+SUBDIRS += nouveau
 
 endif
 
 ################################################################################
 
-if HAVE_NOOP_GALLIUM
+if HAVE_GALLIUM_SVGA
+
+SUBDIRS += svga
+
+endif
 
-# Meta-driver which combines whichever software rasterizers have been
-# built into a single convenience library.
+################################################################################
 
-noinst_LTLIBRARIES += noop/libnoop.la
+if HAVE_GALLIUM_R300
 
-noop_libnoop_la_SOURCES = \
-       noop/noop_pipe.c \
-       noop/noop_state.c
+SUBDIRS += r300
 
 endif
 
@@ -58,18 +71,30 @@ endif
 
 if HAVE_GALLIUM_R600
 
-SUBDIRS += radeon
+SUBDIRS += r600
 
-else
+endif
+
+################################################################################
 
 if HAVE_GALLIUM_RADEONSI
 
-SUBDIRS += radeon
+SUBDIRS += radeonsi
 
 endif
 
+################################################################################
+
+if NEED_GALLIUM_SOFTPIPE_DRIVER
+
+SUBDIRS += softpipe
+
 endif
 
 ################################################################################
 
-SUBDIRS += $(GALLIUM_MAKE_DIRS)
+if NEED_GALLIUM_LLVMPIPE_DRIVER
+
+SUBDIRS += llvmpipe
+
+endif