oculus1

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Fri Aug 30 06:08:34 2013 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +bin = oculus1
     1.7 +
     1.8 +CXXFLAGS = -pedantic -Wall -g -I/usr/local/include
     1.9 +LDFLAGS = -L/usr/local/lib $(libgl) $(ovrlibs) -lm
    1.10 +
    1.11 +ifeq ($(shell uname -s), Darwin)
    1.12 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.13 +	ovrlibs = -lovr -framework CoreFoundation -framework ApplicationServices -framework IOKit
    1.14 +else
    1.15 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.16 +	ovrlibs = -lovr
    1.17 +endif
    1.18 +
    1.19 +$(bin): $(obj)
    1.20 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin)