oculus1
view Makefile @ 29:9a973ef0e2a3
fixed the performance issue under MacOSX by replacing glutSolidTeapot (which
uses glEvalMesh) with my own teapot generator.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 27 Oct 2013 06:31:18 +0200 |
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)