oculus2

view Makefile @ 7:5b04743fd3d0

- changed some loose types to make this example more compatible with C++ programs - enabled overdrive (can't see any difference but what the hell)
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 15 Sep 2014 03:00:50 +0300
parents
children 4d6733229e01
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`
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)