rayfract
view Makefile @ 4:e4349f5804b9
switched to imtk
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 29 Apr 2011 07:30:31 +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)