cloth2

view Makefile @ 0:ef0c22554406

cloth sim test, initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 11 Jan 2016 16:51:16 +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)