29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
|
|
|
||
|
|
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
|
||
|
|
$(call mb_autoexec_show_gui80,$(MBBOOT80_BIN))
|
||
|
|
$(call mb_openmsx_dosctl,$(MBBOOT80_BIN))
|
||
|
|
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
|