Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 559:33f12fe91048
Bin tools are now from /usr/local/bin
author | boisy |
---|---|
date | Thu, 31 Oct 2002 15:22:39 +0000 |
parents | e81cac091c79 |
children | e976b5e44bef |
rev | line source |
---|---|
0 | 1 # Rules for making OS-9/6X09 modules |
2 | |
331 | 3 # These macros should change according to where the base directory of the |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
4 # OS-9 source tree is located |
379 | 5 BASEDIR = $(HOME)/os9 |
559 | 6 OS9TOOLSDIR = /usr/local/bin |
379 | 7 DEFDIR = $(BASEDIR)/defs |
331 | 8 |
9 | |
10 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
11 | |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
12 |
0 | 13 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
14 # uncomment the following two lines. | |
15 #AS = os9 /mnt2/src/ocem/os9/asm | |
16 #ASOUT = o= | |
17 | |
18 # Use the cross assembler | |
379 | 19 AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR) |
0 | 20 ASOUT = -o= |
21 AFLAGS = -q | |
22 | |
23 # Commands | |
374 | 24 MAKDIR = $(OS9TOOLSDIR)/os9makdir |
224 | 25 RM = rm -f |
0 | 26 MERGE = cat |
27 ECHO = echo | |
331 | 28 CD = cd |
374 | 29 CP = $(OS9TOOLSDIR)/os9copy |
331 | 30 TAR = tar |
0 | 31 CHMOD = chmod |
331 | 32 IDENT = $(OS9TOOLSDIR)/os9ident |
33 IDENT_SHORT = $(IDENT) -s | |
34 UNIX2OS9 = $(OS9TOOLSDIR)/u2o | |
35 OS92UNIX = $(OS9TOOLSDIR)/o2u | |
36 OS9FORMAT = $(OS9TOOLSDIR)/os9format | |
37 OS9GEN = $(OS9TOOLSDIR)/os9gen | |
502 | 38 OS9RENAME = $(OS9TOOLSDIR)/os9rename |
331 | 39 PADROM = $(OS9TOOLSDIR)/os9padrom |
40 MOUNT = sudo mount | |
41 UMOUNT = sudo umount | |
42 LOREMOVE = sudo /sbin/losetup -d | |
43 LOSETUP = sudo /sbin/losetup | |
44 LINK = ln | |
45 SOFTLINK = $(LINK) -s | |
374 | 46 ZIP = zip -D |
0 | 47 |
355 | 48 # Directories |
49 3RDPARTY = $(BASEDIR)/3rdparty | |
50 LEVEL1 = $(BASEDIR)/level1 | |
51 LEVEL2 = $(BASEDIR)/level2v3 | |
378 | 52 NLEVEL2 = $(BASEDIR)/nitros |
355 | 53 |
0 | 54 # File managers |
55 %.mn: %.asm | |
56 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
57 | |
58 # Device drivers | |
59 %.dr: %.asm | |
60 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
61 | |
62 # Device descriptors | |
63 %.dd: %.asm | |
64 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
65 | |
66 # Window device descriptors | |
67 %.dw: %.asm | |
68 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
69 | |
70 # Terminal device descriptors | |
71 %.dt: %.asm | |
72 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
73 | |
74 # I/O subroutines | |
75 %.io: %.asm | |
76 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
77 | |
78 # 60Hz clocks | |
79 %.60hz: %.asm | |
63 | 80 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 81 |
82 # 50Hz clocks | |
83 %.50hz: %.asm | |
63 | 84 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 85 |
86 # All other modules | |
87 %: %.asm | |
88 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
89 |