Fix building the OpenGL3 with the Makefile
Why can't any buildsystems just be good Like, seriously? Why does pkg-config not have an OpenGL package, so I don't have to deal with this stupid -lopengl32/-lGL stuff? ...Why isn't there a shim libGL that just maps straight to opengl32.lib? Arg
This commit is contained in:
parent
c4599bc146
commit
3a10bf57cb
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -217,6 +217,12 @@ ifeq ($(RENDERER), OpenGL3)
|
||||||
else
|
else
|
||||||
LIBS += `pkg-config glew --libs`
|
LIBS += `pkg-config glew --libs`
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(WINDOWS), 1)
|
||||||
|
LIBS += -lopengl32
|
||||||
|
else
|
||||||
|
LIBS += -lGL
|
||||||
|
endif
|
||||||
else ifeq ($(RENDERER), Texture)
|
else ifeq ($(RENDERER), Texture)
|
||||||
SOURCES += src/Backends/Rendering/SDLTexture
|
SOURCES += src/Backends/Rendering/SDLTexture
|
||||||
else ifeq ($(RENDERER), Surface)
|
else ifeq ($(RENDERER), Surface)
|
||||||
|
|
Loading…
Add table
Reference in a new issue