oculus2_psprite

view Makefile @ 20:6a3a9840c303

fixed on macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 21 Jan 2015 11:29:30 +0200
parents 3d224ad45cac
children dc7af0f549b2
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)