oculus2_psprite
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@0 | 3 bin = oculus2 |
nuclear@0 | 4 |
nuclear@21 | 5 warn = -pedantic -Wall |
nuclear@21 | 6 |
nuclear@21 | 7 CFLAGS = $(warn) -g `pkg-config --cflags sdl2` |
nuclear@21 | 8 LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lovr $(libsys) -lvmath |
nuclear@0 | 9 |
nuclear@0 | 10 ifeq ($(shell uname -s), Darwin) |
nuclear@0 | 11 libgl = -framework OpenGL -lGLEW |
nuclear@21 | 12 warn += -Wno-deprecated-declarations |
nuclear@0 | 13 else |
nuclear@0 | 14 libgl = -lGL -lGLU -lGLEW |
nuclear@20 | 15 libsys = -lX11 |
nuclear@0 | 16 endif |
nuclear@0 | 17 |
nuclear@0 | 18 $(bin): $(obj) |
nuclear@0 | 19 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 20 |
nuclear@0 | 21 .PHONY: clean |
nuclear@0 | 22 clean: |
nuclear@0 | 23 rm -f $(obj) $(bin) |