egl: new version of gears demo that uses Xlib+EGL (and full OpenGL for now)
[mesa.git] / progs / egl / Makefile
index da710cbbbfc7ec3930550fff1f3400d0893173e6..ae2267f38fbb4acfd12a9607b7e7e56fd8f323a0 100644 (file)
@@ -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