# HG changeset patch # User John Tsiombikas # Date 1446176422 -7200 # Node ID ffb62c8db542607555448e4cbe587737e2f5eacf # Parent 25cab9e20c9c12127e5ed475feebe8aa27cb1caf added missing makefile diff -r 25cab9e20c9c -r ffb62c8db542 .hgignore --- a/.hgignore Thu Oct 09 01:29:28 2014 +0300 +++ b/.hgignore Fri Oct 30 05:40:22 2015 +0200 @@ -1,7 +1,6 @@ \.o$ \.d$ \.swp$ -Makefile$ ^vrheights$ ^Debug ^Release diff -r 25cab9e20c9c -r ffb62c8db542 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Oct 30 05:40:22 2015 +0200 @@ -0,0 +1,20 @@ +src = $(wildcard src/*.cc) +csrc = $(wildcard src/*.c) +obj = $(src:.cc=.o) $(csrc:.c=.o) +bin = vrheights + +CXXFLAGS = -std=c++11 -pedantic -Wall -g `pkg-config --cflags sdl2` +LDFLAGS = $(libgl) -lgoatvr `pkg-config --libs sdl2` -lvmath -limago -ldrawtext -lgoat3d + +ifeq ($(shell uname -s), Darwin) + libgl = -framework OpenGL -lGLEW +else + libgl = -lGL -lGLU -lGLEW +endif + +$(bin): $(obj) + $(CXX) -o $@ $(obj) $(LDFLAGS) + +.PHONY: clean +clean: + rm -f $(obj) $(bin)