forked from MirrorRepos/RomWBW
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.
60 lines
1.5 KiB
60 lines
1.5 KiB
#
|
|
# this makefile does double duty. it serves as the top level make
|
|
# and as the invoked make for the different ways that the cpm3 is built
|
|
#
|
|
# it does this by overriding OBJECTS in an invoked sub-make
|
|
#
|
|
OBJECTS = cpmldr.com cpm3res cpm3bnk zpmbios3
|
|
OTHERS = cpmldr.rel biosldr.rel cpm3res.sys cpm3bnk.sys zpmbios3.spr
|
|
|
|
TOOLS = ../../Tools
|
|
include $(TOOLS)/Makefile.inc
|
|
|
|
BIOSOBJS = bioskrnl.rel scb.rel boot.rel chario.rel
|
|
BIOSOBJS += move.rel drvtbl.rel diskio.rel
|
|
COMMA := ,
|
|
NULL :=
|
|
SPACE := $(NULL) $(NULL)
|
|
BIOSNAMES := $(subst $(SPACE),$(COMMA),$(basename $(BIOSOBJS)))
|
|
|
|
clean:: biosclean
|
|
rm -f bios3.spr bnkbios3.spr zpmbios3.spr cpmldr.com gencpm.dat options.lib
|
|
|
|
biosclean:
|
|
rm -f $(BIOSOBJS)
|
|
|
|
cpm3res:
|
|
make biosclean
|
|
cp optres.lib options.lib
|
|
cp genres.dat gencpm.dat
|
|
make OBJECTS=bios3.spr
|
|
$(ZXCC) gencpm -auto -display
|
|
mv cpm3.sys cpm3res.sys
|
|
|
|
cpm3bnk:
|
|
make biosclean
|
|
cp optbnk.lib options.lib
|
|
cp genbnk.dat gencpm.dat
|
|
make OBJECTS=bnkbios3.spr
|
|
$(ZXCC) gencpm -auto -display
|
|
mv cpm3.sys cpm3bnk.sys
|
|
|
|
zpmbios3:
|
|
make biosclean
|
|
cp optzpm.lib options.lib
|
|
cp genbnk.dat gencpm.dat
|
|
make OBJECTS=zpmbios3.spr
|
|
|
|
bios3.spr: $(BIOSOBJS)
|
|
$(ZXCC) $(CPM)/LINK -bios3[OS]=$(BIOSNAMES)
|
|
|
|
bnkbios3.spr: $(BIOSOBJS)
|
|
$(ZXCC) $(CPM)/LINK -bnkbios3[B]=$(BIOSNAMES)
|
|
|
|
zpmbios3.spr: $(BIOSOBJS)
|
|
$(ZXCC) $(TOOLS)/cpm/bin/LINK -zpmbios3[B]=$(BIOSNAMES)
|
|
|
|
cpmldr.com: cpmldr.rel biosldr.rel
|
|
$(ZXCC) $(TOOLS)/cpm/bin/LINK -cpmldr[L100]=cpmldr,biosldr
|
|
rm -f cpmldr.sym
|
|
|
|
|