libgoatvr

view example/Makefile @ 15:27fcd4c2969d

added VR_EYE_RES_SCALE option
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Sep 2014 08:50:50 +0300
parents 6896f9cf9621
children 5136dfcea7b1
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 vrlib_root = ..
6 vrlib = $(vrlib_root)/libgoatvr.so
8 warn = -Wall
10 CFLAGS = -pedantic $(warn) -g `pkg-config --cflags sdl2` -I$(vrlib_root)/src
11 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -L$(vrlib_root) -lgoatvr -Wl,-rpath -Wl,$(vrlib_root)/
13 ifeq ($(shell uname -s), Darwin)
14 libgl = -framework OpenGL -lGLEW
15 warn += -Wno-deprecated-declarations
16 else
17 libgl = -lGL -lGLU -lGLEW
18 endif
20 $(bin): $(obj) $(vrlib)
21 $(CC) -o $@ $(obj) $(LDFLAGS)
23 .PHONY: $(vrlib)
24 $(vrlib):
25 $(MAKE) -C $(vrlib_root)
27 .PHONY: clean
28 clean:
29 rm -f $(obj) $(bin)