From: John Tsiombikas Date: Wed, 3 May 2017 00:23:50 +0000 (+0300) Subject: tried to make this work with msys2... it's not worth the effort X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=2f4f6153241744790e44b116140d11788941370b tried to make this work with msys2... it's not worth the effort --- diff --git a/Makefile b/Makefile index 431e362..3024ee3 100644 --- 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)