summaryrefslogtreecommitdiff
path: root/progs/egl/opengles1
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/opengles1')
-rw-r--r--progs/egl/opengles1/Makefile8
-rw-r--r--progs/egl/opengles1/pbuffer.c3
-rw-r--r--progs/egl/opengles1/render_tex.c4
-rw-r--r--progs/egl/opengles1/torus.c4
4 files changed, 15 insertions, 4 deletions
diff --git a/progs/egl/opengles1/Makefile b/progs/egl/opengles1/Makefile
index 593145d4bf..e7802f8003 100644
--- a/progs/egl/opengles1/Makefile
+++ b/progs/egl/opengles1/Makefile
@@ -12,13 +12,13 @@ HEADERS = $(TOP)/include/GLES/egl.h
ES1_LIB_DEPS = \
- $(TOP)/$(LIB_DIR)/libEGL.so \
- $(TOP)/$(LIB_DIR)/libGLESv1_CM.so
+ $(TOP)/$(LIB_DIR)/$(EGL_LIB_NAME) \
+ $(TOP)/$(LIB_DIR)/$(GLESv1_CM_LIB_NAME)
ES1_LIBS = \
- -L$(TOP)/$(LIB_DIR) -lEGL \
- -L$(TOP)/$(LIB_DIR) -lGLESv1_CM $(LIBDRM_LIB) $(X11_LIBS)
+ -L$(TOP)/$(LIB_DIR) -l$(EGL_LIB) -l$(GLESv1_CM_LIB) \
+ $(LIBDRM_LIB) $(X11_LIBS)
EGLUT_DIR = $(TOP)/progs/egl/eglut
diff --git a/progs/egl/opengles1/pbuffer.c b/progs/egl/opengles1/pbuffer.c
index 60f864445a..1b4dbb666f 100644
--- a/progs/egl/opengles1/pbuffer.c
+++ b/progs/egl/opengles1/pbuffer.c
@@ -22,6 +22,9 @@
#include <EGL/egl.h>
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
static int WinWidth = 300, WinHeight = 300;
diff --git a/progs/egl/opengles1/render_tex.c b/progs/egl/opengles1/render_tex.c
index 0200fa4cb0..cd2abbd51b 100644
--- a/progs/egl/opengles1/render_tex.c
+++ b/progs/egl/opengles1/render_tex.c
@@ -22,6 +22,10 @@
#include <EGL/egl.h>
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static int TexWidth = 256, TexHeight = 256;
static int WinWidth = 300, WinHeight = 300;
diff --git a/progs/egl/opengles1/torus.c b/progs/egl/opengles1/torus.c
index 8f262b53d6..18ddff3fe4 100644
--- a/progs/egl/opengles1/torus.c
+++ b/progs/egl/opengles1/torus.c
@@ -17,6 +17,10 @@
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static const struct {
GLenum internalFormat;
const char *name;