1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 09:48:05 +11:00
collapseos/recipes/rc2014/Makefile

49 lines
891 B
Makefile
Raw Normal View History

TARGET = stage1.bin
BASEDIR = ../..
2020-04-05 01:31:22 +11:00
FDIR = $(BASEDIR)/forth
EDIR = $(BASEDIR)/emul/forth
STAGE2 = $(EDIR)/stage2
EMUL = $(BASEDIR)/emul/hw/rc2014/classic
BOOTSRCS = conf.fs \
$(FDIR)/xcomp.fs \
$(EDIR)/xcomp.fs \
$(FDIR)/boot.fs \
$(FDIR)/z80c.fs \
$(BASEDIR)/drv/acia.z80 \
$(FDIR)/icore.fs \
$(EDIR)/xstop.fs
PATHS = \
2020-04-05 01:31:22 +11:00
$(FDIR)/core.fs \
$(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)/fmt.fs \
2020-04-12 06:38:45 +10:00
$(FDIR)/link.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
.PHONY: all
2020-04-03 14:21:53 +11:00
all: $(TARGET)
$(TARGET): z80c.bin $(SLATEST) $(PATHS)
cp 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
z80c.bin: conf.fs
cat $(BOOTSRCS) | $(STAGE2) > $@
2020-04-03 14:21:53 +11:00
$(SLATEST):
$(MAKE) -C $(BASEDIR)/tools
$(EMUL):
$(MAKE) -C ${@:%/classic=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)