aboutsummaryrefslogtreecommitdiffstats
path: root/build-targets.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-targets.mk')
-rw-r--r--build-targets.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/build-targets.mk b/build-targets.mk
index 4b9c880..8232867 100644
--- a/build-targets.mk
+++ b/build-targets.mk
@@ -16,6 +16,9 @@ library: $(BUILD_PATH)/libmaple.a
$(BUILD_PATH)/$(BOARD).elf: $(BUILDDIRS) $(TGT_BIN) $(OBJ_FILES)
$(SILENT_LD) $(CXX) $(LDFLAGS) -o $@ $(TGT_BIN) $(BUILD_PATH)/main.o -Wl,-Map,$(BUILD_PATH)/$(BOARD).map
+$(BUILD_PATH)/$(BOARD).hex: $(BUILD_PATH)/$(BOARD).elf
+ $(SILENT_OBJCOPY) $(OBJCOPY) -v -Oihex $(BUILD_PATH)/$(BOARD).elf $@ 1>/dev/null
+
$(BUILD_PATH)/$(BOARD).bin: $(BUILD_PATH)/$(BOARD).elf
$(SILENT_OBJCOPY) $(OBJCOPY) -v -Obinary $(BUILD_PATH)/$(BOARD).elf $@ 1>/dev/null
$(SILENT_DISAS) $(DISAS) -d $(BUILD_PATH)/$(BOARD).elf > $(BUILD_PATH)/$(BOARD).disas