changeset 3006:ba5504f3bd5a

level3 makefiles: Merge cmds makefiles Only whitespace was different, and CPU flag.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 26 Oct 2014 16:40:52 +0100
parents 09de6790d164
children 3465c6c0e537
files level3/coco3_6309/cmds/makefile
diffstat 1 files changed, 2 insertions(+), 68 deletions(-) [+]
line wrap: on
line diff
--- a/level3/coco3_6309/cmds/makefile	Sun Oct 26 16:40:51 2014 +0100
+++ b/level3/coco3_6309/cmds/makefile	Sun Oct 26 16:40:52 2014 +0100
@@ -1,68 +1,2 @@
-PORT = coco3
-include $(NITROS9DIR)/rules.mak
-
-vpath %.asm $(LEVEL3)/cmds:$(LEVEL2)/cmds:$(LEVEL1)/cmds:$(NITROS9DIR)/3rdparty/packages/basic09
-
-DEPENDS		= ./makefile
-AFLAGS		+= -DH6309=1 -I=$(NITROS9DIR)/3rdparty/packages/basic09
-
-CMDS	= asm attr backup binex build cmp cobbler copy cputype \
-		date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
-		display dmem dmode dsave dump echo edit error exbin \
-		format free grfdrv help ident iniz irqs link list load login \
-		makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \
-		pmap proc procs prompt pwd pxd reboot rename save setime \
-		shell_21 sleep smap sfree tee tmode touch tsmon tuneport unlink verify wcreate xmode
-
-CMDS_D2		= basic09 runb gfx2 gfx inkey syscall copy del echo format \
-		merge os9gen prompt tmode
-
-SHELLMODS	= shellplus date deiniz echo iniz link load save unlink
-UTILPAK1	= attr build copy del deldir dir display list makdir mdir \
-		merge mfree procs rename tmode
-
-# Files not compilable by os9asm: config
-all:	$(CMDS) $(CMDS_D2) shell utilpak1 $(DEPENDS)
-
-runb:	runb.asm
-	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1
-	$(MERGE) $@ $(SUBS)>$@.tmp
-	$(RM) $@
-	$(MOVE) $@.tmp $@
-
-tmode:	xmode.asm
-	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1
-
-xmode:	xmode.asm
-	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1
-
-pwd:	pd.asm
-	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1
-
-pxd:	pd.asm
-	$(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1
-
-shell:	$(SHELLMODS) $(DEPENDS)
-	$(MERGE) $(SHELLMODS)>$@
-	@$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
-	@ls -l $@
-	@$(ECHO) ""
-
-utilpak1:	$(UTILPAK1) $(DEPENDS)
-		$(MERGE) $(UTILPAK1)>$@
-		@$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
-		@ls -l $@
-		@$(ECHO) ""
-
-clean:
-	$(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2)
-
-# Only $(CMDS) are shown here
-showobjs:
-	@$(ECHO) shell utilpak1 $(CMDS)
-
-showobjs_d2:
-	@$(ECHO) $(CMDS_D2)
-
-identify:
-	$(IDENT_SHORT) $(ALLOBJS)
+include ../../coco3/cmds/makefile
+AFLAGS += -DH6309=1