+ifeq (${XNU_LOGCOLORS},y)
+ LOGCOLORS ?= y
+endif
+
+ifeq ($(LOGCOLORS),y)
+ # Get a nice list of device code names associated with the build platform
+ ifndef CDevs
+ #ifdef EMBEDDED_DEVICE_MAP
+ # export CDevs := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) -query "SELECT DISTINCT TargetType FROM Targets WHERE KernelPlatform = '$(CURRENT_MACHINE_CONFIG_LC)'" | tr '[\r\n]' ':' | sed 's,:$$,,')
+ #endif
+ endif
+ ifndef CMD_MC
+ export _MACHINE := $(CURRENT_MACHINE_CONFIG_LC)
+ ifeq ($(CURRENT_MACHINE_CONFIG),NONE)
+ export _MACHINE := $(subst Mac,,$(PLATFORM))
+ endif
+ export CMD_MC := \\033[1m$(shell __A="$(CURRENT_ARCH_CONFIG_LC)"; \
+ __As=$$((6-$${\#__A})); \
+ printf "%-.6s%*.*s %9.9s" \
+ "$${__A}" \
+ $${__As} $${__As} " " \
+ "$(_MACHINE)")\\033[m
+ endif
+ # Turn off colored output
+ Color0=\\033[m
+ # Start a host command: bold, underlined pink text
+ ColorH=\\033[1;4;35m
+ # Start a compilation-related command: bold, underlined blue text
+ ColorC=[$(CMD_MC)] \\033[1;4;34m
+ # Start a MIG command: bold, green text on light grey background
+ ColorM=[$(CMD_MC)] \\033[1;32;40m
+ # Start a linking command: bold, white text on blue background
+ ColorL=[$(CMD_MC)] \\033[1;37;44m
+ # Start a filename: bold, white text
+ ColorF=\\033[1;37m
+ # Start a linked file name: yellow text on light grey background
+ ColorLF=\\033[1;33;40m
+ # Error strings: underlined bold white text on red background
+ ColorErr=\033[1;4;37;41m
+endif
+