annotate rules.mak @ 1430:cd27ea66e47b

added
author boisy
date Wed, 03 Dec 2003 01:24:20 +0000
parents 67abc5f01f71
children 1c5a50add566
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
1394
boisy
parents: 1393
diff changeset
4 # These macros should change according to where the base directory of
boisy
parents: 1393
diff changeset
5 # your project source tree is located.
1362
1808357ad13b Updated for new project
boisy
parents: 1270
diff changeset
6 BASEDIR = $(HOME)/nitros9
1390
44739c8f4e06 bootscripts renamed to scripts
boisy
parents: 1363
diff changeset
7 OS9TOOLSDIR = /usr/local/bin
379
5f44464f7a4b Made smarter about home dir and bin locations
boisy
parents: 378
diff changeset
8 DEFDIR = $(BASEDIR)/defs
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1103
diff changeset
9 DSKDIR = $(BASEDIR)/dsks
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
10
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
11
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
12 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE ####################
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
13
299
ce65a48362d5 Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents: 224
diff changeset
14
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 # If we're using the OS-9 emulator and the *real* OS-9 assembler,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 # uncomment the following two lines.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 #AS = os9 /mnt2/src/ocem/os9/asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 #ASOUT = o=
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 # Use the cross assembler
379
5f44464f7a4b Made smarter about home dir and bin locations
boisy
parents: 378
diff changeset
21 AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 ASOUT = -o=
1270
f3d2c2164996 Removed ADDOPTS macro from makefiles
boisy
parents: 1257
diff changeset
23 AFLAGS = -q
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 # Commands
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
26 MAKDIR = $(OS9TOOLSDIR)/os9 makdir
224
d5c4d7584bb6 Added -f to rm
boisy
parents: 108
diff changeset
27 RM = rm -f
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 MERGE = cat
1123
358aeaeedea9 changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents: 1119
diff changeset
29 ECHO = /bin/echo
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
30 CD = cd
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
31 CP = $(OS9TOOLSDIR)/os9 copy
890
d4e296ede9e4 Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents: 703
diff changeset
32 CPL = $(OS9TOOLSDIR)/os9 copy -l
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
33 TAR = tar
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 CHMOD = chmod
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
35 IDENT = $(OS9TOOLSDIR)/os9 ident
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
36 IDENT_SHORT = $(IDENT) -s
890
d4e296ede9e4 Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents: 703
diff changeset
37 #UNIX2OS9 = $(OS9TOOLSDIR)/u2o
d4e296ede9e4 Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents: 703
diff changeset
38 #OS92UNIX = $(OS9TOOLSDIR)/o2u
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
39 OS9FORMAT = $(OS9TOOLSDIR)/os9 format
959
dd4d37b0dd23 Added OS9FORMAT macros for specific floppy disk formats
boisy
parents: 890
diff changeset
40 OS9FORMAT_SS35 = $(OS9TOOLSDIR)/os9 format -t35 -ss -dd -4
dd4d37b0dd23 Added OS9FORMAT macros for specific floppy disk formats
boisy
parents: 890
diff changeset
41 OS9FORMAT_SS40 = $(OS9TOOLSDIR)/os9 format -t40 -ss -dd -4
dd4d37b0dd23 Added OS9FORMAT macros for specific floppy disk formats
boisy
parents: 890
diff changeset
42 OS9FORMAT_DS40 = $(OS9TOOLSDIR)/os9 format -t40 -ds -dd -4
dd4d37b0dd23 Added OS9FORMAT macros for specific floppy disk formats
boisy
parents: 890
diff changeset
43 OS9FORMAT_DS80 = $(OS9TOOLSDIR)/os9 format -t80 -ds -dd -9
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
44 OS9GEN = $(OS9TOOLSDIR)/os9 gen
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
45 OS9RENAME = $(OS9TOOLSDIR)/os9 rename
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1123
diff changeset
46 OS9ATTR = $(OS9TOOLSDIR)/os9 attr -q
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1123
diff changeset
47 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1123
diff changeset
48 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r
590
e976b5e44bef Changed rules for new os9tools command format
boisy
parents: 559
diff changeset
49 PADROM = $(OS9TOOLSDIR)/os9 padrom
331
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
50 MOUNT = sudo mount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
51 UMOUNT = sudo umount
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
52 LOREMOVE = sudo /sbin/losetup -d
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
53 LOSETUP = sudo /sbin/losetup
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
54 LINK = ln
2a7bfa7ce709 Makefile rules updated
boisy
parents: 299
diff changeset
55 SOFTLINK = $(LINK) -s
1123
358aeaeedea9 changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents: 1119
diff changeset
56 ARCHIVE = zip -D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
58 # Directories
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
59 3RDPARTY = $(BASEDIR)/3rdparty
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1362
diff changeset
60 6809L1 = $(BASEDIR)/6809l1
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1362
diff changeset
61 6809L2 = $(BASEDIR)/6809l2
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1362
diff changeset
62 6309L2 = $(BASEDIR)/6309l2
1103
7f1602248e9b Cloud-9 directory is in os9 directory now
boisy
parents: 1033
diff changeset
63 C9 = $(BASEDIR)/cloud9
355
71b60814fb01 Makefiles modified for uniformity
boisy
parents: 331
diff changeset
64
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 # File managers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 %.mn: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 # Device drivers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 %.dr: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 # Device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 %.dd: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76
1257
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
77 # Subroutine modules
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
78 %.sb: %.asm
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
79 $(AS) $(AFLAGS) $< $(ASOUT)$@
b6969b0ae23d Added .sb for subroutine
boisy
parents: 1217
diff changeset
80
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 # Window device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 %.dw: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 # Terminal device descriptors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 %.dt: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 # I/O subroutines
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 %.io: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 # All other modules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 %: %.asm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 $(AS) $(AFLAGS) $< $(ASOUT)$@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96