oculus1
annotate Makefile @ 16:f3672317e5c2
made teapots many sizes and more colorful, added phong shader
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 21 Sep 2013 05:22:48 +0300 |
parents | 681046a82ed2 |
children |
rev | line source |
---|---|
nuclear@16 | 1 ccsrc = $(wildcard src/*.cc) |
nuclear@16 | 2 csrc = $(wildcard src/*.c) |
nuclear@1 | 3 ovr_src = $(wildcard libovr/Src/*.cpp) \ |
nuclear@1 | 4 $(wildcard libovr/Src/Kernel/*.cpp) \ |
nuclear@1 | 5 $(wildcard libovr/Src/Util/*.cpp) |
nuclear@1 | 6 |
nuclear@16 | 7 obj = $(csrc:.c=.o) $(ccsrc:.cc=.o) $(ovr_src:.cpp=.o) $(ovr_sys_src:.cpp=.o) |
nuclear@0 | 8 bin = oculus1 |
nuclear@0 | 9 |
nuclear@16 | 10 CFLAGS = -pedantic -Wall -g |
nuclear@1 | 11 CXXFLAGS = -Wall -g -I/usr/local/include $(ovr_include) -DUSE_OVR |
nuclear@5 | 12 LDFLAGS = -L/usr/local/lib $(libgl) $(ovrlibs) -lvmath -lm |
nuclear@0 | 13 |
nuclear@0 | 14 ifeq ($(shell uname -s), Darwin) |
nuclear@0 | 15 libgl = -framework OpenGL -framework GLUT -lGLEW |
nuclear@1 | 16 ovrlibs = -framework CoreFoundation -framework ApplicationServices -framework IOKit |
nuclear@1 | 17 |
nuclear@2 | 18 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/osx -Ilibovr/Src/Kernel |
nuclear@1 | 19 ovr_sys_src = $(wildcard libovr/Src/osx/*.cpp) |
nuclear@0 | 20 else |
nuclear@0 | 21 libgl = -lGL -lGLU -lglut -lGLEW |
nuclear@2 | 22 ovrlibs = -lX11 -lXinerama -ludev -lpthread |
nuclear@1 | 23 |
nuclear@2 | 24 ovr_include = -Ilibovr/Include -Ilibovr/Src -Ilibovr/Src/linux -Ilibovr/Src/Kernel |
nuclear@1 | 25 ovr_sys_src = $(wildcard libovr/Src/linux/*.cpp) |
nuclear@0 | 26 endif |
nuclear@0 | 27 |
nuclear@0 | 28 $(bin): $(obj) |
nuclear@0 | 29 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 30 |
nuclear@0 | 31 .PHONY: clean |
nuclear@0 | 32 clean: |
nuclear@0 | 33 rm -f $(obj) $(bin) |