oculus2_psprite

diff Makefile @ 0:0a4d62469381

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Aug 2014 02:55:17 +0300
parents
children 4d6733229e01
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Aug 26 02:55:17 2014 +0300
     1.3 @@ -0,0 +1,19 @@
     1.4 +src = $(wildcard src/*.c)
     1.5 +obj = $(src:.c=.o)
     1.6 +bin = oculus2
     1.7 +
     1.8 +CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2`
     1.9 +LDFLAGS = $(libgl) `pkg-config --libs sdl2`
    1.10 +
    1.11 +ifeq ($(shell uname -s), Darwin)
    1.12 +	libgl = -framework OpenGL -lGLEW
    1.13 +else
    1.14 +	libgl = -lGL -lGLU -lGLEW
    1.15 +endif
    1.16 +
    1.17 +$(bin): $(obj)
    1.18 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(obj) $(bin)