2014-08-17 09:47:46 +04:00
|
|
|
#
|
2024-01-14 12:56:36 +03:00
|
|
|
# Copyright 2011-2024 Branimir Karadzic. All rights reserved.
|
2022-01-15 22:59:06 +03:00
|
|
|
# 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)
|
2021-06-12 21:36:54 +03:00
|
|
|
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)"
|
2021-06-12 21:36:54 +03:00
|
|
|
ifeq ($(UNAME),$(filter Darwin,$(UNAME)))
|
2014-08-17 09:47:46 +04:00
|
|
|
OS=darwin
|
2021-06-12 21:36:54 +03:00
|
|
|
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"
|