34 lines
1.3 KiB
Makefile
34 lines
1.3 KiB
Makefile
|
|
ASM_HELLO_NAME := ahello
|
|
ASM_HELLO_RUN := run-$(ASM_HELLO_NAME)
|
|
ASM_HELLO_TEST := test-$(ASM_HELLO_NAME)
|
|
ASM_HELLO_SRC := test/$(ASM_HELLO_NAME)
|
|
ASM_HELLO_BIN := $(PATH_BIN)/test/$(ASM_HELLO_NAME)
|
|
ASM_HELLO_HEX := $(ASM_HELLO_BIN)/$(ASM_HELLO_NAME).hex
|
|
ASM_HELLO_COM := $(ASM_HELLO_BIN)/$(ASM_HELLO_NAME).com
|
|
ASM_HELLO_RELS := $(ASM_HELLO_BIN)/$(ASM_HELLO_NAME).rel
|
|
ASM_HELLO_CODE := $(ASM_HELLO_SRC)/$(ASM_HELLO_NAME).asm
|
|
BUILD_HELP += \\n\\t* $(ASM_HELLO_COM)\\n\\t* $(ASM_HELLO_RUN)\\n\\t* $(ASM_HELLO_TEST) \(Change txt in hello.asm and run again\)
|
|
|
|
$(ASM_HELLO_BIN):
|
|
$(call mb_mkdir,$(ASM_HELLO_BIN))
|
|
|
|
$(ASM_HELLO_BIN)/%.rel: $(ASM_HELLO_SRC)/%.asm | $(ASM_HELLO_BIN)
|
|
$(call mb_compile_asm,$@,$<)
|
|
|
|
$(ASM_HELLO_HEX): $(ASM_HELLO_RELS)
|
|
$(call mb_link_asm_dos,$(ASM_HELLO_HEX),$(ASM_HELLO_RELS))
|
|
|
|
$(ASM_HELLO_COM): $(ASM_HELLO_HEX)
|
|
$(call mb_hex2com,$(ASM_HELLO_HEX),$(ASM_HELLO_COM))
|
|
|
|
$(ASM_HELLO_RUN): $(ASM_HELLO_COM)
|
|
$(call mb_autoexec_open_gui,$(ASM_HELLO_BIN))
|
|
$(call mb_openmsx_dos2,$(ASM_HELLO_BIN))
|
|
|
|
$(ASM_HELLO_TEST): $(ASM_HELLO_COM)
|
|
$(call mb_delete,$(ASM_HELLO_BIN)/test.out)
|
|
$(call mb_autoexec_cmd_test,$(ASM_HELLO_BIN),$(ASM_HELLO_NAME) > test.out)
|
|
$(call mb_openmsx_dos2,$(ASM_HELLO_BIN))
|
|
$(call mb_assert_file_equals,$(ASM_HELLO_BIN)/test.out,Hello world...from asm.)
|