bgfx/scripts/tools.mk

28 lines
712 B
Makefile
Raw Normal View History

2014-08-17 09:47:46 +04:00
#
2019-01-14 04:13:25 +03:00
# Copyright 2011-2019 Branimir Karadzic. All rights reserved.
2017-01-04 19:34:25 +03:00
# License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
2014-08-17 09:47:46 +04:00
#
SILENT?=@
THISDIR:=$(dir $(lastword $(MAKEFILE_LIST)))
UNAME:=$(shell uname)
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
CMD_MKDIR=mkdir -p "$(1)"
CMD_RMDIR=rm -r "$(1)"
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
OS=darwin
else
OS=linux
endif
else
CMD_MKDIR=cmd /C "if not exist "$(subst /,\,$(1))" mkdir "$(subst /,\,$(1))""
CMD_RMDIR=cmd /C "if exist "$(subst /,\,$(1))" rmdir /S /Q "$(subst /,\,$(1))""
OS=windows
endif
SHADERC:="$(THISDIR)../tools/bin/$(OS)/shaderc"
GEOMETRYC:="$(THISDIR)../tools/bin/$(OS)/geometryc"
2015-12-28 07:04:17 +03:00
TEXTUREC:="$(THISDIR)../tools/bin/$(OS)/texturec"