Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1654:f62ca34d4419
Level 2: shellplus stand-alone file is no longer copied to CMDS
dirm.asm removed since mdir -e puts out same info.
author | boisy |
---|---|
date | Sat, 17 Jul 2004 13:08:39 +0000 |
parents | d87e5e9b4f1b |
children | 7bdc60c48533 |
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 |
1564 | 7 OS9TOOLSDIR = $(HOME)/bin |
1593 | 8 #OS9TOOLSDIR = /usr/local/bin |
379 | 9 DEFDIR = $(BASEDIR)/defs |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1103
diff
changeset
|
10 DSKDIR = $(BASEDIR)/dsks |
331 | 11 |
12 | |
13 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
14 | |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
15 |
0 | 16 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
17 # uncomment the following two lines. | |
18 #AS = os9 /mnt2/src/ocem/os9/asm | |
19 #ASOUT = o= | |
20 | |
21 # Use the cross assembler | |
1528 | 22 AS = $(OS9TOOLSDIR)/mamou -i=$(DEFDIR) |
1537 | 23 #AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR) |
1528 | 24 ASOUT = -o |
1270 | 25 AFLAGS = -q |
0 | 26 |
27 # Commands | |
590 | 28 MAKDIR = $(OS9TOOLSDIR)/os9 makdir |
224 | 29 RM = rm -f |
0 | 30 MERGE = cat |
1654
f62ca34d4419
Level 2: shellplus stand-alone file is no longer copied to CMDS
boisy
parents:
1593
diff
changeset
|
31 MOVE = mv |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
32 ECHO = /bin/echo |
331 | 33 CD = cd |
1528 | 34 CP = $(OS9TOOLSDIR)/os9 copy -o=0 |
35 CPL = $(CP) -l | |
331 | 36 TAR = tar |
0 | 37 CHMOD = chmod |
590 | 38 IDENT = $(OS9TOOLSDIR)/os9 ident |
331 | 39 IDENT_SHORT = $(IDENT) -s |
890
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
40 #UNIX2OS9 = $(OS9TOOLSDIR)/u2o |
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
41 #OS92UNIX = $(OS9TOOLSDIR)/o2u |
590 | 42 OS9FORMAT = $(OS9TOOLSDIR)/os9 format |
959
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
43 OS9FORMAT_SS35 = $(OS9TOOLSDIR)/os9 format -t35 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
44 OS9FORMAT_SS40 = $(OS9TOOLSDIR)/os9 format -t40 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
45 OS9FORMAT_DS40 = $(OS9TOOLSDIR)/os9 format -t40 -ds -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
46 OS9FORMAT_DS80 = $(OS9TOOLSDIR)/os9 format -t80 -ds -dd -9 |
590 | 47 OS9GEN = $(OS9TOOLSDIR)/os9 gen |
48 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
1126 | 49 OS9ATTR = $(OS9TOOLSDIR)/os9 attr -q |
50 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r | |
51 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r | |
590 | 52 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 53 MOUNT = sudo mount |
54 UMOUNT = sudo umount | |
55 LOREMOVE = sudo /sbin/losetup -d | |
56 LOSETUP = sudo /sbin/losetup | |
57 LINK = ln | |
58 SOFTLINK = $(LINK) -s | |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
59 ARCHIVE = zip -D |
0 | 60 |
355 | 61 # Directories |
62 3RDPARTY = $(BASEDIR)/3rdparty | |
1363 | 63 6809L1 = $(BASEDIR)/6809l1 |
64 6809L2 = $(BASEDIR)/6809l2 | |
65 6309L2 = $(BASEDIR)/6309l2 | |
1537 | 66 C9 = $(HOME)/cloud9 |
355 | 67 |
0 | 68 # File managers |
69 %.mn: %.asm | |
70 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
71 | |
72 # Device drivers | |
73 %.dr: %.asm | |
74 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
75 | |
76 # Device descriptors | |
77 %.dd: %.asm | |
78 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
79 | |
1257 | 80 # Subroutine modules |
81 %.sb: %.asm | |
82 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
83 | |
0 | 84 # Window device descriptors |
85 %.dw: %.asm | |
86 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
87 | |
88 # Terminal device descriptors | |
89 %.dt: %.asm | |
90 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
91 | |
92 # I/O subroutines | |
93 %.io: %.asm | |
94 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
95 | |
96 # All other modules | |
97 %: %.asm | |
98 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
99 |