diff options
Diffstat (limited to 'nuttx/tools/Config.mk')
-rw-r--r-- | nuttx/tools/Config.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk index 3a0714c10..b7f8d9bbe 100644 --- a/nuttx/tools/Config.mk +++ b/nuttx/tools/Config.mk @@ -145,15 +145,19 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y) define ARCHIVE @echo "AR: $2" $(AR) $1 - $(Q) $(AR) $1 $(subst ",,$(2)) + $(Q) $(AR) $1 $(2) endef else define ARCHIVE @echo "AR: $2" - $(Q) $(AR) $1 $(subst ",,$(2)) || { echo "$(AR) $1 FAILED!" ; exit 1 ; } + $(Q) $(AR) $1 $(2) || { echo "$(AR) $1 FAILED!" ; exit 1 ; } endef endif define CLEAN +ifeq ($(CONFIG_WINDOWS_NATIVE),y) $(Q) rm -f *.o *.a +else + $(Q) rm -f *.o *.a *~ .*.swp +endif endef |