mbed-scli test program
Diff: Makefile
- Revision:
- 5:c3524dc89507
- Parent:
- 4:85e9057db7a6
- Child:
- 6:7915b5819364
diff -r 85e9057db7a6 -r c3524dc89507 Makefile --- a/Makefile Mon Feb 27 22:51:57 2017 +0900 +++ b/Makefile Tue Feb 28 22:12:26 2017 +0900 @@ -1,6 +1,6 @@ # # Super light weight command line compile script using mbed-sdk sources. -# v0.6 +# v0.7 # 2017/02 made by dinau # @@ -27,8 +27,9 @@ # Defalut setting. # These are must be changed according to your environment. ########################## -TARGET ?= NUCLEO_F030R8 +#TARGET ?= NUCLEO_F030R8 #TARGET ?= NUCLEO_L152RE +TARGET ?= NUCLEO_F411RE # GCC_ARM or uARM or ARM TC ?= GCC_ARM @@ -40,12 +41,12 @@ MBED_ROOT = /d/mbed-os # Specify [ "default" or "debug" or "small" ] -PROFILE = default +#PROFILE = --profile default # Verbose display -ifeq (${v},1) - VERBOSE = -v -endif +#ifeq (${v},1) +#VERBOSE = -v +#endif ########################## # Fixed setting. @@ -57,7 +58,7 @@ MACROS = "-D NDEBUG=1" #CFLAGS = "--cflags NDEBUG=1" BUILD_DIR = .build/${TARGET}/${TC} -COMFLAG = --color -m ${TARGET} -t ${TC} ${VERBOSE} --profile ${PROFILE} +COMFLAG = --color -m ${TARGET} -t ${TC} ${VERBOSE} ${PROFILE} PROG_NAME = -n ${PROG} ########################## @@ -68,8 +69,11 @@ python ${MBED_ROOT}/tools/make.py ${COMFLAG} ${PROG_NAME} --build ${BUILD_DIR} --source . .PHONY: c f lib lst list +c: + rm -fr ${BUILD_DIR} + # clean and make -c: +ca: rm -fr ${BUILD_DIR} python ${MBED_ROOT}/tools/build.py -j4 ${COMFLAG} ${RTOS} -c python ${MBED_ROOT}/tools/make.py ${COMFLAG} ${PROG_NAME} --build ${BUILD_DIR} --source . -c @@ -85,3 +89,4 @@ lst: list list: @arm-none-eabi-objdump -Sdh ${BUILD_DIR}/${notdir ${CURDIR}}.elf > ${TARGET}-${TC}.lst +