From 4b17bcd99110b47d62d0e3e5ccd42647c7b0260a Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 16 Apr 2017 15:40:34 -0300 Subject: [PATCH] =?UTF-8?q?Changing=20default=20Makefile=20target=20to=20?= =?UTF-8?q?=E2=80=9Cnucleo=E2=80=9D=20and=20adding=20=E2=80=9CGitVersion.h?= =?UTF-8?q?=E2=80=9D=20rule=20for=20all=20targets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ba62750..85a3cdf 100644 --- a/Makefile +++ b/Makefile @@ -101,9 +101,10 @@ LDFLAGS =-T $(LDSCRIPT) $(MCFLAGS) --specs=nosys.specs $(INCLUDES_LIBS) $(LINK_L # Build Rules .PHONY: all release dis pi nucleo debug clean -# Default target: STM32F4 Discovery board -all: dis +# Default target: STM32F4 Nucleo F446RE board +all: nucleo +pi: GitVersion.h pi: CFLAGS+=$(DEFS_PI) -Os -ffunction-sections -fdata-sections -fno-builtin -Wno-implicit -DCUSTOM_NEW -DNO_EXCEPTIONS pi: CXXFLAGS+=$(DEFS_PI) -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-builtin -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS pi: LDFLAGS+=-Os --specs=nano.specs @@ -115,6 +116,7 @@ nucleo: CXXFLAGS+=$(DEFS_NUCLEO) -Os -fno-exceptions -ffunction-sections -fdata- nucleo: LDFLAGS+=-Os --specs=nano.specs nucleo: release +dis: GitVersion.h dis: CFLAGS+=$(DEFS_DIS) -Os -ffunction-sections -fdata-sections -fno-builtin -Wno-implicit -DCUSTOM_NEW -DNO_EXCEPTIONS dis: CXXFLAGS+=$(DEFS_DIS) -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-builtin -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS dis: LDFLAGS+=-Os --specs=nano.specs