Make DRI dependencies and build depend on the target
[mesa.git] / src / gallium / state_trackers / dri / Makefile.am
index 9428b555512210faf20937d9de9fbc8c68029241..b89d02f2a2b3c2ea9d26b2187e8ed3cfeb768a05 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
-SUBDIRS = sw
+SUBDIRS =
+
+if HAVE_DRISW
+SUBDIRS += sw
+endif
 
 if HAVE_LIBDRM
 SUBDIRS += drm