oculus1

view Makefile @ 20:ff3bfd4da86b

removed unnecessary check for framebuffer resizing when not using vr mode
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 01 Oct 2013 12:51:20 +0300
parents 681046a82ed2
children
line source
1 ccsrc = $(wildcard src/*.cc)
2 csrc = $(wildcard src/*.c)
3 ovr_src = $(wildcard libovr/Src/*.cpp) \
4 $(wildcard libovr/Src/Kernel/*.cpp) \
5 $(wildcard libovr/Src/Util/*.cpp)
7 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) $(ovr_src:.cpp=.o) $(ovr_sys_src:.cpp=.o)
8 bin = oculus1
10 CFLAGS = -pedantic -Wall -g
11 CXXFLAGS = -Wall -g -I/usr/local/include $(ovr_include) -DUSE_OVR
12 LDFLAGS = -L/usr/local/lib $(libgl) $(ovrlibs) -lvmath -lm
14 ifeq ($(shell uname -s), Darwin)
15 libgl = -framework OpenGL -framework GLUT -lGLEW
16 ovrlibs = -framework CoreFoundation -framework ApplicationServices -framework IOKit
18 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/osx -Ilibovr/Src/Kernel
19 ovr_sys_src = $(wildcard libovr/Src/osx/*.cpp)
20 else
21 libgl = -lGL -lGLU -lglut -lGLEW
22 ovrlibs = -lX11 -lXinerama -ludev -lpthread
24 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/linux -Ilibovr/Src/Kernel
25 ovr_sys_src = $(wildcard libovr/Src/linux/*.cpp)
26 endif
28 $(bin): $(obj)
29 $(CXX) -o $@ $(obj) $(LDFLAGS)
31 .PHONY: clean
32 clean:
33 rm -f $(obj) $(bin)