bgfx/scripts/tools.mk

30 lines
776 B
Makefile
Raw Normal View History

2014-08-17 09:47:46 +04:00
#
2022-01-15 22:59:06 +03:00
# Copyright 2011-2022 Branimir Karadzic. All rights reserved.
# License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
2014-08-17 09:47:46 +04:00
#
SILENT?=@
THISDIR:=$(dir $(lastword $(MAKEFILE_LIST)))
UNAME:=$(shell uname)
ifeq ($(UNAME),$(filter Linux Darwin MINGW%,$(UNAME)))
2014-08-17 09:47:46 +04:00
CMD_MKDIR=mkdir -p "$(1)"
CMD_RMDIR=rm -r "$(1)"
ifeq ($(UNAME),$(filter Darwin,$(UNAME)))
2014-08-17 09:47:46 +04:00
OS=darwin
else ifeq ($(UNAME),$(filter MINGW%,$(UNAME)))
OS=windows
2014-08-17 09:47:46 +04:00
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"