annotate rules.mak @ 559:33f12fe91048

Bin tools are now from /usr/local/bin
author boisy
date Thu, 31 Oct 2002 15:22:39 +0000
parents e81cac091c79
children e976b5e44bef
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
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
3 # These macros should change according to where the base directory of the
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
4 # OS-9 source tree is located
379
5f44464f7a4b Made smarter about home dir and bin locations
boisy
parents: 378
diff changeset
5 BASEDIR = $(HOME)/os9
559
33f12fe91048 Bin tools are now from /usr/local/bin
boisy
parents: 502
diff changeset
6 OS9TOOLSDIR = /usr/local/bin
379
5f44464f7a4b Made smarter about home dir and bin locations
boisy
parents: 378
diff changeset
7 DEFDIR = $(BASEDIR)/defs
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
8
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
9
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
10 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE ####################
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
11
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
12
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 # If we're using the OS-9 emulator and the *real* OS-9 assembler,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 # uncomment the following two lines.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 #AS = os9 /mnt2/src/ocem/os9/asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 #ASOUT = o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 # Use the cross assembler
379
5f44464f7a4b Made smarter about home dir and bin locations
boisy
parents: 378
diff changeset
19 AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 ASOUT = -o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 AFLAGS = -q
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 # Commands
374
9e94ed22cdc2 Slight additions
boisy
parents: 362
diff changeset
24 MAKDIR = $(OS9TOOLSDIR)/os9makdir
224
d5c4d7584bb6 Added -f to rm
boisy
parents: 108
diff changeset
25 RM = rm -f
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 MERGE = cat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 ECHO = echo
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
28 CD = cd
374
9e94ed22cdc2 Slight additions
boisy
parents: 362
diff changeset
29 CP = $(OS9TOOLSDIR)/os9copy
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
30 TAR = tar
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 CHMOD = chmod
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
32 IDENT = $(OS9TOOLSDIR)/os9ident
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
33 IDENT_SHORT = $(IDENT) -s
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
34 UNIX2OS9 = $(OS9TOOLSDIR)/u2o
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
35 OS92UNIX = $(OS9TOOLSDIR)/o2u
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
36 OS9FORMAT = $(OS9TOOLSDIR)/os9format
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
37 OS9GEN = $(OS9TOOLSDIR)/os9gen
502
e81cac091c79 Added OS9RENAME macro
boisy
parents: 379
diff changeset
38 OS9RENAME = $(OS9TOOLSDIR)/os9rename
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
39 PADROM = $(OS9TOOLSDIR)/os9padrom
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
40 MOUNT = sudo mount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
41 UMOUNT = sudo umount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
42 LOREMOVE = sudo /sbin/losetup -d
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
43 LOSETUP = sudo /sbin/losetup
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
44 LINK = ln
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
45 SOFTLINK = $(LINK) -s
374
9e94ed22cdc2 Slight additions
boisy
parents: 362
diff changeset
46 ZIP = zip -D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
48 # Directories
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
49 3RDPARTY = $(BASEDIR)/3rdparty
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
50 LEVEL1 = $(BASEDIR)/level1
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
51 LEVEL2 = $(BASEDIR)/level2v3
378
a924d7ea682b Added NitrOS-9 Level Two macros
boisy
parents: 374
diff changeset
52 NLEVEL2 = $(BASEDIR)/nitros
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
53
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 # File managers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 %.mn: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 # Device drivers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 %.dr: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 # Device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 %.dd: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 # Window device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 %.dw: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 # Terminal device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 %.dt: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 # I/O subroutines
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 %.io: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 # 60Hz clocks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 %.60hz: %.asm
63
4ceb0578f0d1 Changed TkPerSec to TPS
boisy
parents: 0
diff changeset
80 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 # 50Hz clocks
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 %.50hz: %.asm
63
4ceb0578f0d1 Changed TkPerSec to TPS
boisy
parents: 0
diff changeset
84 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 # All other modules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 %: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89