diff options
Diffstat (limited to 'nuttx/configs/z16f2800100zcog/pashello/Make.defs')
-rw-r--r-- | nuttx/configs/z16f2800100zcog/pashello/Make.defs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nuttx/configs/z16f2800100zcog/pashello/Make.defs b/nuttx/configs/z16f2800100zcog/pashello/Make.defs index 1c3e277ad..92a67fa65 100644 --- a/nuttx/configs/z16f2800100zcog/pashello/Make.defs +++ b/nuttx/configs/z16f2800100zcog/pashello/Make.defs @@ -146,10 +146,19 @@ define ASSEMBLE @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile) endef +ifeq ($(CONFIG_WINDOWS_NATIVE),y) define ARCHIVE - echo "AR: $2"; \ - $(AR) $(ARFLAGS) $1=-+$2 || { echo "$(AR) $1=-+$2 FAILED!" ; exit 1 ; } + echo "AR: $2"; + $(Q) for %%G in ($(subst ",,$(2))) do ( $(AR) $(ARFLAGS) $1=-+%%G ) endef +else +define ARCHIVE + $(Q) for __obj in $(2); do \ + echo "AR: $(__obj)"; \ + $(AR) $(ARFLAGS) $1=-+$(__obj) || { echo "$(AR) $1=-+$(__obj) FAILED!" ; exit 1 ; } \ + done +endef +endif define CLEAN @rm -f *.obj *.src *.lib *.hex *.lst |