DirectSPI test program

Dependencies:   DirectSPI mbed

Makefile

Committer:
mimi3
Date:
2017-02-24
Revision:
5:691576127698
Child:
7:84a0a208ebb2

File content as of revision 5:691576127698:

# 
# Super light weight command line compile script using mbed-sdk sources.
# 2017/02 made by dinau
#

##########################
# Defalut setting. These are must be changed according to your environment.
##########################
TARGET		?= NUCLEO_F030R8

# GCC_ARM or uARM or ARM
TC			?= GCC_ARM

# Specify mbed flash drive
MBED_DRIVE	= /g

# Specify mbed root folder
MBED_ROOT	= ../../mbed-sdk

# Specify [ "default" or "debug" or "small" ]
PROFILE		= small

# Verbose display
#VERBOSE		= -v

##########################
# Fixed setting.
##########################
# Specify "id". This is a fixed constant, don't change it.
PROG		= MBED_A1

#RTOS		= -rtos
MACROS		= "-D NDEBUG=1"
#CFLAGS		= "--cflags NDEBUG=1"
BUILD_DIR	= .build/${TARGET}/${TC}
COMFLAG		= --color -m ${TARGET} -t ${TC} ${VERBOSE} --profile ${PROFILE}
PROG_NAME	= -n ${PROG}

all:
	python ${MBED_ROOT}/tools/build.py -j4 ${COMFLAG} ${RTOS}
	python ${MBED_ROOT}/tools/make.py  ${COMFLAG} ${PROG_NAME} --build ${BUILD_DIR} --source .

.PHONY: c f
# clean and make
c:
	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

# copy to mbed drive
f: all
	cp ${BUILD_DIR}/${notdir ${CURDIR}}.bin ${MBED_DRIVE}