oculus2

view Makefile @ 23:21067f4802dd

build with OVR 0.5.0.1
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 02 Apr 2015 09:51:01 +0300
parents 3d224ad45cac
children b2afe1196579
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = oculus2
5 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2`
6 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lovr $(libsys)
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -lGLEW
10 else
11 libgl = -lGL -lGLU -lGLEW
12 libsys = -lX11
13 endif
15 $(bin): $(obj)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)