oculus2

annotate Makefile @ 25:0c7d02c58e4e

removed forward declaration of the now removed ovrhmd_EnableHSWDisplaySDKRender function
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Apr 2015 03:52:51 +0300
parents 6a3a9840c303
children
rev   line source
nuclear@0 1 src = $(wildcard src/*.c)
nuclear@0 2 obj = $(src:.c=.o)
nuclear@0 3 bin = oculus2
nuclear@0 4
nuclear@0 5 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2`
nuclear@24 6 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lOVR -ldl $(libsys)
nuclear@0 7
nuclear@0 8 ifeq ($(shell uname -s), Darwin)
nuclear@0 9 libgl = -framework OpenGL -lGLEW
nuclear@0 10 else
nuclear@0 11 libgl = -lGL -lGLU -lGLEW
nuclear@20 12 libsys = -lX11
nuclear@0 13 endif
nuclear@0 14
nuclear@0 15 $(bin): $(obj)
nuclear@0 16 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 17
nuclear@0 18 .PHONY: clean
nuclear@0 19 clean:
nuclear@0 20 rm -f $(obj) $(bin)