Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1789:952fde0dfea2
More changes
author | boisy |
---|---|
date | Sat, 09 Apr 2005 18:26:58 +0000 |
parents | 0af3f5f84033 |
children | 6b0d1027e4e0 |
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 # NOTE: THERE IS NO NEED TO MODIFY THIS FILE ANYMORE! |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
5 # 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
|
6 # than the defaults below: |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
7 # |
1787 | 8 # NITROS9VER - current version string for NitrOS-9 |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
9 # 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
|
10 # COCOTOOLSBIN - directory where CoCoTools binaries are (assembler, etc) |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
11 # |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
12 # 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
|
13 # environment variables. |
331 | 14 |
15 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
16 | |
1787 | 17 # NOTE: All three vars must be set or we set all to zero! |
18 ifndef NITROS9VERSION | |
19 NITROS9VERSION = 0 | |
20 NITROS9MAJOR = 0 | |
21 NITROS9MINOR = 0 | |
22 endif | |
23 ifndef NITROS9MAJOR | |
24 NITROS9VERSION = 0 | |
25 NITROS9MAJOR = 0 | |
26 NITROS9MINOR = 0 | |
27 endif | |
28 ifndef NITROS9MINOR | |
29 NITROS9VERSION = 0 | |
30 NITROS9MAJOR = 0 | |
31 NITROS9MINOR = 0 | |
32 endif | |
33 | |
34 NITROS9VER = v0$(NITROS9VERSION)0$(NITROS9MAJOR)0$(NITROS9MINOR) | |
35 | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
36 ifndef NITROS9DIR |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
37 NITROS9DIR = $(HOME)/nitros9 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
38 endif |
1771 | 39 ifndef CLOUD9DIR |
40 CLOUD9DIR = $(HOME)/cloud9 | |
41 endif | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
42 ifndef COCOTOOLSBIN |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
43 COCOTOOLSBIN = $(HOME)/bin |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
44 endif |
1771 | 45 |
46 C9 = $(CLOUD9DIR) | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1759
diff
changeset
|
47 DEFSDIR = $(NITROS9DIR)/defs |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
48 DSKDIR = $(NITROS9DIR)/dsks |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
49 |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
50 |
0 | 51 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
52 # uncomment the following two lines. | |
53 #AS = os9 /mnt2/src/ocem/os9/asm | |
54 #ASOUT = o= | |
55 | |
56 # Use the cross assembler | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1759
diff
changeset
|
57 AS = $(COCOTOOLSBIN)/mamou -i=$(DEFSDIR) |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1759
diff
changeset
|
58 #AS = $(COCOTOOLSBIN)/os9asm -i=$(DEFSDIR) |
1528 | 59 ASOUT = -o |
1270 | 60 AFLAGS = -q |
0 | 61 |
62 # Commands | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
63 MAKDIR = $(COCOTOOLSBIN)/os9 makdir |
224 | 64 RM = rm -f |
0 | 65 MERGE = cat |
1654
f62ca34d4419
Level 2: shellplus stand-alone file is no longer copied to CMDS
boisy
parents:
1593
diff
changeset
|
66 MOVE = mv |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
67 ECHO = /bin/echo |
331 | 68 CD = cd |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
69 CP = $(COCOTOOLSBIN)/os9 copy -o=0 |
1528 | 70 CPL = $(CP) -l |
331 | 71 TAR = tar |
0 | 72 CHMOD = chmod |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
73 IDENT = $(COCOTOOLSBIN)/os9 ident |
331 | 74 IDENT_SHORT = $(IDENT) -s |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
75 #UNIX2OS9 = $(COCOTOOLSBIN)/u2o |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
76 #OS92UNIX = $(COCOTOOLSBIN)/o2u |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
77 OS9FORMAT = $(COCOTOOLSBIN)/os9 format |
1759 | 78 OS9FORMAT_SS35 = $(COCOTOOLSBIN)/os9 format -t35 -ss -dd |
79 OS9FORMAT_SS40 = $(COCOTOOLSBIN)/os9 format -t40 -ss -dd | |
80 OS9FORMAT_SS80 = $(COCOTOOLSBIN)/os9 format -t80 -ss -dd | |
81 OS9FORMAT_DS40 = $(COCOTOOLSBIN)/os9 format -t40 -ds -dd | |
82 OS9FORMAT_DS80 = $(COCOTOOLSBIN)/os9 format -t80 -ds -dd | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
83 OS9GEN = $(COCOTOOLSBIN)/os9 gen |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
84 OS9RENAME = $(COCOTOOLSBIN)/os9 rename |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
85 OS9ATTR = $(COCOTOOLSBIN)/os9 attr -q |
1126 | 86 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r |
87 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
88 PADROM = $(COCOTOOLSBIN)/os9 padrom |
331 | 89 MOUNT = sudo mount |
90 UMOUNT = sudo umount | |
91 LOREMOVE = sudo /sbin/losetup -d | |
92 LOSETUP = sudo /sbin/losetup | |
93 LINK = ln | |
94 SOFTLINK = $(LINK) -s | |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
95 ARCHIVE = zip -D |
0 | 96 |
355 | 97 # Directories |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
98 3RDPARTY = $(NITROS9DIR)/3rdparty |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
99 6809L1 = $(NITROS9DIR)/6809l1 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
100 6809L2 = $(NITROS9DIR)/6809l2 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
101 6309L2 = $(NITROS9DIR)/6309l2 |
355 | 102 |
0 | 103 # File managers |
104 %.mn: %.asm | |
105 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
106 | |
107 # Device drivers | |
108 %.dr: %.asm | |
109 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
110 | |
111 # Device descriptors | |
112 %.dd: %.asm | |
113 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
114 | |
1257 | 115 # Subroutine modules |
116 %.sb: %.asm | |
117 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
118 | |
0 | 119 # Window device descriptors |
120 %.dw: %.asm | |
121 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
122 | |
123 # Terminal device descriptors | |
124 %.dt: %.asm | |
125 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
126 | |
127 # I/O subroutines | |
128 %.io: %.asm | |
129 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
130 | |
131 # All other modules | |
132 %: %.asm | |
133 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
134 |