1 ifeq ($(TARGET
),ANDROID
)
2 # Android must use OpenGL
5 # the Kobo doesn't have OpenGL support
6 else ifeq ($(TARGET_IS_KOBO
),y
)
9 # UNIX/Linux defaults to OpenGL, but can use SDL_gfx instead
10 else ifeq ($(TARGET
),UNIX
)
13 # Windows defaults to GDI (no OpenGL)
18 OPENGL_CPPFLAGS
= -DENABLE_OPENGL
20 ifeq ($(TARGET_IS_DARWIN
),y
)
21 OPENGL_LDLIBS
= -framework OpenGL
22 else ifeq ($(TARGET
),ANDROID
)
23 OPENGL_LDLIBS
= -lGLESv1_CM
-ldl
24 else ifeq ($(TARGET_IS_PI
),y
)
25 OPENGL_LDLIBS
= -lGLESv1_CM
-ldl
30 # Needed for native VBO support
31 OPENGL_CPPFLAGS
+= -DGL_GLEXT_PROTOTYPES