annotate level2/coco3_6309/cmds/makefile @ 2051:a45c8cabc60e

6309ized
author boisy
date Sun, 23 Apr 2006 19:24:03 +0000
parents d63587190d9b
children d5824ed9c767
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2048
boisy
parents:
diff changeset
1 PORT = coco3
boisy
parents:
diff changeset
2 include $(NITROS9DIR)/rules.mak
boisy
parents:
diff changeset
3
2050
d63587190d9b For porting
boisy
parents: 2048
diff changeset
4 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09
2048
boisy
parents:
diff changeset
5
boisy
parents:
diff changeset
6 DEPENDS = ./makefile
2051
a45c8cabc60e 6309ized
boisy
parents: 2050
diff changeset
7 AFLAGS += -e -aH6309=1
2048
boisy
parents:
diff changeset
8
boisy
parents:
diff changeset
9 CMDS = asm attr backup binex build cmp cobbler copy cputype \
boisy
parents:
diff changeset
10 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \
boisy
parents:
diff changeset
11 display dmem dmode dsave dump echo edit error exbin \
boisy
parents:
diff changeset
12 format free grfdrv help ident iniz irqs link list load login \
boisy
parents:
diff changeset
13 makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \
boisy
parents:
diff changeset
14 pmap proc procs prompt pwd pxd reboot rename runb save setime \
boisy
parents:
diff changeset
15 shell_21 sleep smap tee tmode touch \
boisy
parents:
diff changeset
16 tsmon tuneport unlink verify wcreate xmode
boisy
parents:
diff changeset
17 SUBS = gfx2 gfx inkey syscall
boisy
parents:
diff changeset
18
boisy
parents:
diff changeset
19 SHELLMODS = shellplus date deiniz echo iniz link load save unlink
boisy
parents:
diff changeset
20 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \
boisy
parents:
diff changeset
21 merge mfree procs rename tmode
boisy
parents:
diff changeset
22
boisy
parents:
diff changeset
23 # Files not compilable by os9asm: config
boisy
parents:
diff changeset
24 all: $(SUBS) $(CMDS) shell utilpak1 $(DEPENDS)
boisy
parents:
diff changeset
25
boisy
parents:
diff changeset
26 runb: runb.asm
boisy
parents:
diff changeset
27 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
boisy
parents:
diff changeset
28 $(MERGE) $@ $(SUBS)>$@.tmp
boisy
parents:
diff changeset
29 $(RM) $@
boisy
parents:
diff changeset
30 $(MOVE) $@.tmp $@
boisy
parents:
diff changeset
31
boisy
parents:
diff changeset
32 tmode: xmode.asm
boisy
parents:
diff changeset
33 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1
boisy
parents:
diff changeset
34
boisy
parents:
diff changeset
35 xmode: xmode.asm
boisy
parents:
diff changeset
36 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1
boisy
parents:
diff changeset
37
boisy
parents:
diff changeset
38 pwd: pd.asm
boisy
parents:
diff changeset
39 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1
boisy
parents:
diff changeset
40
boisy
parents:
diff changeset
41 pxd: pd.asm
boisy
parents:
diff changeset
42 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1
boisy
parents:
diff changeset
43
boisy
parents:
diff changeset
44 shell: $(SHELLMODS) $(DEPENDS)
boisy
parents:
diff changeset
45 $(MERGE) $(SHELLMODS)>$@
boisy
parents:
diff changeset
46 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
boisy
parents:
diff changeset
47 @ls -l $@
boisy
parents:
diff changeset
48 @$(ECHO) ""
boisy
parents:
diff changeset
49
boisy
parents:
diff changeset
50 utilpak1: $(UTILPAK1) $(DEPENDS)
boisy
parents:
diff changeset
51 $(MERGE) $(UTILPAK1)>$@
boisy
parents:
diff changeset
52 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
boisy
parents:
diff changeset
53 @ls -l $@
boisy
parents:
diff changeset
54 @$(ECHO) ""
boisy
parents:
diff changeset
55
boisy
parents:
diff changeset
56 clean:
boisy
parents:
diff changeset
57 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS)
boisy
parents:
diff changeset
58
boisy
parents:
diff changeset
59 # Only $(CMDS) are shown here
boisy
parents:
diff changeset
60 showobjs:
boisy
parents:
diff changeset
61 @$(ECHO) shell utilpak1 $(CMDS)
boisy
parents:
diff changeset
62
boisy
parents:
diff changeset
63 identify:
boisy
parents:
diff changeset
64 $(IDENT_SHORT) $(ALLOBJS)