rayfract
view Makefile @ 7:c27b24c9fdd2
fixed the makefile to work on freebsd
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 05 Oct 2011 02:26:46 +0300 |
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)