# PATH SEPARATOR STRING TOOLS
ifdef WINDOWS_HOST
-ifndef MSYSCON
- WIN_PS_TOOLS := defined
-endif
+ ifneq ($(TERM),cygwin)
+ ifndef MSYSCON
+ WIN_PS_TOOLS := defined
+ endif
+ endif
endif
slash_path = $(subst $(backslash),$(slash),$(1))
ifdef WIN_PS_TOOLS
_SYSROOT = $(if $(SYSROOT),$(space)--sysroot=$(SYSROOT),)
+_MAKE = $(call fp_opt_quotes,$(MAKE))
+
# SHELL COMMANDS
ifdef WINDOWS_HOST
-ifndef MSYSCON
- WIN_SHELL_COMMANDS := defined
-endif
+ ifneq ($(TERM),cygwin)
+ ifndef MSYSCON
+ WIN_SHELL_COMMANDS := defined
+ endif
+ endif
endif
ifneq ($(V),1)
SILENT_IS_ON := defined
ifeq ($(D),1)
DEBUG_IS_ON := defined
endif
+addtolistfile = $(if $(1),@$(call echo,$(1)) >> $(2),)
ifdef WIN_SHELL_COMMANDS
cd = @cd
nullerror = 2>NUL
nullerror = 2>/dev/null
echo = $(if $(1),echo "$(1)")
touch = $(if $(1),touch $(1))
- cp = $(if $(1),cp$(if $(SILENT_IS_ON),, -v) $(1) $(2))
- cpr = $(if $(1),cp -prf$(if $(SILENT_IS_ON),,v) $(1) $(2))
+ cp = $(if $(1),cp -P$(if $(SILENT_IS_ON),,v) $(1) $(2))
+ cpr = $(if $(1),cp -PR$(if $(SILENT_IS_ON),,v) $(1) $(2))
rm = $(if $(1),-rm -f$(if $(SILENT_IS_ON),,v) $(1))
rmr = $(if $(1),-rm -fr$(if $(SILENT_IS_ON),,v) $(1))
mkdir = $(if $(1),-mkdir -p$(if $(SILENT_IS_ON),,v) $(1))