cloth2
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.cc) |
nuclear@0 | 2 obj = $(src:.cc=.o) |
nuclear@0 | 3 bin = cloth |
nuclear@0 | 4 |
nuclear@0 | 5 sys := $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/mingw.*/mingw/') |
nuclear@0 | 6 |
nuclear@0 | 7 CXXFLAGS = -pedantic -Wall -g |
nuclear@0 | 8 LDFLAGS = $(libgl_$(sys)) -lgmath |
nuclear@0 | 9 |
nuclear@0 | 10 libgl_linux = -lGL -lGLU -lglut -lGLEW |
nuclear@0 | 11 libgl_darwin = -framework OpenGL -framework GLUT -lGLEW |
nuclear@0 | 12 libgl_mingw = -lopengl32 -lglu32 -lglut32 -lglew32 |
nuclear@0 | 13 |
nuclear@0 | 14 $(bin): $(obj) |
nuclear@0 | 15 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 16 |
nuclear@0 | 17 .PHONY: clean |
nuclear@0 | 18 clean: |
nuclear@0 | 19 rm -f $(obj) $(bin) |