annotate rules.mak @ 1780:fb287e5e27c1

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