libgoatvr
view example/Makefile @ 25:bb85be761b50
started the documentation
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 08 Mar 2015 05:30:02 +0200 |
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)