tried to make this work with msys2... it's not worth the effort
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Wed, 3 May 2017 00:23:50 +0000 (03:23 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Wed, 3 May 2017 00:23:50 +0000 (03:23 +0300)
Makefile

index 431e362..3024ee3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,15 @@ CXXFLAGS = -std=c++11 $(warn) $(opt) $(dbg) $(incpath)
 LDFLAGS = $(libpath) $(libgl_$(sys)) -lm -lgmath -lvmath -limago -lresman \
                  -lpthread -lassimp -ltreestore -ldrawtext -loptcfg -lgoatvr `pkg-config --libs sdl2`
 
-sys = $(shell uname -s)
+sys = $(shell uname -s | sed 's/MSYS.*/msys/')
 libgl_Linux = -lGL -lGLU -lGLEW
 libgl_Darwin = -framework OpenGL -lGLEW
+libgl_msys = -lopengl32 -lglu32 -lglew32
+
+ifeq ($(sys), msys)
+       CFLAGS += -mwin32
+       CXXFLAGS += -mwin32
+endif
 
 $(bin): .clang_complete $(obj)
        $(CXX) -o $@ $(obj) $(LDFLAGS)