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