Files
Pegasys-RomWBW/Source/TastyBasic/src/Makefile
2021-11-01 08:13:01 +00:00

38 lines
1007 B
Makefile

# git@github.com:dimitrit/tastybasic.git; commit a86d7e7; (HEAD -> master, tag: v0.3.0)
VER := \"v0.3.0\"
UNAME := $(shell uname)
APPDIR := $(wildcard ../../../Binary/Apps)
BINDIR := ../../../Tools/$(UNAME)
ROMIMAGE := tastybasic.bin
ROMDEPS := tastybasic.asm romwbwio.asm
CPMCMD := tastybasic.com
CPMDEPS := tastybasic.asm cpmio.asm
CPMAPP := $(APPDIR)/tbasic.com
CPMIMAGE := tastybasic.img
export PATH := $(BINDIR):${PATH}
all: $(ROMIMAGE) $(CPMCMD) | $(APPDIR)
clean:
@rm -f *.lst *.img *.com *.bin
clobber: clean
@rm -f $(CPMAPP)
$(ROMIMAGE): $(ROMDEPS)
@uz80as -dROMWBW -d"VERSION $(VER)" tastybasic.asm tastybasic.bin tastybasic.bin.lst
$(CPMIMAGE): $(CPMCMD)
@mkfs.cpm -f wbw_fd144 tastybasic.img
@cpmcp -f wbw_fd144 tastybasic.img tastybasic.com 0:tbasic.com
$(CPMCMD): $(CPMDEPS)
@uz80as -dCPM -d"VERSION $(VER)" tastybasic.asm tastybasic.com tastybasic.com.lst
$(APPDIR): $(CPMCMD)
@cat $(CPMCMD) > $(CPMAPP)
.PHONY: clean clobber $(APPDIR)