oculus1

view Makefile @ 0:c7b50cd7184c

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 30 Aug 2013 06:08:34 +0300
parents
children e2f9e4603129
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = oculus1
5 CXXFLAGS = -pedantic -Wall -g -I/usr/local/include
6 LDFLAGS = -L/usr/local/lib $(libgl) $(ovrlibs) -lm
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -framework GLUT -lGLEW
10 ovrlibs = -lovr -framework CoreFoundation -framework ApplicationServices -framework IOKit
11 else
12 libgl = -lGL -lGLU -lglut -lGLEW
13 ovrlibs = -lovr
14 endif
16 $(bin): $(obj)
17 $(CXX) -o $@ $(obj) $(LDFLAGS)
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)