Completes removal bash ARCHIVE loop; Adds basic Makefile for native windows build

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5338 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-11-11 18:36:28 +00:00
parent 2e97e07998
commit a42dcee79d
35 changed files with 1817 additions and 192 deletions
+10 -2
View File
@@ -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