aboutsummaryrefslogtreecommitdiff
BOOT_CMD_BUILD = $(BOOT_BUILD)/cmd

BOOT_CMD_SRC =\
	main.c

BOOT_CMD_OBJ =\
	$(patsubst %,$(BOOT_CMD_BUILD)/%.rel,$(basename $(BOOT_CMD_SRC)))
DEPS +=\
	$(patsubst %.rel,%.d,$(BOOT_CMD_OBJ))

$(BOOT_CMD_BUILD)/cmd.ihx : EXTRA_LDFLAGS=$(PAYLOAD_LDFLAGS)
$(BOOT_CMD_BUILD)/cmd.ihx : $(BOOT_CRT0) $(BOOT_CMD_OBJ)

$(BOOT_CMD_OBJ) : | $(BOOT_CMD_BUILD)
$(BOOT_CMD_BUILD) :
	@mkdir -p $@