oculus1

annotate Makefile @ 0:c7b50cd7184c

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