libgoatvr
view example/Makefile @ 27:e819f63535b3
adding stub doc pages
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 30 Mar 2015 05:51:22 +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)