AUTOMAKE_OPTIONS = subdir-objects
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/include \
- -I$(top_srcdir)/src/gallium/auxiliary \
- -I$(top_srcdir)/src/gallium/drivers \
- $(DEFINES) \
- $(PIC_FLAGS)
-noinst_LIBRARIES =
+SUBDIRS = . galahad identity noop trace rbug
-SUBDIRS =
+################################################################################
+
+if HAVE_GALLIUM_FREEDRENO
+
+SUBDIRS += freedreno
+
+endif
+
+################################################################################
+
+if HAVE_GALLIUM_I915
+
+SUBDIRS += i915
+
+endif
+
+################################################################################
+
+if HAVE_GALLIUM_ILO
+
+SUBDIRS += ilo
+
+endif
################################################################################
-if HAVE_GALAHAD_GALLIUM
+if HAVE_GALLIUM_NOUVEAU
+
+SUBDIRS += nouveau
+
+endif
+
+################################################################################
-noinst_LIBRARIES+= galahad/libgalahad.a
+if HAVE_GALLIUM_SVGA
-galahad_libgalahad_a_SOURCES = \
- galahad/glhd_objects.c \
- galahad/glhd_context.c \
- galahad/glhd_screen.c
+SUBDIRS += svga
endif
################################################################################
-if HAVE_IDENTITY_GALLIUM
+if HAVE_GALLIUM_RADEON_COMMON
+
+SUBDIRS += radeon
+
+endif
+
+################################################################################
-noinst_LIBRARIES+= identity/libidentity.a
+if HAVE_GALLIUM_R300
-identity_libidentity_a_SOURCES = \
- identity/id_objects.c \
- identity/id_context.c \
- identity/id_screen.c
+SUBDIRS += r300
endif
################################################################################
-if HAVE_NOOP_GALLIUM
+if HAVE_GALLIUM_R600
+
+SUBDIRS += r600
-# Meta-driver which combines whichever software rasterizers have been
-# built into a single convenience library.
+endif
+
+################################################################################
-noinst_LIBRARIES+= noop/libnoop.a
+if HAVE_GALLIUM_RADEONSI
-noop_libnoop_a_SOURCES = \
- noop/noop_pipe.c \
- noop/noop_state.c
+SUBDIRS += radeonsi
endif
################################################################################
-if NEED_RADEON_GALLIUM
+if NEED_GALLIUM_SOFTPIPE_DRIVER
-SUBDIRS+= radeon
+SUBDIRS += softpipe
endif
################################################################################
-SUBDIRS+= $(GALLIUM_MAKE_DIRS)
+if NEED_GALLIUM_LLVMPIPE_DRIVER
-# FIXME: Remove when the rest of Gallium is converted to automake.
-default: all
+SUBDIRS += llvmpipe
+endif