mirror of https://github.com/wwarthen/RomWBW.git
Browse Source
- Update TastyBasic to build correctly under MacOS. - Updated build to integrate with RomWBW build system.pull/273/head
8 changed files with 21 additions and 43 deletions
@ -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) |
|||
Loading…
Reference in new issue