summaryrefslogtreecommitdiff
path: root/nuttx/configs/c5471evm/Make.defs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/c5471evm/Make.defs')
-rw-r--r--nuttx/configs/c5471evm/Make.defs20
1 files changed, 18 insertions, 2 deletions
diff --git a/nuttx/configs/c5471evm/Make.defs b/nuttx/configs/c5471evm/Make.defs
index 1dd6117c6..cda4d7208 100644
--- a/nuttx/configs/c5471evm/Make.defs
+++ b/nuttx/configs/c5471evm/Make.defs
@@ -59,6 +59,7 @@ OBJDUMP = $(CROSSDEV)objdump
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) -pipe
+AFLAGS = $(CFLAGS) -D__ASSEMBLY__
OBJEXT = .o
LIBEXT = .a
@@ -68,11 +69,26 @@ ifeq ("${CONFIG_DEBUG}","y")
LDFLAGS += -g
endif
+define COMPILE
+ @echo "CC: $1"
+ @$(CC) -c $(CFLAGS) $1 -o $2
+endef
+
+define ASSEMBLE
+ @echo "AS: $1"
+ @$(CC) -c $(AFLAGS) $1 -o $2
+endef
+
+define ARCHIVE
+ echo "AR: $2"; \
+ $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
+endef
+
+MKDEP = $(TOPDIR)/tools/mkdeps.sh
+
HOSTCC = gcc
HOSTINCLUDES = -I.
HOSTCFLAGS = -Wall -wstrict-prototypes -Wshadow -g -pipe
HOSTLDFLAGS =
-MKDEP = $(TOPDIR)/tools/mkdeps.sh
-