2019-04-26 06:03:45 +10:00
|
|
|
TARGET = os.bin
|
2020-01-01 07:07:39 +11:00
|
|
|
BASEDIR = ../..
|
2020-04-05 01:31:22 +11:00
|
|
|
FDIR = $(BASEDIR)/forth
|
|
|
|
EDIR = $(BASEDIR)/emul/forth
|
|
|
|
STAGE2 = $(EDIR)/stage2
|
2020-01-03 08:59:38 +11:00
|
|
|
EMUL = $(BASEDIR)/emul/hw/rc2014/classic
|
2020-04-05 01:31:22 +11:00
|
|
|
PATHS = pre.fs \
|
|
|
|
$(FDIR)/core.fs \
|
2020-04-08 11:23:42 +10:00
|
|
|
$(FDIR)/cmp.fs \
|
2020-04-05 01:31:22 +11:00
|
|
|
$(FDIR)/str.fs \
|
|
|
|
$(FDIR)/parse.fs \
|
2020-04-03 14:21:53 +11:00
|
|
|
$(BASEDIR)/drv/acia.fs \
|
2020-04-05 01:31:22 +11:00
|
|
|
$(FDIR)/print.fs \
|
2020-04-05 04:27:23 +10:00
|
|
|
$(FDIR)/readln.fs \
|
|
|
|
$(FDIR)/fmt.fs \
|
2020-04-05 01:31:22 +11:00
|
|
|
run.fs
|
2020-04-03 14:21:53 +11:00
|
|
|
SLATEST = $(BASEDIR)/tools/slatest
|
2020-04-05 01:31:22 +11:00
|
|
|
STRIPFC = $(BASEDIR)/tools/stripfc
|
2019-04-26 06:03:45 +10:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-04-03 14:21:53 +11:00
|
|
|
all: $(TARGET)
|
2020-04-05 01:31:22 +11:00
|
|
|
$(TARGET): boot.bin z80c.bin $(SLATEST) $(PATHS)
|
|
|
|
cat boot.bin z80c.bin > $@
|
2020-04-03 14:21:53 +11:00
|
|
|
$(SLATEST) $@
|
2020-04-05 01:31:22 +11:00
|
|
|
cat $(PATHS) | $(STRIPFC) >> $@
|
2020-04-03 14:21:53 +11:00
|
|
|
|
2020-04-05 01:31:22 +11:00
|
|
|
z80c.bin: boot.bin
|
|
|
|
cat conf.fs $(FDIR)/z80c.fs $(BASEDIR)/drv/acia.z80 $(FDIR)/icore.fs | $(STAGE2) | tee $@ > /dev/null
|
|
|
|
|
|
|
|
boot.bin: conf.fs
|
|
|
|
cat conf.fs $(FDIR)/boot.fs | $(STAGE2) | tee $@ > /dev/null
|
2020-04-03 14:21:53 +11:00
|
|
|
|
|
|
|
$(SLATEST):
|
|
|
|
$(MAKE) -C $(BASEDIR)/tools
|
2020-01-03 08:59:38 +11:00
|
|
|
|
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/classic=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|