rayfract
view Makefile @ 5:48e0e7d33d9e
foo
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 28 May 2011 22:31:07 +0300 |
parents | 03022062c464 |
children | c27b24c9fdd2 |
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 -lGLU -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 freetype2` -limtk
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)