Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1759:c748bc73facc
Removed '-4' flag from format macro, thanks Rodney!
author | boisy |
---|---|
date | Fri, 01 Apr 2005 12:57:06 +0000 |
parents | 9092b25eeb4c |
children | 27e85b681dab |
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 # |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
8 # 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
|
9 # 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
|
10 # |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
11 # 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
|
12 # environment variables. |
331 | 13 |
14 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
15 | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
16 ifndef NITROS9DIR |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
17 NITROS9DIR = $(HOME)/nitros9 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
18 endif |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
19 ifndef COCOTOOLSBIN |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
20 COCOTOOLSBIN = $(HOME)/bin |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
21 endif |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
22 DEFDIR = $(NITROS9DIR)/defs |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
23 DSKDIR = $(NITROS9DIR)/dsks |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
24 |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
25 |
0 | 26 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
27 # uncomment the following two lines. | |
28 #AS = os9 /mnt2/src/ocem/os9/asm | |
29 #ASOUT = o= | |
30 | |
31 # Use the cross assembler | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
32 AS = $(COCOTOOLSBIN)/mamou -i=$(DEFDIR) |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
33 #AS = $(COCOTOOLSBIN)/os9asm -i=$(DEFDIR) |
1528 | 34 ASOUT = -o |
1270 | 35 AFLAGS = -q |
0 | 36 |
37 # Commands | |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
38 MAKDIR = $(COCOTOOLSBIN)/os9 makdir |
224 | 39 RM = rm -f |
0 | 40 MERGE = cat |
1654
f62ca34d4419
Level 2: shellplus stand-alone file is no longer copied to CMDS
boisy
parents:
1593
diff
changeset
|
41 MOVE = mv |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
42 ECHO = /bin/echo |
331 | 43 CD = cd |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
44 CP = $(COCOTOOLSBIN)/os9 copy -o=0 |
1528 | 45 CPL = $(CP) -l |
331 | 46 TAR = tar |
0 | 47 CHMOD = chmod |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
48 IDENT = $(COCOTOOLSBIN)/os9 ident |
331 | 49 IDENT_SHORT = $(IDENT) -s |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
50 #UNIX2OS9 = $(COCOTOOLSBIN)/u2o |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
51 #OS92UNIX = $(COCOTOOLSBIN)/o2u |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
52 OS9FORMAT = $(COCOTOOLSBIN)/os9 format |
1759 | 53 OS9FORMAT_SS35 = $(COCOTOOLSBIN)/os9 format -t35 -ss -dd |
54 OS9FORMAT_SS40 = $(COCOTOOLSBIN)/os9 format -t40 -ss -dd | |
55 OS9FORMAT_SS80 = $(COCOTOOLSBIN)/os9 format -t80 -ss -dd | |
56 OS9FORMAT_DS40 = $(COCOTOOLSBIN)/os9 format -t40 -ds -dd | |
57 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
|
58 OS9GEN = $(COCOTOOLSBIN)/os9 gen |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
59 OS9RENAME = $(COCOTOOLSBIN)/os9 rename |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
60 OS9ATTR = $(COCOTOOLSBIN)/os9 attr -q |
1126 | 61 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r |
62 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
|
63 PADROM = $(COCOTOOLSBIN)/os9 padrom |
331 | 64 MOUNT = sudo mount |
65 UMOUNT = sudo umount | |
66 LOREMOVE = sudo /sbin/losetup -d | |
67 LOSETUP = sudo /sbin/losetup | |
68 LINK = ln | |
69 SOFTLINK = $(LINK) -s | |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
70 ARCHIVE = zip -D |
0 | 71 |
355 | 72 # Directories |
1754
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
73 3RDPARTY = $(NITROS9DIR)/3rdparty |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
74 6809L1 = $(NITROS9DIR)/6809l1 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
75 6809L2 = $(NITROS9DIR)/6809l2 |
9092b25eeb4c
rules.mak now uses environment variables as an alternative for placement of
boisy
parents:
1729
diff
changeset
|
76 6309L2 = $(NITROS9DIR)/6309l2 |
1537 | 77 C9 = $(HOME)/cloud9 |
355 | 78 |
0 | 79 # File managers |
80 %.mn: %.asm | |
81 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
82 | |
83 # Device drivers | |
84 %.dr: %.asm | |
85 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
86 | |
87 # Device descriptors | |
88 %.dd: %.asm | |
89 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
90 | |
1257 | 91 # Subroutine modules |
92 %.sb: %.asm | |
93 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
94 | |
0 | 95 # Window device descriptors |
96 %.dw: %.asm | |
97 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
98 | |
99 # Terminal device descriptors | |
100 %.dt: %.asm | |
101 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
102 | |
103 # I/O subroutines | |
104 %.io: %.asm | |
105 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
106 | |
107 # All other modules | |
108 %: %.asm | |
109 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
110 |