BOOT_DEVMODE_BUILD = $(BOOT_BUILD)/devmode BOOT_DEVMODE_SRC =\ bootloader.c\ crc16.c BOOT_DEVMODE_OBJ =\ $(patsubst %,$(BOOT_DEVMODE_BUILD)/%.rel,\ $(basename $(BOOT_DEVMODE_SRC))) DEPS +=\ $(patsubst %.rel,%.d,$(BOOT_DEVMODE_OBJ)) $(BOOT_DEVMODE_BUILD)/devmode.ihx : EXTRA_LDFLAGS=$(PAYLOAD_LDFLAGS) $(BOOT_DEVMODE_BUILD)/devmode.ihx : $(BOOT_CRT0) $(BOOT_DEVMODE_OBJ) $(BOOT_DEVMODE_OBJ) : | $(BOOT_DEVMODE_BUILD) $(BOOT_DEVMODE_BUILD) : @mkdir -p $@