From a77e534ded5b26c784db206f00fbe80a549ab220 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 8 Oct 2015 20:48:50 +0200 Subject: [PATCH] Examples: OpenGL2: Add msys2/mingw64 target (#361) --- examples/opengl_example/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/opengl_example/Makefile b/examples/opengl_example/Makefile index 7986229fc..116dbabff 100644 --- a/examples/opengl_example/Makefile +++ b/examples/opengl_example/Makefile @@ -38,6 +38,15 @@ ifeq ($(UNAME_S), Darwin) #APPLE CFLAGS = $(CXXFLAGS) endif +ifeq ($(UNAME_S), MINGW64_NT-6.3) + ECHO_MESSAGE = "Windows" + LIBS = -lglfw3 -lgdi32 -lopengl32 -limm32 + + CXXFLAGS = -I../../ -I../libs/gl3w `pkg-config --cflags glfw3` + CXXFLAGS += -Wall -Wformat + CFLAGS = $(CXXFLAGS) +endif + .cpp.o: $(CXX) $(CXXFLAGS) -c -o $@ $<