vrheights
annotate 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 |
rev | line source |
---|---|
nuclear@15 | 1 src = $(wildcard src/*.cc) |
nuclear@15 | 2 csrc = $(wildcard src/*.c) |
nuclear@15 | 3 obj = $(src:.cc=.o) $(csrc:.c=.o) |
nuclear@15 | 4 bin = vrheights |
nuclear@15 | 5 |
nuclear@15 | 6 CXXFLAGS = -std=c++11 -pedantic -Wall -g `pkg-config --cflags sdl2` |
nuclear@15 | 7 LDFLAGS = $(libgl) -lgoatvr `pkg-config --libs sdl2` -lvmath -limago -ldrawtext -lgoat3d |
nuclear@15 | 8 |
nuclear@15 | 9 ifeq ($(shell uname -s), Darwin) |
nuclear@15 | 10 libgl = -framework OpenGL -lGLEW |
nuclear@15 | 11 else |
nuclear@15 | 12 libgl = -lGL -lGLU -lGLEW |
nuclear@15 | 13 endif |
nuclear@15 | 14 |
nuclear@15 | 15 $(bin): $(obj) |
nuclear@15 | 16 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@15 | 17 |
nuclear@15 | 18 .PHONY: clean |
nuclear@15 | 19 clean: |
nuclear@15 | 20 rm -f $(obj) $(bin) |