libgoatvr

diff example/Makefile @ 9:d12592558809

build on macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 20 Sep 2014 16:52:42 +0300
parents 6896f9cf9621
children 5136dfcea7b1
line diff
     1.1 --- a/example/Makefile	Sat Sep 20 13:22:53 2014 +0300
     1.2 +++ b/example/Makefile	Sat Sep 20 16:52:42 2014 +0300
     1.3 @@ -5,11 +5,14 @@
     1.4  vrlib_root = ..
     1.5  vrlib = $(vrlib_root)/libgoatvr.so
     1.6  
     1.7 -CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2` -I$(vrlib_root)/src
     1.8 -LDFLAGS = $(libgl) `pkg-config --libs sdl2` -L$(vrlib_root) -lgoatvr -Wl,-rpath=$(vrlib_root)
     1.9 +warn = -Wall
    1.10 +
    1.11 +CFLAGS = -pedantic $(warn) -g `pkg-config --cflags sdl2` -I$(vrlib_root)/src
    1.12 +LDFLAGS = $(libgl) `pkg-config --libs sdl2` -L$(vrlib_root) -lgoatvr -Wl,-rpath -Wl,$(vrlib_root)/
    1.13  
    1.14  ifeq ($(shell uname -s), Darwin)
    1.15  	libgl = -framework OpenGL -lGLEW
    1.16 +	warn += -Wno-deprecated-declarations
    1.17  else
    1.18  	libgl = -lGL -lGLU -lGLEW
    1.19  endif