diff options
Diffstat (limited to 'nuttx/tools')
-rw-r--r-- | nuttx/tools/Config.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk index 1cb5296b5..45c785281 100644 --- a/nuttx/tools/Config.mk +++ b/nuttx/tools/Config.mk @@ -2,7 +2,7 @@ # Config.mk # Global build rules and macros. # -# Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2011, 2013-2014 Gregory Nutt. All rights reserved. # Author: Richard Cochran # Gregory Nutt <gnutt@nuttx.org> # @@ -111,11 +111,21 @@ endef # # CC - The command to invoke the C compiler # CFLAGS - Options to pass to the C compiler +# WINTOOL - Set to "y" if this is a Windows cygwin build using a +# Windows native toolchain. In that case, paths created by the +# Cygwin makeifle must be converted to Windows paths for the tool. +ifeq ($(WINTOOL),y) +define COMPILE + @echo "CC: $1" + $(Q) $(CC) -c $(CFLAGS) "${shell cygpath -w $1}" -o $2 +endef +else define COMPILE @echo "CC: $1" $(Q) $(CC) -c $(CFLAGS) $1 -o $2 endef +endif # COMPILEXX - Default macro to compile one C++ file # Example: $(call COMPILEXX, in-file, out-file) |