msxbuild/lib/make/𓃬𓍄𓋹𓀭/mb_flow_macro80.mk
Willem Cazander 66990665fa
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 7s
Converted to make style like "filter-out"
2024-07-16 16:45:37 +02:00

45 lines
2.1 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# TODO: to create bin files use;
# l80 /P:C000,hello,hello/N/X/Y/E
# and
# hextobin hello.hex hello.bin
define __mb-flow-macro80-bdos-mono
.RECIPEPREFIX := $(MB_@RECIPE)
$(1)/@@process-deps:: $(1)/$(3).mac
$(1)/$(3).mac: $(2)/$(3).mac | $(1)/@prepare
$(MB_@RECIPE)$$(call mb-make-call,mb-conv-unix2dos,$(2)/$(3).mac,$(1)/$(3).mac)
$(MB_   )$$(call mb-make-call,mb-doc-target-deep,$(1)/$(3).mac)
$(MB_   )$$(call mb-make-call,mb-proj-grow-deps-phase,@process,$(1)/$(3).mac)
$(1)/@@compile-deps:: $(1)/$(3).rel
$(1)/$(3).rel: $(1)/$(3).mac
$(MB_@RECIPE)$$(call mb-make-call,mb-msxpipe-safe-cmd,$(1),m80 $$(MB_MAKE_EQUALS)$(3)/Z)
$(MB_   )$$(call mb-make-call,mb-doc-target-deep,$(1)/$(3).rel)
$(MB_   )$$(call mb-make-call,mb-proj-grow-deps-phase,@compile,$(1)/$(3).rel)
$(1)/@@link-deps:: $(1)/$(3).hex
$(1)/$(3).hex: $(1)/$(3).rel
$(MB_@RECIPE)$$(call mb-make-call,mb-msxpipe-safe-cmd,$(1),l80 $(3)$$(MB_MAKE_COMMA)$(3)/N/X/Y/E)
$(MB_   )$$(call mb-make-call,mb-doc-target-deep,$(1)/$(3).hex)
$(MB_   )$$(call mb-make-call,mb-proj-grow-deps-phase,@link,$(1)/$(3).hex)
$(1)/@@build-deps:: $(1)/$(3).com
$(1)/$(3).com: $(1)/$(3).hex
$(MB_@RECIPE)$$(call mb-make-call,mb-msxpipe-safe-cmd,$(1),hextocom $(3))
$(MB_   )$$(call mb-make-call,mb-doc-target-deep,$(1)/$(3).com)
$(MB_   )$$(call mb-make-call,mb-proj-grow-deps-phase,@build,$(1)/$(3).com)
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
endef
define mb-flow-macro80-bdos-mono
$(MB_   )$(call mb-make-call,mb-make-check-arg3,$(0),$(1),$(2),$(3))
$(MB_   )$(call mb-make-call,mb-flow-proj-setup,$(1),@init,$(1))
$(MB_   )$(call mb-make-call,mb-flow-proj-module-run,$(1))
$(MB_   )$(call mb-make-call,mb-flow-proj-prepare-packages,$(1),macro80 z80asmuk,utils)
$(MB_   )$(eval $(call mb-make-call,__$(0),$(1),$(2),$(3)))
endef
$(call mb-make-call,mb-doc-function-flow,mb-flow-macro80-bdos-mono,"Inject flow of m80 toolchain bdos mono file module.","<bin-dir> <src-dir> <objname>")