summaryrefslogtreecommitdiff
path: root/progs/egl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/Makefile')
-rw-r--r--progs/egl/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/progs/egl/Makefile b/progs/egl/Makefile
index da710cbbbf..ae2267f38f 100644
--- a/progs/egl/Makefile
+++ b/progs/egl/Makefile
@@ -13,7 +13,8 @@ PROGRAMS = \
demo2 \
demo3 \
eglinfo \
- eglgears
+ eglgears \
+ xeglgears
.c.o:
@@ -59,6 +60,13 @@ eglgears.o: eglgears.c $(HEADERS)
$(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c
+xeglgears: xeglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
+ $(CC) $(CFLAGS) xeglgears.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
+
+xeglgears.o: xeglgears.c $(HEADERS)
+ $(CC) -c $(CFLAGS) -I$(TOP)/include xeglgears.c
+
+
clean:
rm -f *.o *~
rm -f *.so