egl: Fix demos to build with user specified Xlib
authorDan Nicholson <dbn.lists@gmail.com>
Tue, 20 Apr 2010 03:25:17 +0000 (20:25 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Tue, 20 Apr 2010 03:25:17 +0000 (20:25 -0700)
Commit 88be2171e7 fixed the egl demos on the stable branch, but now
they're spread out across multiple subdirectories.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
progs/egl/eglut/Makefile
progs/egl/opengl/Makefile
progs/egl/opengles1/Makefile
progs/egl/opengles2/Makefile
progs/egl/openvg/Makefile

index f5cafa7010485c5c90974307790bff6e69000536..dec89117bb93324198fccfeb22f02cb7f67df03a 100644 (file)
@@ -4,7 +4,8 @@ TOP = ../../..
 include $(TOP)/configs/current
 
 INCLUDES = \
-       -I$(TOP)/include
+       -I$(TOP)/include \
+       $(X11_CFLAGS)
 
 SOURCES = $(wildcard *.c)
 
index 9a91df99064c61ec6e46b42055f0e8aa6cf87140..20158b1f0bc767d386a0064725cdc7963ee30bcc 100644 (file)
@@ -4,7 +4,7 @@ TOP = ../../..
 include $(TOP)/configs/current
 
 
-INCLUDE_DIRS = -I$(TOP)/include
+INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
 
 HEADERS = $(TOP)/include/GLES/egl.h
 LIB_DEP = $(TOP)/$(LIB_DIR)/libEGL.so
@@ -73,7 +73,7 @@ $(foreach demo, $(EGLUT_DEMOS), $(eval $(call eglut-demo-rule,$(demo))))
 
 # build EGLUT demos
 $(EGLUT_X11_DEMOS):
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(LIBS) -lX11
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(LIBS) $(X11_LIBS)
 $(EGLUT_SCREEN_DEMOS):                                                
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(LIBS)
 
index 554cff9e6b60cf724f9f746028affc6505b483e6..ba9d1b84d5faf77639816ca393b49be7501ee3c8 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 @@ ES1_LIB_DEPS = \
 
 ES1_LIBS = \
        -L$(TOP)/$(LIB_DIR) -lEGL \
-       -L$(TOP)/$(LIB_DIR) -lGLESv1_CM $(LIBDRM_LIB) -lX11
+       -L$(TOP)/$(LIB_DIR) -lGLESv1_CM $(LIBDRM_LIB) $(X11_LIBS)
 
 EGLUT_DIR = $(TOP)/progs/egl/eglut
 
@@ -91,7 +92,7 @@ $(foreach demo, $(EGLUT_DEMOS), $(eval $(call eglut-demo-rule,$(demo))))
 
 # build EGLUT demos
 $(EGLUT_X11_DEMOS):
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(ES1_LIBS) -lX11
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(ES1_LIBS) $(X11_LIBS)
 $(EGLUT_SCREEN_DEMOS):                                                
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(ES1_LIBS)
 
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 \
index 3683cb7814a53e641a53329d173b0650d2335460..431341c8a3f3ddde0aa067bee7b8b5fedfc90a4e 100644 (file)
@@ -4,7 +4,7 @@ TOP = ../../..
 include $(TOP)/configs/current
 
 VG_LIBS=-lm -lEGL -lOpenVG -L$(TOP)/lib -L$(TOP)/lib/gallium
-INCLUDE_DIRS = -I$(TOP)/include
+INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
 
 EGLUT_DIR = $(TOP)/progs/egl/eglut
 
@@ -27,7 +27,7 @@ default: $(PROGRAMS) $(EGLUT_X11_DEMOS) $(EGLUT_SCREEN_DEMOS)
 
 lion_x11: lion.o lion-render.o $(EGLUT_DIR)/libeglut-x11.a
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lion.o lion-render.o \
-               -L$(EGLUT_DIR) -leglut-x11 $(VG_LIBS) -lX11
+               -L$(EGLUT_DIR) -leglut-x11 $(VG_LIBS) $(X11_LIBS)
 
 lion_screen: lion.o lion-render.o $(EGLUT_DIR)/libeglut-screen.a
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lion.o lion-render.o \
@@ -45,7 +45,7 @@ $(foreach demo, $(EGLUT_DEMOS), $(eval $(call eglut-demo-rule,$(demo))))
 
 # build EGLUT demos
 $(EGLUT_X11_DEMOS):
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(VG_LIBS) -lX11
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(VG_LIBS) $(X11_LIBS)
 $(EGLUT_SCREEN_DEMOS):                                                
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L$(EGLUT_DIR) -leglut-$* $(VG_LIBS)