comparison Makefile.gen @ 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 eaa3e8575c12
children 7b138613e2fc
comparison
equal deleted inserted replaced
41:eaa3e8575c12 42:3c7e1d3fa5a2
1 CXXFLAGS ?= -O3 -W -Wall -DGL_GLEXT_PROTOTYPES -std=c++11 1 CXXFLAGS += -O3 -W -Wall -std=c++11
2 LDFLAGS ?= 2 LDFLAGS +=
3 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS) 3 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS)
4 4
5 MKDIR ?= mkdir 5 MKDIR ?= mkdir
6 MKDIR_P ?= $(MKDIR) -p 6 MKDIR_P ?= $(MKDIR) -p
7 BINPATH ?= ./ 7 BINPATH ?= ./