scons: Unbreak mingw build.
[mesa.git] / src / egl / Makefile
1 # src/egl/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6 SUBDIRS =
7
8 ifneq ($(findstring wayland, $(EGL_PLATFORMS)),)
9 SUBDIRS += wayland
10 endif
11
12 SUBDIRS += drivers main
13
14 default: subdirs
15
16
17 subdirs:
18 @for dir in $(SUBDIRS) ; do \
19 if [ -d $$dir ] ; then \
20 (cd $$dir && $(MAKE)) || exit 1 ; \
21 fi \
22 done
23
24 install:
25 @for dir in $(SUBDIRS) ; do \
26 if [ -d $$dir ] ; then \
27 (cd $$dir && $(MAKE) install) || exit 1 ; \
28 fi \
29 done
30
31 clean:
32 -@for dir in $(SUBDIRS) ; do \
33 if [ -d $$dir ] ; then \
34 (cd $$dir && $(MAKE) clean) ; \
35 fi \
36 done