mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 11:03:34 +08:00
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:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user