summaryrefslogtreecommitdiff
path: root/nuttx/configs/ez80f910200kitg/ostest/Make.defs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-11 18:36:28 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-11 18:36:28 +0000
commitdab0480f31b5fe4d778a414f3b60e5c5b536b1bd (patch)
treeb69e31da1b3edac0b4815d212b99ac312fb194e2 /nuttx/configs/ez80f910200kitg/ostest/Make.defs
parent5302536d9ce61dfcae635787a7c85820c822ef33 (diff)
downloadpx4-nuttx-dab0480f31b5fe4d778a414f3b60e5c5b536b1bd.tar.gz
px4-nuttx-dab0480f31b5fe4d778a414f3b60e5c5b536b1bd.tar.bz2
px4-nuttx-dab0480f31b5fe4d778a414f3b60e5c5b536b1bd.zip
Completes removal bash ARCHIVE loop; Adds basic Makefile for native windows build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ez80f910200kitg/ostest/Make.defs')
-rw-r--r--nuttx/configs/ez80f910200kitg/ostest/Make.defs13
1 files changed, 11 insertions, 2 deletions
diff --git a/nuttx/configs/ez80f910200kitg/ostest/Make.defs b/nuttx/configs/ez80f910200kitg/ostest/Make.defs
index 2ec06aadd..b7b4e2378 100644
--- a/nuttx/configs/ez80f910200kitg/ostest/Make.defs
+++ b/nuttx/configs/ez80f910200kitg/ostest/Make.defs
@@ -153,10 +153,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 *.lod *.lst