From 4f356fd7da693b7983c55a7542b14d696decfda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 12 Jun 2015 21:10:29 -0700 Subject: [PATCH] Updated shader makefile. --- scripts/shader.mk | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/scripts/shader.mk b/scripts/shader.mk index c6c99ff9..002b7564 100644 --- a/scripts/shader.mk +++ b/scripts/shader.mk @@ -10,11 +10,12 @@ ifndef TARGET .PHONY: all all: @echo Usage: make TARGET=# [clean, all, rebuild] - @echo " TARGET=0 (hlsl - dx9)" - @echo " TARGET=1 (hlsl - dx11)" - @echo " TARGET=2 (glsl - nacl)" - @echo " TARGET=3 (glsl - android)" - @echo " TARGET=4 (glsl - linux)" + @echo " TARGET=0 (hlsl - dx9)" + @echo " TARGET=1 (hlsl - dx11)" + @echo " TARGET=2 (glsl - nacl)" + @echo " TARGET=3 (glsl - android)" + @echo " TARGET=4 (glsl - linux)" + @echo " TARGET=5 (metal - OSX/iOS)" @echo " VERBOSE=1 show build commands." else @@ -45,6 +46,13 @@ VS_FLAGS=--platform linux -p 120 FS_FLAGS=--platform linux -p 120 CS_FLAGS=--platform linux -p 430 SHADER_PATH=shaders/glsl +else +ifeq ($(TARGET), 5) +VS_FLAGS=--platform osx -p metal +FS_FLAGS=--platform osx -p metal +CS_FLAGS=--platform osx -p metal +SHADER_PATH=shaders/metal +endif endif endif endif