diff --git a/examples/opengl3_example/Makefile b/examples/opengl3_example/Makefile index 7d8fcbb..1a59d2b 100644 --- a/examples/opengl3_example/Makefile +++ b/examples/opengl3_example/Makefile @@ -39,6 +39,16 @@ 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 $@ $< @@ -50,4 +60,3 @@ clean: rm $(EXE) $(OBJS) -