view level1/d64/cmds/makefile @ 3293:aa5c87cbbd32

level1 makefiles: Separate basic09 module lists The BASIC09FILES define was no more in use, however, separating out the basic09 modules (originally from 3rdparty) makes sense. The separate SUBS define was less obvious. The resulting disk images have been tested to be the same, except for d64 and dalpha images where they got more consistent.
author Tormod Volden <debian.tormod@gmail.com>
date Thu, 23 Sep 2021 23:23:35 +0200
parents a418110ecb44
children
line wrap: on
line source

ifeq ($(PORT),)
        PORT=d64
endif
include $(NITROS9DIR)/rules.mak

vpath %.asm $(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09

DEPENDS		= ./makefile

CMDS		= asm attr backup binex build cmp cobbler cobbler_dragon copy cputype \
		date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
		display dmode dsave dump echo edit error exbin format \
		free grfdrv help ident iniz irqs link list load login makdir \
		megaread mdir merge mfree minted mpi os9gen padrom park printerr procs prompt pwd pxd \
		rename save setime shellplus shell_21 sleep \
		tee tmode touch tsmon tuneport unlink verify xmode

DRAGON525CMDS	= asm attr backup binex build cmp cobbler_dragon copy date del deldir \
		dir display dmode dsave dump echo exbin format free ident link list \
		load login makdir mdir merge mfree os9gen printerr procs pwd pxd rename \
		save setime shell_21 sleep tee tmode tsmon unlink verify xmode

DRAGON525CMDS2	= cputype dcheck debug ded deiniz devs dirsort disasm edit error \
		grfdrv help iniz irqs megaread mpi padrom park prompt \
		shellplus touch tuneport

BASIC09		= runb gfx inkey syscall

ALLOBJS		= $(CMDS) $(BASIC09)

all:	$(ALLOBJS)

pwd:	pd.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1

xmode:	xmode.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1

tmode:	xmode.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1

pxd:	pd.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1
	
cobbler_dragon: cobbler.asm
	$(AS) $(AFLAGS) $< $(ASOUT)cobbler_dragon -DDRAGON=1

clean:
	$(RM) $(ALLOBJS)

identify:
	$(IDENT_SHORT) $(ALLOBJS)

showdragonobjs:
	@$(ECHO) $(CMDS) $(BASIC09)

showdragon525objs:
	@$(ECHO) $(DRAGON525CMDS) $(BASIC09)

showdragon525objs2:
	@$(ECHO) $(DRAGON525CMDS2)