rayfract

view Makefile @ 1:03022062c464

lalal
author John Tsiombikas <nuclear@siggraph.org>
date Tue, 26 Oct 2010 08:45:37 +0300
parents 09bb67c000bc
children e4349f5804b9
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 freetype2`
15 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath freetype2` -I/usr/local/include/utk
16 LDFLAGS = $(libgl) `pkg-config --libs vmath freetype2` -lutk
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)