egl: Fix demos to build with user specified Xlib
[mesa.git] / progs / egl / opengles2 / Makefile
index 710c4d8c130b75834d74418eb9264428649ab031..1ee2af241271d4537fea826b0da0fa25e76840b4 100644 (file)
@@ -6,6 +6,7 @@ include $(TOP)/configs/current
 
 INCLUDE_DIRS = \
        -I$(TOP)/include \
+       $(X11_CFLAGS)
 
 HEADERS = $(TOP)/include/GLES/egl.h
 
@@ -17,7 +18,7 @@ ES2_LIB_DEPS = \
 
 ES2_LIBS = \
        -L$(TOP)/$(LIB_DIR) -lEGL \
-       -L$(TOP)/$(LIB_DIR) -lGLESv2 $(LIBDRM_LIB) -lX11
+       -L$(TOP)/$(LIB_DIR) -lGLESv2 $(LIBDRM_LIB) $(X11_LIBS)
 
 PROGRAMS = \
        es2_info \