cloth2

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Mon Jan 11 16:51:16 2016 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +bin = cloth
     1.7 +
     1.8 +sys := $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/mingw.*/mingw/')
     1.9 +
    1.10 +CXXFLAGS = -pedantic -Wall -g
    1.11 +LDFLAGS = $(libgl_$(sys)) -lgmath
    1.12 +
    1.13 +libgl_linux = -lGL -lGLU -lglut -lGLEW
    1.14 +libgl_darwin = -framework OpenGL -framework GLUT -lGLEW
    1.15 +libgl_mingw = -lopengl32 -lglu32 -lglut32 -lglew32
    1.16 +
    1.17 +$(bin): $(obj)
    1.18 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(obj) $(bin)