Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1430:cd27ea66e47b
added
author | boisy |
---|---|
date | Wed, 03 Dec 2003 01:24:20 +0000 |
parents | 67abc5f01f71 |
children | 1c5a50add566 |
rev | line source |
---|---|
1393 | 1 # The NitrOS-9 Project |
2 # Project-Wide Rules | |
0 | 3 |
1394 | 4 # These macros should change according to where the base directory of |
5 # your project source tree is located. | |
1362 | 6 BASEDIR = $(HOME)/nitros9 |
1390 | 7 OS9TOOLSDIR = /usr/local/bin |
379 | 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 | 10 |
11 | |
12 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
13 | |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
14 |
0 | 15 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
16 # uncomment the following two lines. | |
17 #AS = os9 /mnt2/src/ocem/os9/asm | |
18 #ASOUT = o= | |
19 | |
20 # Use the cross assembler | |
379 | 21 AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR) |
0 | 22 ASOUT = -o= |
1270 | 23 AFLAGS = -q |
0 | 24 |
25 # Commands | |
590 | 26 MAKDIR = $(OS9TOOLSDIR)/os9 makdir |
224 | 27 RM = rm -f |
0 | 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 | 30 CD = cd |
590 | 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 | 33 TAR = tar |
0 | 34 CHMOD = chmod |
590 | 35 IDENT = $(OS9TOOLSDIR)/os9 ident |
331 | 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 | 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 | 44 OS9GEN = $(OS9TOOLSDIR)/os9 gen |
45 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
1126 | 46 OS9ATTR = $(OS9TOOLSDIR)/os9 attr -q |
47 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r | |
48 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r | |
590 | 49 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 50 MOUNT = sudo mount |
51 UMOUNT = sudo umount | |
52 LOREMOVE = sudo /sbin/losetup -d | |
53 LOSETUP = sudo /sbin/losetup | |
54 LINK = ln | |
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 | 57 |
355 | 58 # Directories |
59 3RDPARTY = $(BASEDIR)/3rdparty | |
1363 | 60 6809L1 = $(BASEDIR)/6809l1 |
61 6809L2 = $(BASEDIR)/6809l2 | |
62 6309L2 = $(BASEDIR)/6309l2 | |
1103 | 63 C9 = $(BASEDIR)/cloud9 |
355 | 64 |
0 | 65 # File managers |
66 %.mn: %.asm | |
67 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
68 | |
69 # Device drivers | |
70 %.dr: %.asm | |
71 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
72 | |
73 # Device descriptors | |
74 %.dd: %.asm | |
75 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
76 | |
1257 | 77 # Subroutine modules |
78 %.sb: %.asm | |
79 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
80 | |
0 | 81 # Window device descriptors |
82 %.dw: %.asm | |
83 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
84 | |
85 # Terminal device descriptors | |
86 %.dt: %.asm | |
87 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
88 | |
89 # I/O subroutines | |
90 %.io: %.asm | |
91 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
92 | |
93 # All other modules | |
94 %: %.asm | |
95 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
96 |