1 ifeq ($(TARGET
),ANDROID
)
2 # Android must use OpenGL
4 # UNIX/Linux defaults to OpenGL, but can use SDL_gfx instead
5 else ifeq ($(TARGET
),UNIX
)
8 # Windows defaults to GDI (no OpenGL)
13 OPENGL_CPPFLAGS
= -DENABLE_OPENGL
15 ifeq ($(TARGET_IS_DARWIN
),y
)
16 OPENGL_LDLIBS
= -framework OpenGL
17 else ifeq ($(TARGET
),ANDROID
)
18 OPENGL_LDLIBS
= -lGLESv1_CM
-ldl
19 else ifeq ($(TARGET_IS_PI
),y
)
20 OPENGL_LDLIBS
= -lGLESv1_CM
-ldl
25 # Needed for native VBO support
26 OPENGL_CPPFLAGS
+= -DGL_GLEXT_PROTOTYPES