annotate rules.mak @ 306:c863af5b4ea1

init.asm: extended (see os9defs( os9.asm: added code to set D.CRC based on flag in init module
author boisy
date Mon, 22 Jul 2002 23:15:21 +0000
parents ce65a48362d5
children 2a7bfa7ce709
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 # Rules for making OS-9/6X09 modules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
3 # This macro should change according to where the base directory of the
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
4 # OS-9 source tree is located
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
5 BASEDIR = /home/boisy/os9
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
6
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 # If we're using the OS-9 emulator and the *real* OS-9 assembler,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 # uncomment the following two lines.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 #AS = os9 /mnt2/src/ocem/os9/asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 #ASOUT = o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 # Use the cross assembler
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 AS = os9asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 ASOUT = -o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 AFLAGS = -q
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 # Commands
224
d5c4d7584bb6 Added -f to rm
boisy
parents: 108
diff changeset
18 RM = rm -f
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 MERGE = cat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 PADROM = os9padrom
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 ECHO = echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 CHMOD = chmod
94
41d00dbe5f9a Added IDENT and IDENT_SHORT macros
boisy
parents: 63
diff changeset
23 IDENT = os9ident
41d00dbe5f9a Added IDENT and IDENT_SHORT macros
boisy
parents: 63
diff changeset
24 IDENT_SHORT = os9ident -s
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
25 UNIX2OS9 = $(BASEDIR)/hosttools/u2o
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
26 OS92UNIX = $(BASEDIR)/hosttools/o2u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 # File managers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 %.mn: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 # Device drivers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 %.dr: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 # Device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 %.dd: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 # Window device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 %.dw: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 # Terminal device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 %.dt: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 # I/O subroutines
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 %.io: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 # 60Hz clocks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 %.60hz: %.asm
63
4ceb0578f0d1 Changed TkPerSec to TPS
boisy
parents: 0
diff changeset
54 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 # 50Hz clocks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 %.50hz: %.asm
63
4ceb0578f0d1 Changed TkPerSec to TPS
boisy
parents: 0
diff changeset
58 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 # All other modules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 %: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63