1 # src/gallium/winsys/sw/Makefile 2 TOP = ../../../.. 3 include $(TOP)/configs/current 4 5 SUBDIRS = 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) 9 ifneq ($(findstring x11, $(EGL_PLATFORMS)),) 10 SUBDIRS += xlib 11 endif 12 13 ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),) 14 SUBDIRS += fbdev 15 endif 16 17 ifneq ($(findstring wayland, $(EGL_PLATFORMS)),) 18 SUBDIRS += wayland 19 endif 20 21 default install clean: 22 @for dir in $(SUBDIRS) ; do \ 23 if [ -d $$dir ] ; then \ 24 (cd $$dir && $(MAKE) $@) || exit 1; \ 25 fi \ 26 done 27