vrheights
diff Makefile @ 15:ffb62c8db542
added missing makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 05:40:22 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Fri Oct 30 05:40:22 2015 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +src = $(wildcard src/*.cc) 1.5 +csrc = $(wildcard src/*.c) 1.6 +obj = $(src:.cc=.o) $(csrc:.c=.o) 1.7 +bin = vrheights 1.8 + 1.9 +CXXFLAGS = -std=c++11 -pedantic -Wall -g `pkg-config --cflags sdl2` 1.10 +LDFLAGS = $(libgl) -lgoatvr `pkg-config --libs sdl2` -lvmath -limago -ldrawtext -lgoat3d 1.11 + 1.12 +ifeq ($(shell uname -s), Darwin) 1.13 + libgl = -framework OpenGL -lGLEW 1.14 +else 1.15 + libgl = -lGL -lGLU -lGLEW 1.16 +endif 1.17 + 1.18 +$(bin): $(obj) 1.19 + $(CXX) -o $@ $(obj) $(LDFLAGS) 1.20 + 1.21 +.PHONY: clean 1.22 +clean: 1.23 + rm -f $(obj) $(bin)