erebus

view Makefile @ 31:53a98c148bf8

- introduced SurfaceGeometry to carry all the geometric information input to BRDF sampling and evaluation functions. - made Reflectance keep an (optional) pointer to its material - simplified PhongRefl::sample_dir, with the help of SurfaceGeometry - worked around microsoft's broken std::thread implementation's deadlock on join
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 07 Jun 2014 09:14:17 +0300
parents f067148b3494
children 2c768a49e86e
line source
1 csrc = $(wildcard src/*.c)
2 ccsrc = $(wildcard src/*.cc)
3 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o)
4 bin = erebus
6 CFLAGS = -pedantic -Wall -g -Iliberebus/src
7 CXXFLAGS = -std=c++11 $(CFLAGS)
8 LDFLAGS = -Lliberebus -Wl,-rpath=liberebus $(libgl_$(sys)) -lm -lerebus -lvmath -limago
10 libgl_unix = -lGL -lGLU -lglut -lGLEW
11 libgl_mac = -framework OpenGL -framework GLUT -lGLEW
12 libgl_win = -lopengl32 -lglu32 -lglut32 -lglew32
14 $(bin): $(obj) liberebus
15 $(CXX) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: liberebus
18 liberebus:
19 $(MAKE) -C liberebus
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)
25 uname = $(shell uname -s)
26 ifeq ($(uname), Darwin)
27 sys = mac
28 else ifeq ($(findstring MINGW, $(uname)), MINGW)
29 sys = win
30 else
31 sys = unix
32 endif