1# src/gallium/winsys/sw/Makefile
2TOP = ../../../..
3include $(TOP)/configs/current
4
5SUBDIRS = null wrapper
6
7# TODO: this should go through a further indirection level
8# (i.e. EGL should set a variable that is checked here)
9ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
10SUBDIRS += xlib
11endif
12
13ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
14SUBDIRS += fbdev
15endif
16
17ifneq ($(findstring wayland, $(EGL_PLATFORMS)),)
18SUBDIRS += wayland
19endif
20
21default install clean:
22	@for dir in $(SUBDIRS) ; do \
23		if [ -d $$dir ] ; then \
24			(cd $$dir && $(MAKE) $@) || exit 1; \
25		fi \
26	done
27