oculus2
view Makefile @ 21:46291bf81d0a
delay switching to fullscreen until after the window has been resized
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 30 Mar 2015 07:27:01 +0300 |
parents | 3d224ad45cac |
children | b2afe1196579 |
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)