mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
932 B
32 lines
932 B
UNAME := $(shell uname)
|
|
VER := $(shell git describe --tags --abbrev=0)
|
|
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 clobber:
|
|
@rm -f *.lst *.img *.com *.bin $(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)
|
|
|