cloth2

view Makefile @ 2:b4b8f736332b

switched Cloth::transform to match the new vector/matrix multiplication conventions in gmath
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 13 Jan 2016 20:00:37 +0200
parents
children
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = cloth
5 sys := $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/mingw.*/mingw/')
7 CXXFLAGS = -pedantic -Wall -g
8 LDFLAGS = $(libgl_$(sys)) -lgmath
10 libgl_linux = -lGL -lGLU -lglut -lGLEW
11 libgl_darwin = -framework OpenGL -framework GLUT -lGLEW
12 libgl_mingw = -lopengl32 -lglu32 -lglut32 -lglew32
14 $(bin): $(obj)
15 $(CXX) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)