mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
Build Tweaks
- Update TastyBasic to build correctly under MacOS. - Updated build to integrate with RomWBW build system.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user