rayfract
annotate Makefile @ 0:09bb67c000bc
ray-fract repository
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Thu, 21 Oct 2010 23:39:26 +0300 |
parents | |
children | 03022062c464 |
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@0 | 9 libgl = -lGL -lglut -lGLEW |
nuclear@0 | 10 endif |
nuclear@0 | 11 |
nuclear@0 | 12 CC = gcc |
nuclear@0 | 13 CXX = g++ |
nuclear@0 | 14 CFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath` |
nuclear@0 | 15 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath` |
nuclear@0 | 16 LDFLAGS = $(libgl) `pkg-config --libs vmath` |
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) |