2015-07-02 00:12:38 +02:00
|
|
|
GDB ?= gdb
|
|
|
|
OPENOCD_SCRIPTS = $(CONTIKI)/platform/galileo/bsp/openocd-scripts
|
|
|
|
|
|
|
|
.PHONY: debug
|
|
|
|
|
|
|
|
debug: $(CONTIKI_PROJECT).$(TARGET)
|
|
|
|
@openocd -s $(OPENOCD_SCRIPTS) -f debug.cfg &> $(shell pwd)/LOG_OPENOCD &
|
|
|
|
@$(GDB) $< -ex "target remote :3333"
|
2015-07-01 23:20:20 +02:00
|
|
|
|
|
|
|
CUSTOM_RULE_LINK=1
|
|
|
|
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
|
|
|
$(TRACE_LD)
|
|
|
|
$(Q)$(LD) $(LDFLAGS) $(TARGET_STARTFILES) ${filter-out %.a,$^} \
|
|
|
|
${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
|
|
|
@$(SIZE) $@
|