oculus2_psprite
view Makefile @ 23:fe9600396f65
fixed visual studio project
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 22 Jan 2015 14:03:24 +0200 |
parents | 6a3a9840c303 |
children |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = oculus2
5 warn = -pedantic -Wall
7 CFLAGS = $(warn) -g `pkg-config --cflags sdl2`
8 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lovr $(libsys) -lvmath
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -lGLEW
12 warn += -Wno-deprecated-declarations
13 else
14 libgl = -lGL -lGLU -lGLEW
15 libsys = -lX11
16 endif
18 $(bin): $(obj)
19 $(CC) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)