2022-04-01 23:10:56 +00:00
|
|
|
|
2022-04-30 21:07:46 +00:00
|
|
|
fbfiles = $(wildcard *.fb)
|
|
|
|
fthfiles = $(patsubst %.fb, %.fth, $(fbfiles))
|
2022-04-01 23:10:56 +00:00
|
|
|
|
2022-04-30 21:07:46 +00:00
|
|
|
whitch_runcpm = $(shell which RunCPM)
|
|
|
|
runcpmdir = runcpm
|
|
|
|
cpmfilesdir = cpmfiles
|
|
|
|
|
|
|
|
fth: $(fthfiles)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.log
|
|
|
|
rm -rf $(runcpmdir)
|
|
|
|
rm -f msdos
|
|
|
|
|
|
|
|
run-editor: | msdos
|
2022-04-01 23:10:56 +00:00
|
|
|
FORTHPATH="f:\\;f:\\msdos" ../../8086/msdos/emulator/run-in-dosbox.sh f:\\msdos\\volks4th.com
|
|
|
|
|
|
|
|
msdos:
|
|
|
|
ln -s ../../8086/msdos msdos
|
|
|
|
|
|
|
|
%.fth: %.fb ../../tools/fb2fth.py
|
|
|
|
../../tools/fb2fth.py $< $@
|
2022-04-30 21:07:46 +00:00
|
|
|
|
2023-05-07 09:02:47 +00:00
|
|
|
inctest.log: $(patsubst %, $(cpmfilesdir)/%, \
|
|
|
|
volks4th.com include.fb inctest.fth) \
|
2022-04-30 21:07:46 +00:00
|
|
|
| emu
|
|
|
|
echo "volks4th" > $(runcpmdir)/input.script
|
|
|
|
echo "include include.fb" >> $(runcpmdir)/input.script
|
2023-05-07 09:02:47 +00:00
|
|
|
echo "xinclude inctest.fth" >> $(runcpmdir)/input.script
|
2022-04-30 21:07:46 +00:00
|
|
|
echo "bye" >> $(runcpmdir)/input.script
|
|
|
|
echo "exit" >> $(runcpmdir)/input.script
|
|
|
|
./emulator/run-in-runcpm.sh volks4th
|
|
|
|
cp $(runcpmdir)/output.log $@
|
|
|
|
|
|
|
|
emu: $(runcpmdir)/RunCPM
|
|
|
|
|
|
|
|
$(runcpmdir)/RunCPM: $(whitch_runcpm)
|
|
|
|
test -d $(runcpmdir) || mkdir -p $(runcpmdir)
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
$(cpmfilesdir)/%: %
|
|
|
|
test -d $(cpmfilesdir) || mkdir -p $(cpmfilesdir)
|
|
|
|
cp $< $@
|