oculus1
view Makefile @ 1:e2f9e4603129
added LibOVR and started a simple vr wrapper.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Sep 2013 16:14:59 +0300 |
parents | c7b50cd7184c |
children | 59fc487ba58e |
line source
1 src = $(wildcard src/*.cc)
2 ovr_src = $(wildcard libovr/Src/*.cpp) \
3 $(wildcard libovr/Src/Kernel/*.cpp) \
4 $(wildcard libovr/Src/Util/*.cpp)
6 obj = $(src:.cc=.o) $(ovr_src:.cpp=.o) $(ovr_sys_src:.cpp=.o)
7 bin = oculus1
10 CXXFLAGS = -Wall -g -I/usr/local/include $(ovr_include) -DUSE_OVR
11 LDFLAGS = -L/usr/local/lib $(libgl) $(ovrlibs) -lm
13 ifeq ($(shell uname -s), Darwin)
14 libgl = -framework OpenGL -framework GLUT -lGLEW
15 ovrlibs = -framework CoreFoundation -framework ApplicationServices -framework IOKit
17 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/osx
18 ovr_sys_src = $(wildcard libovr/Src/osx/*.cpp)
19 else
20 libgl = -lGL -lGLU -lglut -lGLEW
22 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/linux
23 ovr_sys_src = $(wildcard libovr/Src/linux/*.cpp)
24 endif
26 $(bin): $(obj)
27 $(CXX) -o $@ $(obj) $(LDFLAGS)
29 .PHONY: clean
30 clean:
31 rm -f $(obj) $(bin)