darwin* )
LIB_EXTENSION='dylib' ;;
cygwin* )
- LIB_EXTENSION='dll' ;;
+ LIB_EXTENSION='dll.a' ;;
aix* )
LIB_EXTENSION='a' ;;
* )
INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
HEADERS = $(TOP)/include/GLES/egl.h
-LIB_DEP = $(TOP)/$(LIB_DIR)/libEGL.so
+LIB_DEP = $(TOP)/$(LIB_DIR)/$(EGL_LIB_NAME)
-LIBS = -L$(TOP)/$(LIB_DIR) -lEGL -lGL -lm
+LIBS = -L$(TOP)/$(LIB_DIR) -l$(EGL_LIB) -l$(GL_LIB) -lm
EGLUT_DIR = $(TOP)/progs/egl/eglut
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static GLfloat view_rotx = 20.0, view_roty = 30.0, view_rotz = 0.0;
static GLint gear1, gear2, gear3;
static GLfloat angle = 0.0;
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
#include <EGL/egl.h>
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
static int WinWidth = 300, WinHeight = 300;
#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;
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static const struct {
GLenum internalFormat;
const char *name;
ES2_LIB_DEPS = \
- $(TOP)/$(LIB_DIR)/libEGL.so \
- $(TOP)/$(LIB_DIR)/libGLESv2.so
+ $(TOP)/$(LIB_DIR)/$(EGL_LIB_NAME) \
+ $(TOP)/$(LIB_DIR)/$(GLESv2_LIB_NAME)
ES2_LIBS = \
- -L$(TOP)/$(LIB_DIR) -lEGL \
- -L$(TOP)/$(LIB_DIR) -lGLESv2 $(LIBDRM_LIB) $(X11_LIBS) \
+ -L$(TOP)/$(LIB_DIR) -l$(EGL_LIB) -l$(GLESv2_LIB) \
+ $(LIBDRM_LIB) $(X11_LIBS)
PROGRAMS = \
es2_info \
#include <EGL/eglext.h>
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
struct gear {
GLfloat *vertices;
GLuint vbo;
#include <EGL/egl.h>
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
#define FLOAT_TO_FIXED(X) ((X) * 65535.0)
TOP = ../../..
include $(TOP)/configs/current
-VG_LIBS=-lm -lEGL -lOpenVG -L$(TOP)/lib -L$(TOP)/lib/gallium
+VG_LIBS=-lm -L$(TOP)/$(LIB_DIR) -l$(EGL_LIB) -l$(VG_LIB)
INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
EGLUT_DIR = $(TOP)/progs/egl/eglut