egl/wayland: Return -1 from get_back_bo to indicate error
[mesa.git] / src / Makefile.am
index d096f29c4d5b617459ae0fa7367477b8972aeb2e..76280a0c02ec2a0063b4acbfc644e78ce1522a7d 100644 (file)
@@ -25,4 +25,33 @@ if NEED_OPENGL_COMMON
 SUBDIRS += glsl mesa
 endif
 
-SUBDIRS += $(SRC_DIRS)
+if HAVE_DRI_GLX
+SUBDIRS += glx
+endif
+
+if HAVE_EGL_PLATFORM_WAYLAND
+SUBDIRS += egl/wayland
+endif
+
+if HAVE_GBM
+SUBDIRS += gbm
+endif
+
+if HAVE_EGL
+SUBDIRS += egl
+endif
+
+if HAVE_GALLIUM
+SUBDIRS +=                     \
+       gallium/auxiliary       \
+       gallium/drivers         \
+       gallium/state_trackers  \
+       gallium/winsys          \
+       gallium/targets
+
+if HAVE_GALLIUM_TESTS
+SUBDIRS +=                     \
+       gallium/tests/trivial   \
+       gallium/tests/unit
+endif
+endif