oculus2

view Makefile @ 24:b2afe1196579

minor fixes
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 02 Apr 2015 09:57:14 +0300
parents 6a3a9840c303
children
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 -ldl $(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)