projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mingw/msys2 port almost done. glew is still a sticking point
[laserbrain_demo]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3c0cb0a
..
7ee900b
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,24
+1,32
@@
-src = $(wildcard src/*.cc) $(wildcard src/machine/*.cc)
-csrc = $(wildcard src/*.c) $(wildcard src/machine/*.c)
+src = $(wildcard src/*.cc) $(wildcard src/machine/*.cc) $(wildcard src/blobs/*.cc)
+csrc = $(wildcard src/*.c) $(wildcard src/machine/*.c) $(wildcard src/blobs/*.c)
obj = $(src:.cc=.o) $(csrc:.c=.o)
dep = $(obj:.o=.d)
bin = demo
obj = $(src:.cc=.o) $(csrc:.c=.o)
dep = $(obj:.o=.d)
bin = demo
-opt = -O0
+#opt = -O3 -ffast-math
dbg = -g
dbg = -g
-incpath = -Isrc -Isrc/machine -I/usr/local/include
+incpath = -Isrc -Isrc/machine -I/usr/local/include `pkg-config --cflags sdl2`
libpath = -L/usr/local/lib
warn = -pedantic -Wall
CFLAGS = $(warn) $(opt) $(dbg) $(incpath)
CXXFLAGS = -std=c++11 $(warn) $(opt) $(dbg) $(incpath)
libpath = -L/usr/local/lib
warn = -pedantic -Wall
CFLAGS = $(warn) $(opt) $(dbg) $(incpath)
CXXFLAGS = -std=c++11 $(warn) $(opt) $(dbg) $(incpath)
-LDFLAGS = $(libpath) $(libgl_$(sys)) -lm -lgmath -lvmath -limago -lresman -lpthread
+LDFLAGS = $(libpath) -ldrawtext $(libgl_$(sys)) -lm -lgmath -lvmath -limago -lresman \
+ -lpthread -lassimp -ltreestore -lgoatvr \
+ -lz -lpng -ljpeg `pkg-config --libs sdl2 freetype2`
-sys = $(shell uname -s)
-libgl_Linux = -lGL -lGLU -lglut -lGLEW
-libgl_Darwin = -framework OpenGL -framework GLUT -lGLEW
+sys = $(shell uname -s | sed 's/MINGW.*/mingw/')
+libgl_Linux = -lGL -lGLU -lGLEW
+libgl_Darwin = -framework OpenGL -lGLEW
+libgl_mingw = -lopengl32 -lglu32 -lglew32.dll
+
+ifeq ($(sys), msys)
+ CFLAGS += -mwin32
+ CXXFLAGS += -mwin32
+endif
$(bin): .clang_complete $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
$(bin): .clang_complete $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
@@
-42,3
+50,7
@@
clean:
.PHONY: cleandep
cleandep:
rm -f $(dep)
.PHONY: cleandep
cleandep:
rm -f $(dep)
+
+.PHONY: data
+data:
+ tools/prepare_data