PageSettings: add FLARM and thermal assistant pages
[xcsoar.git] / build / opengl.mk
blob823441577521f7d41a342836e40bace20987e4ff
1 ifeq ($(TARGET),ANDROID)
2 # Android must use OpenGL
3 OPENGL = y
4 # UNIX/Linux defaults to OpenGL, but can use SDL_gfx instead
5 else ifeq ($(TARGET),UNIX)
6 OPENGL ?= y
7 else
8 # Windows defaults to GDI (no OpenGL)
9 OPENGL ?= n
10 endif
12 ifeq ($(OPENGL),y)
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
21 else
22 OPENGL_LDLIBS = -lGL
23 endif
25 # Needed for native VBO support
26 OPENGL_CPPFLAGS += -DGL_GLEXT_PROTOTYPES
28 endif