Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 2568:ad7819d6c5c5
Updated
author | boisy |
---|---|
date | Sat, 12 Feb 2011 01:26:34 +0000 |
parents | 3dcda506604b |
children | 09feb97c181f 6bd6e348665d |
rev | line source |
---|---|
1393 | 1 # The NitrOS-9 Project |
2 # Project-Wide Rules | |
0 | 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 | 11 |
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 | 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 | 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 | 22 |
1865 | 23 CC = c3 |
24 | |
1805 | 25 NITROS9VER = v0$(NOS9VER)0$(NOS9MAJ)0$(NOS9MIN) |
1787 | 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 | 30 ifndef CLOUD9DIR |
31 CLOUD9DIR = $(HOME)/cloud9 | |
32 endif | |
33 | |
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 | 39 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
40 # uncomment the following two lines. | |
41 #AS = os9 /mnt2/src/ocem/os9/asm | |
42 #ASOUT = o= | |
43 | |
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 | 47 ASOUT = -o |
2055 | 48 AFLAGS = -q -aNOS9VER=$(NOS9VER) -aNOS9MAJ=$(NOS9MAJ) -aNOS9MIN=$(NOS9MIN) -aNOS9DBG=$(NOS9DBG) |
49 ifdef PORT | |
50 AFLAGS += -a$(PORT)=1 | |
51 endif | |
0 | 52 |
1879 | 53 # RMA/RLINK |
54 ASM = rma | |
55 LINKER = rlink | |
56 | |
0 | 57 # Commands |
1803
6b0d1027e4e0
Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents:
1787
diff
changeset
|
58 MAKDIR = os9 makdir |
224 | 59 RM = rm -f |
0 | 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 | 63 CD = cd |
1803
6b0d1027e4e0
Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents:
1787
diff
changeset
|
64 CP = os9 copy -o=0 |
1528 | 65 CPL = $(CP) -l |
331 | 66 TAR = tar |
0 | 67 CHMOD = chmod |
1803
6b0d1027e4e0
Removed NITROS9VERSION, NITROS9MAJOR, NITROS9MINOR environment vars from
boisy
parents:
1787
diff
changeset
|
68 IDENT = os9 ident |
331 | 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 | 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 | 82 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r |
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 | 85 MOUNT = sudo mount |
86 UMOUNT = sudo umount | |
87 LOREMOVE = sudo /sbin/losetup -d | |
88 LOSETUP = sudo /sbin/losetup | |
89 LINK = ln | |
90 SOFTLINK = $(LINK) -s | |
2191 | 91 ARCHIVE = zip -D -j |
2512 | 92 MKDSKINDEX = $(NITROS9DIR)/3rdparty/utils/aaw/mkdskindex |
0 | 93 |
355 | 94 # Directories |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
95 3RDPARTY = $(NITROS9DIR)/3rdparty |
2052 | 96 LEVEL1 = $(NITROS9DIR)/level1 |
97 LEVEL2 = $(NITROS9DIR)/level2 | |
2352 | 98 LEVEL3 = $(NITROS9DIR)/level3 |
2377 | 99 CC68L1 = $(LEVEL1)/coco |
100 CC368L2 = $(LEVEL2)/coco3 | |
101 CC363L2 = $(LEVEL2)/coco3_6309 | |
102 CC363L3 = $(LEVEL3)/coco3_6309 | |
355 | 103 |
1865 | 104 # C-Cubed Rules |
105 %.r: %.c | |
106 $(CC) $(CFLAGS) $< -r | |
107 | |
2335 | 108 %.l: %.a |
109 $(ASM) $< -o=$@ | |
1879 | 110 |
1865 | 111 %: %.r |
2325 | 112 $(LINKER) $(LFLAGS) $^ -o=$@ |
1865 | 113 |
114 %.r: %.a | |
1879 | 115 $(ASM) $< -o=$@ |
1865 | 116 |
0 | 117 # File managers |
118 %.mn: %.asm | |
119 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
120 | |
121 # Device drivers | |
122 %.dr: %.asm | |
123 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
124 | |
125 # Device descriptors | |
126 %.dd: %.asm | |
127 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
128 | |
1257 | 129 # Subroutine modules |
130 %.sb: %.asm | |
131 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
132 | |
0 | 133 # Window device descriptors |
134 %.dw: %.asm | |
135 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
136 | |
137 # Terminal device descriptors | |
138 %.dt: %.asm | |
139 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
140 | |
141 # I/O subroutines | |
142 %.io: %.asm | |
143 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
144 | |
145 # All other modules | |
146 %: %.asm | |
147 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
148 |