libgoatvr

view example/Makefile @ 7:6896f9cf9621

- configure now emits config.status with the current confure invocation - now vr_init will heed the VR_MODULE env var for the name of the module to use - more stuff on the openhmd module
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 19 Sep 2014 15:16:51 +0300
parents e63cb28fc644
children d12592558809
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 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2` -I$(vrlib_root)/src
9 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -L$(vrlib_root) -lgoatvr -Wl,-rpath=$(vrlib_root)
11 ifeq ($(shell uname -s), Darwin)
12 libgl = -framework OpenGL -lGLEW
13 else
14 libgl = -lGL -lGLU -lGLEW
15 endif
17 $(bin): $(obj) $(vrlib)
18 $(CC) -o $@ $(obj) $(LDFLAGS)
20 .PHONY: $(vrlib)
21 $(vrlib):
22 $(MAKE) -C $(vrlib_root)
24 .PHONY: clean
25 clean:
26 rm -f $(obj) $(bin)