view 3rdparty/packages/basic09/makefile @ 659:0e6a4a6486a0

I've learned now that syscall does NOT change for either 6809 or 6309
author boisy
date Sat, 21 Dec 2002 16:34:38 +0000
parents 0ff357df35c5
children 707d46fced97
line wrap: on
line source

include ../../../Makefile.rules

DISK	= basic09v010100.dsk

# NitrOS-9
H6309		= $(AFLAGS) -aH6309=1
# Non-NitrOS-9
M6809		= $(AFLAGS)

DEPENDS		= ./Makefile

TXTFILES	= ReadMe install6809 install6309
OBJS		= gfx inkey syscall
OBJS6809	= basic09_6809 runb_6809
OBJS6309	= basic09_6309 runb_6309
ALLOBJS		= $(OBJS) $(OBJS6809) $(OBJS6309)

all:	$(ALLOBJS) $(DEPENDS)
	$(UNIX2OS9) $(TXTFILES)
	$(CHMOD) 755 $(ALLOBJS)

basic09_6309: basic09.asm
	$(AS) $(ASOUT)$@ $< $(H6309)

basic09_6809: basic09.asm
	$(AS) $(ASOUT)$@ $< $(M6809)

runb_6309: runb.asm
	$(AS) $(ASOUT)$@ $< $(H6309)

runb_6809: runb.asm
	$(AS) $(ASOUT)$@ $< $(M6809)

clean: dskclean
	$(RM) $(ALLOBJS)
	$(OS92UNIX) $(TXTFILES)

dsk:	all
	$(RM) $(DISK)
	$(OS9FORMAT) $(DISK) -n"Basic09"
	$(MAKDIR) $(DISK),CMDS
	$(CP) $(ALLOBJS) $(DISK),CMDS
	$(CP) $(TXTFILES) $(DISK),.

dskclean:
	-$(RM) $(DISK)