vrheights
changeset 15:ffb62c8db542
added missing makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 05:40:22 +0200 |
parents | 25cab9e20c9c |
children | 7f6d68d95c22 |
files | .hgignore Makefile |
diffstat | 2 files changed, 20 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/.hgignore Thu Oct 09 01:29:28 2014 +0300 1.2 +++ b/.hgignore Fri Oct 30 05:40:22 2015 +0200 1.3 @@ -1,7 +1,6 @@ 1.4 \.o$ 1.5 \.d$ 1.6 \.swp$ 1.7 -Makefile$ 1.8 ^vrheights$ 1.9 ^Debug 1.10 ^Release
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/Makefile Fri Oct 30 05:40:22 2015 +0200 2.3 @@ -0,0 +1,20 @@ 2.4 +src = $(wildcard src/*.cc) 2.5 +csrc = $(wildcard src/*.c) 2.6 +obj = $(src:.cc=.o) $(csrc:.c=.o) 2.7 +bin = vrheights 2.8 + 2.9 +CXXFLAGS = -std=c++11 -pedantic -Wall -g `pkg-config --cflags sdl2` 2.10 +LDFLAGS = $(libgl) -lgoatvr `pkg-config --libs sdl2` -lvmath -limago -ldrawtext -lgoat3d 2.11 + 2.12 +ifeq ($(shell uname -s), Darwin) 2.13 + libgl = -framework OpenGL -lGLEW 2.14 +else 2.15 + libgl = -lGL -lGLU -lGLEW 2.16 +endif 2.17 + 2.18 +$(bin): $(obj) 2.19 + $(CXX) -o $@ $(obj) $(LDFLAGS) 2.20 + 2.21 +.PHONY: clean 2.22 +clean: 2.23 + rm -f $(obj) $(bin)