summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/sw/Makefile
blob: 2fad717eb1641f82b6f5c58e1540ea8ed804ed5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# src/gallium/winsys/sw/Makefile
TOP = ../../../..
include $(TOP)/configs/current

SUBDIRS = null wrapper

# TODO: this should go through a further indirection level
# (i.e. EGL should set a variable that is checked here)
ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
SUBDIRS += xlib
endif

ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
SUBDIRS += fbdev
endif

ifneq ($(findstring wayland, $(EGL_PLATFORMS)),)
SUBDIRS += wayland
endif

default install clean:
	@for dir in $(SUBDIRS) ; do \
		if [ -d $$dir ] ; then \
			(cd $$dir && $(MAKE) $@) || exit 1; \
		fi \
	done