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,$<,$@)
|
2024-07-05 20:43:18 +02:00
|
|
|
MB_DOC_FIRE_TARGET += $(call mb_doc_target,$(MBBOOT80_BIN)/mbboot80.com,"Compiles mbboot80.")
|
2024-07-02 15:34:26 +02:00
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/@run: | $(MBBOOT80_BIN)/mbboot80.com
|
2024-07-02 18:20:46 +02:00
|
|
|
$(call mb_msxpipe_run_gui,$(MBBOOT80_BIN))
|
2024-07-05 20:43:18 +02:00
|
|
|
MB_DOC_FIRE_TARGET += $(call mb_doc_target,$(MBBOOT80_BIN)/@run,"Run the compiled mbboot80.")
|
2024-07-02 15:34:26 +02:00
|
|
|
.PHONY: $(MBBOOT80_BIN)/@run
|
|
|
|
|
|
2024-07-05 20:43:18 +02:00
|
|
|
|
|
|
|
|
#$(eval $(call mb_make_call,mb_flow_sdcc_asm_bdos_mono,$(PATH_BIN)/@prepare,$(MBBOOT80_BIN),$(MBBOOT80_SRC),$(MBBOOT80_MOD)))
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/@assert: | $(MBBOOT80_BIN)/$(MBBOOT80_MOD).com
|
|
|
|
|
$(call mb_delete,$(MBBOOT80_BIN)/$(MBBOOT80_MOD).out)
|
|
|
|
|
$(call mb_msxpipe_safe_test,$(MBBOOT80_BIN),$(MBBOOT80_MOD) > $(MBBOOT80_MOD).out)
|
|
|
|
|
grep "mb::boot mode 80" $(MBBOOT80_BIN)/$(MBBOOT80_MOD).out
|
|
|
|
|
MB_DOC_FIRE_TARGET += $(call mb_make_call,mb_doc_target,$(MBBOOT80_BIN)/@assert,"Assert binaries from mbboot80.")
|
|
|
|
|
.PHONY: $(MBBOOT80_BIN)/@assert
|
|
|
|
|
|
|
|
|
|
$(MBBOOT80_BIN)/@release-local: | $(MBBOOT80_BIN)/@assert
|
|
|
|
|
$(call mb_copy,$(MBBOOT80_BIN)/mbboot80.com,lib/emuctl/mbboot80.com)
|
|
|
|
|
MB_DOC_HELP_TARGET += $(call mb_make_call,mb_doc_target,$(MBBOOT80_BIN)/@release-local,"Updates binary copy in lib/emuctl folder.")
|
2024-07-02 15:34:26 +02:00
|
|
|
.PHONY: $(MBBOOT80_BIN)/@release-local
|