annotate Makefile @ 42:3c7e1d3fa5a2

Implement OpengL extension handling through new header file dmglexts.h to "define" the entrypoints we require and some wonderful preprocessor macro magic to add checks for them via SDL_GL_ExtensionSupported() and initialize function pointers with SDL_GL_GetProcAddress().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 21:05:43 +0200
parents 6905d02bca2d
children 99d2c681789f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42
3c7e1d3fa5a2 Implement OpengL extension handling through new header file dmglexts.h to
Matti Hamalainen <ccr@tnsp.org>
parents: 40
diff changeset
1 CXXFLAGS ?= -DGL_GLEXT_PROTOTYPES
9
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
2 BINEXT ?=
40
6905d02bca2d Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
3 OBJPATH ?= ./obj/unix/
0
3d74a9dd96e4 Initial import of Thomas Trummer's original code.
Thomas Trummer
parents:
diff changeset
4
34
c0b85b0615d2 Improve the makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
5 SDL_CFLAGS ?= $(shell pkg-config --cflags sdl2)
c0b85b0615d2 Improve the makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
6 SDL_LDFLAGS ?= $(shell pkg-config --libs sdl2)
29
5c7f63fe5c19 Clean up Makefile a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
7
5c7f63fe5c19 Clean up Makefile a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
8 GL_CFLAGS ?= $(shell pkg-config --cflags gl glu)
34
c0b85b0615d2 Improve the makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
9 GL_LDFLAGS ?= $(shell pkg-config --libs gl glu)
19
a329f0216491 Implement PLY file format parsing and extremely simplistic scene setup file format.
Matti Hamalainen <ccr@tnsp.org>
parents: 9
diff changeset
10
35
d0cd281934a3 Add TOOL_LDFLAGS.
Matti Hamalainen <ccr@tnsp.org>
parents: 34
diff changeset
11 TOOL_LDFLAGS ?=
d0cd281934a3 Add TOOL_LDFLAGS.
Matti Hamalainen <ccr@tnsp.org>
parents: 34
diff changeset
12
34
c0b85b0615d2 Improve the makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
13 include Makefile.gen