annotate os9/level1/Makefile @ 161:91447c3ccd58

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 12 Feb 2019 09:16:24 +0900
parents dc4c7e7ec5c9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
1
41
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
2 OS9SRC = ../nitros9-code
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
3 SRCDIR = $(OS9SRC)/level1/modules
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
4 SRCCMD = $(OS9SRC)/level1/cmds
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
5 SRCDIR2 = $(OS9SRC)/level2/modules
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
6
94
f20bf9874697 fix os9 dir
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 71
diff changeset
7 A09 = ../../src/a09 -I $(OS9SRC)/defs/
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
8
56
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
9 MOD = pdisk init os9p1 os9p2 ioman pipe piper rbf scf term pty d0 d1 vrbf v0 clock shell dir mdir sysgo shell
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
157
dc4c7e7ec5c9 some free makes error on Linux
kono
parents: 151
diff changeset
11 all : ${MOD} TL1 mc09
71
eb9be32c701c fix leval
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 57
diff changeset
12 cd cmds; make
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
13
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
14 clean :
71
eb9be32c701c fix leval
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 57
diff changeset
15 cd cmds; make clean
161
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 157
diff changeset
16 rm -f $(MOD) *.lst krn.asm mc09
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
17
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
18 LST = -l $@.lst
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
19
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
20 # our own module for sbc09
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
21 # CoCoOS9's level1/os9p1.asm has wrong vector value, use our own
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
23 pdisk :
41
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
24 $(A09) pdisk.asm -o pdisk $(LST)
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
25
37
7baffb867d70 nitros9 level 1 worked
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 33
diff changeset
26 #boot : boot.asm
7baffb867d70 nitros9 level 1 worked
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 33
diff changeset
27 # $(A09) boot.asm -o boot $(LST)
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
28
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
29 init : init.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
30 $(A09) ${SRCDIR}/init.asm -o $@ $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
31 # $(A09) init.asm -o init $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
32
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
33 pty : pty.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
34 $(A09) pty.asm -o pty $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
35
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
36 term : pty-dd.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
37 $(A09) pty-dd.asm -o term $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
38
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
39 d0 : d0.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
40 $(A09) d0.asm -o d0 $(LST)
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
42 d1 : d1.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
43 $(A09) d1.asm -o d1 $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
44
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
45 clock : clock.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
46 $(A09) clock.asm -o clock $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
47
56
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
48 vrbf :
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
49 $(A09) ../level2/vrbf.asm -o $@ $(LST)
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
50
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
51 v0 :
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
52 $(A09) v0.asm -o $@ $(LST)
4fa2bdb0c457 level vrbf and clock
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 41
diff changeset
53
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
54 # os9 level1 moduels
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
41
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
56 shell : $(SRCCMD)/shell_21.asm
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
57 $(A09) $< -o $@ $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
58
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
59 mdir : ${SRCCMD}/mdir.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
60 $(A09) $< -o $@ $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
61
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
62 dir : ${SRCCMD}/dir.asm
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
63 $(A09) ${SRCCMD}/dir.asm -o dir $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
64
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
65 os9p1 :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
66 cat ${OS9SRC}//defs/coco.d ${SRCDIR}/kernel/krn.asm > krn.asm
41
0d570c55ebd4 fix for hg cloned nistros 9 code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 37
diff changeset
67 $(A09) -I ../nitros9-code/level1/modules/kernel/ krn.asm -o os9p1 $(LST)
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
69 os9p2 :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
70 $(A09) ${SRCDIR}/kernel/krnp2.asm -o os9p2 $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
71
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
72 sysgo :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
73 $(A09) sysgo.asm -o sysgo $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
74
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
75 ioman :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
76 $(A09) ${SRCDIR}/ioman.asm -o ioman $(LST)
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
77
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
78 pipe :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
79 $(A09) ${SRCDIR}/pipe.asm -o pipe $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
80
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
81 piper :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
82 $(A09) ${SRCDIR}/piper.asm -o piper $(LST)
31
bd2b07db8917 CoCoOS9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83
33
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
84 rbf :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
85 $(A09) ${SRCDIR}/rbf.asm -o rbf $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
86
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
87 scf :
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
88 $(A09) ${SRCDIR}/scf.asm -o scf $(LST)
7c5379eb406e nitors9 version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
89
151
ef5959682d03 fix for linux
kono
parents: 94
diff changeset
90 TL1 :
ef5959682d03 fix for linux
kono
parents: 94
diff changeset
91 ln -s ../../TL1 .
161
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 157
diff changeset
92
157
dc4c7e7ec5c9 some free makes error on Linux
kono
parents: 151
diff changeset
93 mc09 :
dc4c7e7ec5c9 some free makes error on Linux
kono
parents: 151
diff changeset
94 ln -s ../mc09 .