projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfceaad
)
tried to make this work with msys2... it's not worth the effort
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Wed, 3 May 2017 00:23:50 +0000
(
03:23
+0300)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Wed, 3 May 2017 00:23:50 +0000
(
03:23
+0300)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/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`
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_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)
$(bin): .clang_complete $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)