cloth2

view Makefile @ 1:dc15b741486c

exploding cloth
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 11 Jan 2016 20:24:13 +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)