egl: single triangle test
[mesa.git] / progs / egl / Makefile
index 29e0d407e3469ae6f117869b2354489f32d19bb1..3bde6029acad8998594037f2955fc1c1d0266105 100644 (file)
@@ -15,7 +15,8 @@ PROGRAMS = \
        eglinfo \
        eglgears \
        peglgears \
-       xeglgears
+       xeglgears \
+       xegl_tri
 
 
 .c.o:
@@ -73,6 +74,13 @@ xeglgears.o: xeglgears.c $(HEADERS)
        $(CC) -c $(CFLAGS) -I$(TOP)/include xeglgears.c
 
 
+xegl_tri: xegl_tri.o $(TOP)/$(LIB_DIR)/libEGL.so
+       $(CC) $(CFLAGS) xegl_tri.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
+
+xegl_tri.o: xegl_tri.c $(HEADERS)
+       $(CC) -c $(CFLAGS) -I$(TOP)/include xegl_tri.c
+
+
 clean:
        rm -f *.o *~
        rm -f *.so