vrheights
view Makefile @ 16:7f6d68d95c22
updated to new version of goatvr
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 06:34:31 +0200 |
parents | |
children |
line source
1 src = $(wildcard src/*.cc)
2 csrc = $(wildcard src/*.c)
3 obj = $(src:.cc=.o) $(csrc:.c=.o)
4 bin = vrheights
6 CXXFLAGS = -std=c++11 -pedantic -Wall -g `pkg-config --cflags sdl2`
7 LDFLAGS = $(libgl) -lgoatvr `pkg-config --libs sdl2` -lvmath -limago -ldrawtext -lgoat3d
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -lGLEW
11 else
12 libgl = -lGL -lGLU -lGLEW
13 endif
15 $(bin): $(obj)
16 $(CXX) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)