summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/drivers/Makefile')
-rw-r--r--src/egl/drivers/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/egl/drivers/Makefile b/src/egl/drivers/Makefile
new file mode 100644
index 00000000000..a2d67ca5a8a
--- /dev/null
+++ b/src/egl/drivers/Makefile
@@ -0,0 +1,42 @@
+# src/egl/drivers/Makefile
+
+TOP = ../../..
+include $(TOP)/configs/current
+
+
+SUBDIRS = demo dri xdri
+
+
+default: conditional_subdirs
+
+
+# depending on $DRIVER_DIRS...
+conditional_subdirs:
+ @if [ "${DRIVER_DIRS}" = "dri" ] ; then \
+ $(MAKE) dri_subdirs ; \
+ fi
+
+
+dri_subdirs:
+ @ (cd dri ; $(MAKE)) || exit 1
+ @ (cd xdri ; $(MAKE)) || exit 1
+
+demo_subdir:
+ @ (cd demo ; $(MAKE)) || exit 1
+
+
+
+subdirs:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir ; $(MAKE)) || exit 1 ; \
+ fi \
+ done
+
+
+clean:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir ; $(MAKE) clean) ; \
+ fi \
+ done