vrheights

view 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 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)