From 6a41bf99bdd2e19d6922864bf6845a91b3ab6b99 Mon Sep 17 00:00:00 2001 From: Johan Hendriks Date: Sat, 28 Feb 2015 12:20:04 +0100 Subject: cc3200: Create separate release/debug build directories --- cc3200/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cc3200/Makefile') diff --git a/cc3200/Makefile b/cc3200/Makefile index 246445fb5..29318d44e 100644 --- a/cc3200/Makefile +++ b/cc3200/Makefile @@ -5,16 +5,16 @@ ifeq ($(wildcard boards/$(BOARD)/.),) $(error Invalid BOARD specified) endif +BTYPE ?= release + # If the build directory is not given, make it reflect the board name. -BUILD ?= build/$(BOARD) +BUILD ?= build/$(BOARD)/$(BTYPE) include ../py/mkenv.mk -include ../../localconfig.mk CROSS_COMPILE ?= arm-none-eabi- -BTYPE ?= release - CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -march=armv7e-m -mabi=aapcs -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion CFLAGS = -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) CFLAGS += -g -ffunction-sections -fdata-sections -fno-common -fsigned-char -mno-unaligned-access -- cgit v1.2.3