rayfract

annotate 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
rev   line source
nuclear@0 1 csrc = $(wildcard src/*.c)
nuclear@0 2 ccsrc = $(wildcard src/*.cc)
nuclear@0 3 obj = $(ccsrc:.cc=.o) $(csrc:.c=.o)
nuclear@0 4 bin = rayfract
nuclear@0 5
nuclear@0 6 ifeq ($(shell uname -s), Darwin)
nuclear@0 7 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@0 8 else
nuclear@4 9 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@0 10 endif
nuclear@0 11
nuclear@0 12 CC = gcc
nuclear@0 13 CXX = g++
nuclear@7 14 CFLAGS = -pedantic -Wall -g -I/usr/local/include `pkg-config --cflags vmath`
nuclear@7 15 CXXFLAGS = -pedantic -Wall -g -I/usr/local/include `pkg-config --cflags vmath`
nuclear@7 16 LDFLAGS = -L/usr/local/lib $(libgl) `pkg-config --libs vmath` -limtk
nuclear@0 17
nuclear@0 18 $(bin): $(obj)
nuclear@0 19 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 20
nuclear@0 21 .PHONY: clean
nuclear@0 22 clean:
nuclear@0 23 rm -f $(obj) $(bin)