2019-01-01 22:26:48 +00:00
|
|
|
|
|
|
|
DOMELIB_NAME := domelib
|
|
|
|
DOMELIB_SRC := $(PATH_SRC)/$(DOMELIB_NAME)
|
|
|
|
DOMELIB_BIN := $(PATH_BIN)/$(DOMELIB_NAME)
|
|
|
|
DOMELIB_OUT := $(PATH_BIN)/$(DOMELIB_NAME)/dome.000
|
2021-07-02 19:01:12 +00:00
|
|
|
BUILD_HELP += \\n\\t* $(DOMELIB_OUT)
|
2019-01-01 22:26:48 +00:00
|
|
|
DOMELIB_DEPS := \
|
|
|
|
$(PATH_BIN)/bios/bios.dat \
|
|
|
|
$(PATH_BIN)/dome/dome.dat \
|
|
|
|
$(PATH_BIN)/loader/loader.dat \
|
|
|
|
$(PATH_BIN)/makelib/makelib.com \
|
|
|
|
$(PATH_BIN)/menu/menu.dat \
|
|
|
|
$(PATH_BIN)/mmenu/mmenu.dat
|
|
|
|
|
2024-07-10 21:00:29 +00:00
|
|
|
$(DOMELIB_BIN): | gfx
|
2024-09-07 13:36:28 +00:00
|
|
|
$(call mb-make-call,mb-os-dir-create,$(DOMELIB_BIN))
|
2019-01-01 22:26:48 +00:00
|
|
|
|
|
|
|
$(DOMELIB_BIN)/bios.dat: $(PATH_BIN)/bios/bios.dat | $(DOMELIB_BIN)
|
|
|
|
cp $< $@;
|
|
|
|
$(DOMELIB_BIN)/dome.dat: $(PATH_BIN)/dome/dome.dat | $(DOMELIB_BIN)
|
|
|
|
cp $< $@;
|
|
|
|
$(DOMELIB_BIN)/loader.dat: $(PATH_BIN)/loader/loader.dat | $(DOMELIB_BIN)
|
|
|
|
cp $< $@;
|
2024-07-10 21:00:29 +00:00
|
|
|
$(DOMELIB_BIN)/makelib.com: $(PATH_BIN)/makelib/makelib.com bin/levels/code.001 bin/levels/code.002 | $(DOMELIB_BIN)
|
2019-01-01 22:26:48 +00:00
|
|
|
cp $< $@;
|
|
|
|
cp bin/gfx/*.zop $(DOMELIB_BIN);
|
2019-01-01 23:29:59 +00:00
|
|
|
cp bin/levels/*.00* $(DOMELIB_BIN);
|
2019-01-01 22:26:48 +00:00
|
|
|
cp src/dist/*.zop $(DOMELIB_BIN);
|
|
|
|
cp src/dist/*.COM $(DOMELIB_BIN);
|
|
|
|
|
|
|
|
$(DOMELIB_BIN)/menu.dat: $(PATH_BIN)/menu/menu.dat | $(DOMELIB_BIN)
|
|
|
|
cp $< $@;
|
|
|
|
$(DOMELIB_BIN)/mmenu.dat: $(PATH_BIN)/mmenu/mmenu.dat | $(DOMELIB_BIN)
|
|
|
|
cp $< $@;
|
|
|
|
|
2021-07-02 18:55:55 +00:00
|
|
|
$(DOMELIB_OUT): $(DOMELIB_BIN)/bios.dat $(DOMELIB_BIN)/dome.dat $(DOMELIB_BIN)/loader.dat $(DOMELIB_BIN)/makelib.com $(DOMELIB_BIN)/menu.dat $(DOMELIB_BIN)/mmenu.dat
|
|
|
|
@echo === Generating autoexec.bat for command
|
2024-09-07 13:36:28 +00:00
|
|
|
$(call mb-make-call,mb-autoexec-write-default,$(DOMELIB_BIN))
|
|
|
|
$(call mb-make-call,mb-autoexec-append-echo,$(DOMELIB_BIN),Setup timeout for makelib)
|
|
|
|
$(call mb-make-call,mb-autoexec-append-cmd,$(DOMELIB_BIN),omsxctl fail_after 120 seconds failed_makelib 126)
|
|
|
|
$(call mb-make-call,mb-autoexec-append-echo,$(DOMELIB_BIN),Running command makelib)
|
|
|
|
$(call mb-make-call,mb-autoexec-append-cmd,$(DOMELIB_BIN),makelib)
|
|
|
|
$(call mb-make-call,mb-autoexec-append-exit,$(DOMELIB_BIN))
|
|
|
|
$(call mb-make-call,mb-openmsx-dosctl,$(DOMELIB_BIN))
|
2024-07-10 21:00:29 +00:00
|
|
|
|