summaryrefslogtreecommitdiffstats
path: root/progs/egl/segl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/segl/Makefile')
-rw-r--r--progs/egl/segl/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/progs/egl/segl/Makefile b/progs/egl/segl/Makefile
new file mode 100644
index 00000000000..c5f13f69c11
--- /dev/null
+++ b/progs/egl/segl/Makefile
@@ -0,0 +1,21 @@
+# progs/egl/segl/Makefile
+
+TOP = ../../..
+include $(TOP)/configs/current
+
+SEGL_LIBS := $(foreach dpy, $(EGL_DISPLAYS), libsegl-$(dpy).a)
+
+all: $(SEGL_LIBS)
+
+x11_OBJECTS := segl.o segl_x11.o
+kms_OBJECTS := segl.o segl_kms.o
+
+libsegl-x11.a: $(x11_OBJECTS)
+ $(MKLIB) -o segl-x11 -static $(x11_OBJECTS)
+
+libsegl-kms.a: $(kms_OBJECTS)
+ $(MKLIB) -o segl-kms -static $(kms_OBJECTS)
+
+clean:
+ rm -f $(sort $(x11_OBJECTS) $(kms_OBJECTS))
+ rm -f $(SEGL_LIBS)