diff --git a/Makefile.win b/Makefile.win index a5f80a46fd..d855e0fb31 100644 --- a/Makefile.win +++ b/Makefile.win @@ -35,10 +35,15 @@ LDCXXFLAGS = -static-libstdc++ ifeq ($(HAVE_SDL), 1) OBJ += gfx/sdl.o gfx/gl.o gfx/sdlwrap.o input/sdl.o audio/sdl.o fifo_buffer.o - LIBS += -lSDL -lopengl32 + LIBS += -lSDL DEFINES += -ISDL -DHAVE_SDL endif +ifeq ($(HAVE_OPENGL), 1) + DEFINES += -DHAVE_OPENGL + LIBS += -lopengl32 +endif + ifeq ($(HAVE_SDL_IMAGE), 1) LIBS += -lSDL_image DEFINES += -DHAVE_SDL_IMAGE