2024-07-02 15:34:26 +02:00
|
|
|
|
|
|
|
|
MBBOOT80_MOD := mbboot80
|
|
|
|
|
MBBOOT80_SRC := $(PATH_SRC)/$(MBBOOT80_MOD)
|
|
|
|
|
MBBOOT80_BIN := $(PATH_BIN)/$(MBBOOT80_MOD)
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN): | $(PATH_BIN)/@prepare
|
|
|
|
|
$(call mb_mkdir,$(MBBOOT80_BIN))
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/%.rel: $(MBBOOT80_SRC)/%.asm | $(MBBOOT80_BIN)
|
|
|
|
|
$(call mb_sdcc_compile_asm,$<,$@)
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/mbboot80.hex: $(MBBOOT80_BIN)/mbboot80.rel
|
|
|
|
|
$(call mb_sdcc_link_asm_bdos,$<,$@)
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/mbboot80.com: $(MBBOOT80_BIN)/mbboot80.hex
|
|
|
|
|
$(call mb_sdcc_hex2bin,$<,$@)
|
|
|
|
|
MB_DOC_HELP_TARGET += $(call mb_doc_target,$(MBBOOT80_BIN)/mbboot80.com,"Compiles mbboot80.")
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/@run: | $(MBBOOT80_BIN)/mbboot80.com
|
2024-07-02 18:20:46 +02:00
|
|
|
$(call mb_msxpipe_run_gui,$(MBBOOT80_BIN))
|
2024-07-02 15:34:26 +02:00
|
|
|
MB_DOC_HELP_TARGET += $(call mb_doc_target,$(MBBOOT80_BIN)/@run,"Run the compiled mbboot80.")
|
|
|
|
|
.PHONY: $(MBBOOT80_BIN)/@run
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/@release-local: | $(MBBOOT80_TEST_BIN)/@assert
|
|
|
|
|
$(call mb_copy,$(MBBOOT80_BIN)/mbboot80.com,lib/emuctl//mbboot80.com)
|
|
|
|
|
MB_DOC_HELP_TARGET += $(call mb_doc_target,$(MBBOOT80_BIN)/@release-local,"Updates binary copy in lib/emuctl folder.")
|
|
|
|
|
.PHONY: $(MBBOOT80_BIN)/@release-local
|