Build Tweaks

- Update TastyBasic to build correctly under MacOS.
- Updated build to integrate with RomWBW build system.
This commit is contained in:
Wayne Warthen
2021-10-31 12:26:46 -07:00
parent 725151cdc5
commit 6a69f3920f
8 changed files with 21 additions and 43 deletions

View File

@@ -1,9 +1,3 @@
SUBDIRS := src
TARGETS := all clobber clean
$(TARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TARGETS) $(SUBDIRS)
SUBDIRS = src
TOOLS = ../../Tools
include $(TOOLS)/Makefile.inc

View File

@@ -1,36 +1,16 @@
UNAME := $(shell uname)
# VER := $(shell git describe --tags --abbrev=0)
APPDIR := $(wildcard ../../../Binary/Apps)
BINDIR := ../../../Tools/$(UNAME)
OBJECTS = tastybasic.bin tbasic.com
TOOLS = ../../../Tools
OTHERS = *.com
APPDIR=../../../Binary/Apps
include $(TOOLS)/Makefile.inc
ROMIMAGE := tastybasic.bin
ROMDEPS := tastybasic.asm romwbwio.asm
CPMCMD := tastybasic.com
CPMDEPS := tastybasic.asm cpmio.asm
CPMAPP := $(APPDIR)/tbasic.com
CPMIMAGE := tastybasic.img
USETASM=1
export PATH := $(BINDIR):${PATH}
tastybasic.bin: TASMFLAGS=-dROMWBW
all: $(ROMIMAGE) $(CPMCMD) | $(APPDIR)
tastybasic.com: TASMFLAGS=-dCPM
clean:
@rm -f *.lst *.img *.com *.bin
clobber: clean
@rm -f $(CPMAPP)
$(ROMIMAGE): $(ROMDEPS)
@uz80as -dROMWBW 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 tastybasic.asm tastybasic.com tastybasic.com.lst
$(APPDIR): $(CPMCMD)
@cat $(CPMCMD) > $(CPMAPP)
.PHONY: clean clobber $(APPDIR)
tbasic.com : tastybasic.com
cp $< $@
cp $$($(CASEFN) $@) $(APPDIR)