From 693330a3616e418c4eda90ff5528ef0cbe5fa4cc Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 26 Jan 2011 18:43:39 +0100 Subject: Trying to perfect makefiles; making the difference between CPPFLAGS, CFLAGS and ASFLAGS. --- config/general.mk | 3 +++ config/toolchain.mk | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/general.mk b/config/general.mk index b82dae3..cd50fdc 100644 --- a/config/general.mk +++ b/config/general.mk @@ -1,2 +1,5 @@ VERBOSE = false + +ifneq ($(VERBOSE),true) MAKE_OPTS = --no-print-directory -s +endif diff --git a/config/toolchain.mk b/config/toolchain.mk index 21808c8..4e58227 100644 --- a/config/toolchain.mk +++ b/config/toolchain.mk @@ -3,7 +3,8 @@ TOOLCHAIN = arm-none-eabi ifeq ($(CPU_FLAVOR),lpc1768) TARGET_CPPFLAGS += -mcpu=cortex-m3 -mtune=cortex-m3 -D__thumb2__=1 -march=armv7-m -mfix-cortex-m3-ldrd endif -TARGET_CPPFLAGS += -mthumb -Os -mapcs-frame -msoft-float -mno-sched-prolog -fno-hosted -ffunction-sections -fdata-sections -fshort-wchar +TARGET_CPPFLAGS += -Os -mapcs-frame -msoft-float -mno-sched-prolog -fno-hosted -ffunction-sections -fdata-sections -fshort-wchar +TARGET_CFLAGS += -mthumb endif TARGET_CC = $(TOOLCHAIN)-gcc -- cgit v1.2.3