oculus2

view Makefile @ 17:5558b43eb653

moved the glUseProgram(0) state cleanup to its proper place
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 29 Oct 2014 01:56:42 +0200
parents 4d6733229e01
children 6a3a9840c303
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 -lX11
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -lGLEW
10 else
11 libgl = -lGL -lGLU -lGLEW
12 endif
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)