oculus1

view Makefile @ 21:ef4c9d8eeca7

added shaderless distortion method
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 02 Oct 2013 04:09:37 +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)