summaryrefslogtreecommitdiff
path: root/nuttx/tools/Config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/tools/Config.mk')
-rw-r--r--nuttx/tools/Config.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk
index 3a82a1937..47131b800 100644
--- a/nuttx/tools/Config.mk
+++ b/nuttx/tools/Config.mk
@@ -62,10 +62,18 @@ define ASSEMBLE
$(Q) $(CC) -c $(AFLAGS) $1 -o $2
endef
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
define ARCHIVE
- echo "AR: $2"; \
- $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
+ echo "AR: $2"
+ $(AR) $1
+ $(AR) $1 $(subst ",,$(2))
endef
+else
+define ARCHIVE
+ echo "AR: $2"
+ $(AR) $1 $(subst ",,$(2)) || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
+endef
+endif
define CLEAN
$(Q) rm -f *.o *.a