2
0
Fork 0

Renamed to new function names.

This commit is contained in:
Willem Cazander 2024-07-10 22:35:57 +02:00
parent 8de2845d87
commit 8087dcaab7
5 changed files with 24 additions and 26 deletions

View file

@ -1,10 +1,6 @@
# #
# Top level makefile for tara # Top level makefile for tara
# #
rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
INC_MODS := $(call rwildcard, src, */0module.mk)
INC_LIBS := $(call rwildcard, src, */0module.lib.mk)
PATH_BIN := bin PATH_BIN := bin
PATH_SRC := src PATH_SRC := src
BUILD_ALL := "Use 'make help' for possible targets." BUILD_ALL := "Use 'make help' for possible targets."
@ -14,19 +10,21 @@ MB_OPENMSX_ARGS += -ext video9000
.SUFFIXES: .SUFFIXES:
.PHONY: all .PHONY: all
all: all:
@echo $(BUILD_ALL) @echo -e $(BUILD_ALL)
BUILD_HELP += \\n\\t* help BUILD_HELP += \\n\\t* help
.PHONY: help .PHONY: help
help: help:
@echo $(BUILD_HELP) @echo -e $(BUILD_HELP)
BUILD_HELP += \\n\\t* clean BUILD_HELP += \\n\\t* clean
.PHONY: clean .PHONY: clean
clean: clean:
$(call mb_clean,$(PATH_BIN)) $(call mb_make_call,mb_os_dir_delete,$(PATH_BIN))
-include Makelocal.mk -include Makelocal.mk
include $(PATH_MSXBUILD)/lib/make/msxbuild-prolog.mk
.RECIPEPREFIX :=
include $(PATH_MSXBUILD)/lib/make/msxbuild.mk include $(PATH_MSXBUILD)/lib/make/msxbuild.mk
include $(INC_LIBS) $(call mb_make_call,mb_make_flow_0module,$(PATH_SRC))
include $(INC_MODS)

View file

@ -3,7 +3,7 @@
# #
# Change to local installations if needed; # Change to local installations if needed;
#PATH_SDCC ?= /usr/bin #MB_SDCC_PATH ?= /usr/bin
#PATH_OPENMSX ?= /opt/openMSX/bin/ #MB_OPENMSX_PATH ?= /opt/openMSX/bin/
#PATH_MSXBUILD ?= /opt/msxbuild #PATH_MSXBUILD ?= /opt/msxbuild

View file

@ -7,10 +7,10 @@ DIST_RUN_DEP := $(DIST_RUN_BIN)/tara.com
BUILD_HELP += \\n\\t* $(DIST_RUN_NAME) BUILD_HELP += \\n\\t* $(DIST_RUN_NAME)
$(DIST_RUN_BIN): $(DIST_RUN_BIN):
$(call mb_mkdir,$(DIST_RUN_BIN)) $(call mb_make_call,mb_os_dir_create,$(DIST_RUN_BIN))
$(DIST_RUN_DEP): $(DIST_RUN_DEP_TAR) | $(DIST_RUN_BIN) $(DIST_RUN_DEP): $(DIST_RUN_DEP_TAR) | $(DIST_RUN_BIN)
$(call mb_copy,$(PATH_BIN)/dist/*,$(DIST_RUN_BIN)) $(call mb_make_call,mb_os_file_copy,$(PATH_BIN)/dist/*,$(DIST_RUN_BIN))
$(DIST_RUN_NAME): $(DIST_RUN_DEP) $(DIST_RUN_NAME): $(DIST_RUN_DEP)
$(call mb_msxpipe_run_gui_mouse,$(DIST_RUN_BIN),tara) $(call mb_make_call,mb_msxpipe_run_gui_mouse,$(DIST_RUN_BIN),tara)

16
src/dist/0module.mk vendored
View file

@ -11,18 +11,18 @@ DIST_TARA_SRC := $(PATH_BIN)/tara/tara.com
BUILD_HELP += \\n\\t* $(DIST_OUT) BUILD_HELP += \\n\\t* $(DIST_OUT)
$(DIST_BIN): $(DIST_BIN):
$(call mb_mkdir,$(DIST_BIN)) $(call mb_make_call,mb_os_dir_create,$(DIST_BIN))
$(DIST_BIN)/all.sr8: $(DIST_SRC)/all.sr8 | $(DIST_BIN) $(DIST_BIN)/all.sr8: $(DIST_SRC)/all.sr8 | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_BIN)/ascii.sr8: $(DIST_SRC)/ascii.sr8 | $(DIST_BIN) $(DIST_BIN)/ascii.sr8: $(DIST_SRC)/ascii.sr8 | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_BIN)/veld.sr8: $(DIST_SRC)/veld.sr8 | $(DIST_BIN) $(DIST_BIN)/veld.sr8: $(DIST_SRC)/veld.sr8 | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_BIN)/veldback.4bp: $(DIST_SRC)/veldback.4bp | $(DIST_BIN) $(DIST_BIN)/veldback.4bp: $(DIST_SRC)/veldback.4bp | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_BIN)/readme.txt: $(DIST_SRC)/readme.txt | $(DIST_BIN) $(DIST_BIN)/readme.txt: $(DIST_SRC)/readme.txt | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_TARA_BIN): $(DIST_TARA_SRC) | $(DIST_BIN) $(DIST_TARA_BIN): $(DIST_TARA_SRC) | $(DIST_BIN)
$(call mb_copy,$<,$@) $(call mb_make_call,mb_os_file_copy,$<,$@)
$(DIST_OUT): | $(DIST_INC_BIN) $(DIST_TARA_BIN) $(DIST_OUT): | $(DIST_INC_BIN) $(DIST_TARA_BIN)
$(call mb_create_dist,$(DIST_BIN),$@) $(call mb_make_call,mb_package_create_archive,$(DIST_BIN),$@)

View file

@ -9,13 +9,13 @@ TARA_CODE := $(TARA_SRC)/$(TARA_NAME).asm
BUILD_HELP += \\n\\t* $(TARA_COM) BUILD_HELP += \\n\\t* $(TARA_COM)
$(TARA_BIN): $(TARA_BIN):
$(call mb_mkdir,$(TARA_BIN)) $(call mb_make_call,mb_os_dir_create,$(TARA_BIN))
$(TARA_BIN)/%.rel: $(TARA_SRC)/%.asm | $(TARA_BIN) $(TARA_BIN)/%.rel: $(TARA_SRC)/%.asm | $(TARA_BIN)
$(call mb_sdcc_compile_asm,$<,$@) $(call mb_make_call,mb_sdcc_compile_asm,$<,$@)
$(TARA_HEX): $(TARA_RELS) $(TARA_HEX): $(TARA_RELS)
$(call mb_sdcc_link_asm_bdos,$<,$@) $(call mb_make_call,mb_sdcc_link_asm_bdos,$<,$@)
$(TARA_COM): $(TARA_HEX) $(TARA_COM): $(TARA_HEX)
$(call mb_sdcc_hex2bin,$<,$@) $(call mb_make_call,mb_sdcc_objcopy,$<,$@)