rayfract

view Makefile @ 9:628e7084a482

removed the getenv/glutIdleFunc hack as now stereowrap forces continuous redraws when necessary by sending Expose events.
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 03 Nov 2011 13:41:33 +0200
parents e4349f5804b9
children 1496aae2e7d4
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 -I/usr/local/include `pkg-config --cflags vmath`
15 CXXFLAGS = -pedantic -Wall -g -I/usr/local/include `pkg-config --cflags vmath`
16 LDFLAGS = -L/usr/local/lib $(libgl) `pkg-config --libs vmath` -limtk
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)