43 lines
1.4 KiB
Makefile
43 lines
1.4 KiB
Makefile
|
|
||
|
DOMELIB_NAME := domelib
|
||
|
DOMELIB_SRC := $(PATH_SRC)/$(DOMELIB_NAME)
|
||
|
DOMELIB_BIN := $(PATH_BIN)/$(DOMELIB_NAME)
|
||
|
DOMELIB_OUT := $(PATH_BIN)/$(DOMELIB_NAME)/dome.000
|
||
|
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
|
||
|
|
||
|
|
||
|
$(DOMELIB_BIN):
|
||
|
$(call mod_mkdir,$(DOMELIB_BIN))
|
||
|
|
||
|
$(DOMELIB_BIN)/autoexec.bat: $(DOMELIB_SRC)/autoexec.bat | $(DOMELIB_BIN)
|
||
|
unix2dos -n $< $@;
|
||
|
|
||
|
$(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 $< $@;
|
||
|
$(DOMELIB_BIN)/makelib.com: $(PATH_BIN)/makelib/makelib.com | $(DOMELIB_BIN) gfx
|
||
|
cp $< $@;
|
||
|
cp bin/gfx/*.zop $(DOMELIB_BIN);
|
||
|
cp src/levels/*.00* $(DOMELIB_BIN);
|
||
|
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 $< $@;
|
||
|
|
||
|
$(DOMELIB_OUT): $(DOMELIB_BIN)/autoexec.bat \
|
||
|
$(DOMELIB_BIN)/bios.dat $(DOMELIB_BIN)/dome.dat $(DOMELIB_BIN)/loader.dat $(DOMELIB_BIN)/makelib.com $(DOMELIB_BIN)/menu.dat $(DOMELIB_BIN)/mmenu.dat
|
||
|
cp $(DOMELIB_BIN)/autoexec.bat $(DOMELIB_OUT)
|
||
|
$(call run_openmsx_dos2, $(DOMELIB_BIN))
|