annotate rules.mak @ 2226:3af8e9655158

The clock slow down routine for rb1773 write track has been deactivated. The code is still present in case it needs to be reinstated. RG
author robertgault
date Thu, 19 Mar 2009 10:32:41 +0000
parents 97391b69843d
children c8aeac0c5fd1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1393
033aeec93b95 Modified
boisy
parents: 1390
diff changeset
1 # The NitrOS-9 Project
033aeec93b95 Modified
boisy
parents: 1390
diff changeset
2 # Project-Wide Rules
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3
1754
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
4 # Environment variables are now used to specify any directories other
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
5 # than the defaults below:
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
6 #
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
7 # NITROS9DIR - base directory of the NitrOS-9 project on your system
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
8 #
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
9 # If the defaults below are fine, then there is no need to set any
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
10 # environment variables.
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
11
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
12
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
13 # NitrOS-9 version, major and minor release numbers are here
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
14 NOS9VER = 3
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
15 NOS9MAJ = 2
2183
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
16 NOS9MIN = 9
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
17
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
18 # Set this to 1 to turn on "DEVELOPMENT" message in sysgo
2183
d29be35a48bb makefiles updated, opcode for printing updated
boisy
parents: 2180
diff changeset
19 NOS9DBG = 1
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
20
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
21 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE ####################
1787
0af3f5f84033 Tons 'o changes
boisy
parents: 1771
diff changeset
22
1865
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
23 CC = c3
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
24
1805
beba50d7ac3e Cleaned up environment var references
boisy
parents: 1803
diff changeset
25 NITROS9VER = v0$(NOS9VER)0$(NOS9MAJ)0$(NOS9MIN)
1787
0af3f5f84033 Tons 'o changes
boisy
parents: 1771
diff changeset
26
1754
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
27 ifndef NITROS9DIR
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
28 NITROS9DIR = $(HOME)/nitros9
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
29 endif
1771
7f2e75d5b62d build improvements
boisy
parents: 1760
diff changeset
30 ifndef CLOUD9DIR
7f2e75d5b62d build improvements
boisy
parents: 1760
diff changeset
31 CLOUD9DIR = $(HOME)/cloud9
7f2e75d5b62d build improvements
boisy
parents: 1760
diff changeset
32 endif
7f2e75d5b62d build improvements
boisy
parents: 1760
diff changeset
33
7f2e75d5b62d build improvements
boisy
parents: 1760
diff changeset
34 C9 = $(CLOUD9DIR)
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1759
diff changeset
35 DEFSDIR = $(NITROS9DIR)/defs
1754
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
36 DSKDIR = $(NITROS9DIR)/dsks
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
37
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
38
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 # If we're using the OS-9 emulator and the *real* OS-9 assembler,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 # uncomment the following two lines.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 #AS = os9 /mnt2/src/ocem/os9/asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 #ASOUT = o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 # Use the cross assembler
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
45 AS = mamou -i=$(DEFSDIR)
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
46 #AS = os9asm -i=$(DEFSDIR)
1528
1c5a50add566 Megaread added
boisy
parents: 1394
diff changeset
47 ASOUT = -o
2055
e89b629e1f61 Removed makefiles
boisy
parents: 2053
diff changeset
48 AFLAGS = -q -aNOS9VER=$(NOS9VER) -aNOS9MAJ=$(NOS9MAJ) -aNOS9MIN=$(NOS9MIN) -aNOS9DBG=$(NOS9DBG)
e89b629e1f61 Removed makefiles
boisy
parents: 2053
diff changeset
49 ifdef PORT
e89b629e1f61 Removed makefiles
boisy
parents: 2053
diff changeset
50 AFLAGS += -a$(PORT)=1
e89b629e1f61 Removed makefiles
boisy
parents: 2053
diff changeset
51 endif
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52
1879
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
53 # RMA/RLINK
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
54 ASM = rma
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
55 LINKER = rlink
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
56
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 # Commands
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
58 MAKDIR = os9 makdir
224
d5c4d7584bb6 Added -f to rm
boisy
parents: 108
diff changeset
59 RM = rm -f
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 MERGE = cat
1654
f62ca34d4419 Level 2: shellplus stand-alone file is no longer copied to CMDS
boisy
parents: 1593
diff changeset
61 MOVE = mv
1123
358aeaeedea9 changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents: 1119
diff changeset
62 ECHO = /bin/echo
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
63 CD = cd
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
64 CP = os9 copy -o=0
1528
1c5a50add566 Megaread added
boisy
parents: 1394
diff changeset
65 CPL = $(CP) -l
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
66 TAR = tar
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 CHMOD = chmod
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
68 IDENT = os9 ident
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
69 IDENT_SHORT = $(IDENT) -s
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
70 #UNIX2OS9 = u2o
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
71 #OS92UNIX = o2u
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
72 OS9FORMAT = os9 format
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
73 OS9FORMAT_SS35 = os9 format -t35 -ss -dd
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
74 OS9FORMAT_SS40 = os9 format -t40 -ss -dd
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
75 OS9FORMAT_SS80 = os9 format -t80 -ss -dd
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
76 OS9FORMAT_DS40 = os9 format -t40 -ds -dd
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
77 OS9FORMAT_DS80 = os9 format -t80 -ds -dd
2193
97391b69843d Modified size of dw3 format tracks
boisy
parents: 2192
diff changeset
78 OS9FORMAT_DW3 = os9 format -t1024 -ss -dd
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
79 OS9GEN = os9 gen
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
80 OS9RENAME = os9 rename
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
81 OS9ATTR = os9 attr -q
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1123
diff changeset
82 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1123
diff changeset
83 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r
1803
6b0d1027e4e0 Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents: 1787
diff changeset
84 PADROM = os9 padrom
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
85 MOUNT = sudo mount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
86 UMOUNT = sudo umount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
87 LOREMOVE = sudo /sbin/losetup -d
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
88 LOSETUP = sudo /sbin/losetup
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
89 LINK = ln
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
90 SOFTLINK = $(LINK) -s
2191
d280490500a8 dw3 target added to makefile
boisy
parents: 2183
diff changeset
91 ARCHIVE = zip -D -j
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
93 # Directories
1754
9092b25eeb4c rules.mak now uses environment variables as an alternative for placement of
boisy
parents: 1729
diff changeset
94 3RDPARTY = $(NITROS9DIR)/3rdparty
2052
abea68d64225 Fixed some issues
boisy
parents: 2047
diff changeset
95 LEVEL1 = $(NITROS9DIR)/level1
abea68d64225 Fixed some issues
boisy
parents: 2047
diff changeset
96 LEVEL2 = $(NITROS9DIR)/level2
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
97
1865
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
98 # C-Cubed Rules
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
99 %.r: %.c
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
100 $(CC) $(CFLAGS) $< -r
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
101
1881
a9154d83aff9 Combo of changes
boisy
parents: 1879
diff changeset
102 #%.l: %.r
a9154d83aff9 Combo of changes
boisy
parents: 1879
diff changeset
103 # $(MERGE) $^ > $@
1879
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
104
1865
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
105 %: %.r
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
106 $(CC) $(LFLAGS) $^ -f=$@
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
107
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
108 %.r: %.a
1879
72cb2773d5ee rules.mak updated with new rules
boisy
parents: 1865
diff changeset
109 $(ASM) $< -o=$@
1865
c6426b9ca0da Added rules for .r generation
boisy
parents: 1853
diff changeset
110
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 # File managers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 %.mn: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 # Device drivers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 %.dr: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 # Device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 %.dd: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122
1257
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
123 # Subroutine modules
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
124 %.sb: %.asm
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
125 $(AS) $(AFLAGS) $< $(ASOUT)$@
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
126
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 # Window device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 %.dw: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 # Terminal device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 %.dt: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 # I/O subroutines
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 %.io: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 # All other modules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 %: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142