rayfract
view Makefile @ 0:09bb67c000bc
ray-fract repository
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Thu, 21 Oct 2010 23:39:26 +0300 |
parents | |
children | 03022062c464 |
line source
1 csrc = $(wildcard src/*.c)
2 ccsrc = $(wildcard src/*.cc)
3 obj = $(ccsrc:.cc=.o) $(csrc:.c=.o)
4 bin = rayfract
6 ifeq ($(shell uname -s), Darwin)
7 libgl = -framework OpenGL -framework GLUT -lGLEW
8 else
9 libgl = -lGL -lglut -lGLEW
10 endif
12 CC = gcc
13 CXX = g++
14 CFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath`
15 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath`
16 LDFLAGS = $(libgl) `pkg-config --libs vmath`
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)