2019-04-26 06:03:45 +10:00
|
|
|
TARGET = os.bin
|
2020-01-01 07:07:39 +11:00
|
|
|
BASEDIR = ../..
|
2020-04-03 14:21:53 +11:00
|
|
|
FDIR = $(BASEDIR)/emul/forth
|
|
|
|
STAGE1 = $(FDIR)/stage1
|
|
|
|
FORTH0 = $(FDIR)/forth0.bin
|
2020-01-03 08:59:38 +11:00
|
|
|
EMUL = $(BASEDIR)/emul/hw/rc2014/classic
|
2020-04-03 14:21:53 +11:00
|
|
|
SRCS = core.fs str.fs parse.fs readln.fs fmt.fs
|
|
|
|
PATHS = conf.fs \
|
|
|
|
${SRCS:%=$(BASEDIR)/forth/%} \
|
|
|
|
$(BASEDIR)/drv/acia.fs \
|
|
|
|
run.fs \
|
|
|
|
$(FDIR)/stop.fs
|
|
|
|
SLATEST = $(BASEDIR)/tools/slatest
|
2019-04-26 06:03:45 +10:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-04-03 14:21:53 +11:00
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): dict.bin $(FORTH0) $(SLATEST)
|
|
|
|
cat $(FORTH0) dict.bin > $@
|
|
|
|
$(SLATEST) $@
|
|
|
|
|
|
|
|
dict.bin: conf.fs
|
|
|
|
cat $(PATHS) | $(STAGE1) > $@
|
|
|
|
|
|
|
|
$(SLATEST):
|
|
|
|
$(MAKE) -C $(BASEDIR)/tools
|
2020-01-03 08:59:38 +11:00
|
|
|
|
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/classic=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|