erebus

view Makefile @ 32:b1fc96c71bcc

- lambert BRDF importance sampling - UI + commandline arguments - font rendering for showing status/progress
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 07 Jun 2014 13:36:36 +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