rayfract
annotate Makefile @ 1:03022062c464
lalal
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Tue, 26 Oct 2010 08:45:37 +0300 |
parents | 09bb67c000bc |
children | e4349f5804b9 |
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@1 | 14 CFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath freetype2` |
nuclear@1 | 15 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags vmath freetype2` -I/usr/local/include/utk |
nuclear@1 | 16 LDFLAGS = $(libgl) `pkg-config --libs vmath freetype2` -lutk |
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) |