You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
441 B
24 lines
441 B
|
|
OCD_BIN=/opt/local/bin/openocd
|
|
OCD_SCRIPTS=/opt/local/share/openocd/scripts
|
|
OCD_BOARD=stm32f4discovery.cfg
|
|
|
|
.PHONY: all compile run clean
|
|
|
|
all: run
|
|
|
|
compile:
|
|
$(MAKE) -C src
|
|
|
|
run: compile
|
|
$(OCD_BIN) -s $(OCD_SCRIPTS) -f board/$(OCD_BOARD) \
|
|
-c "tcl_port disabled" \
|
|
-c "gdb_port disabled" \
|
|
-c "program ./src/raw407cxx.elf" \
|
|
-c reset \
|
|
-c shutdown
|
|
|
|
clean:
|
|
$(MAKE) -C src clean
|
|
$(MAKE) -C Drivers clean
|
|
$(MAKE) -C Middlewares clean
|