Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 780:ddf8da14d4a9
Import of MM
author | boisy |
---|---|
date | Fri, 10 Jan 2003 21:32:49 +0000 |
parents | 6bb15a5a5821 |
children | d4e296ede9e4 |
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= |
676
b37b87121be2
Added $(ADDOPTS) hook for additional assembly options on a per-Makefile basis
boisy
parents:
590
diff
changeset
|
21 AFLAGS = -q $(ADDOPTS) |
0 | 22 |
23 # Commands | |
590 | 24 MAKDIR = $(OS9TOOLSDIR)/os9 makdir |
224 | 25 RM = rm -f |
0 | 26 MERGE = cat |
27 ECHO = echo | |
331 | 28 CD = cd |
590 | 29 CP = $(OS9TOOLSDIR)/os9 copy |
331 | 30 TAR = tar |
0 | 31 CHMOD = chmod |
590 | 32 IDENT = $(OS9TOOLSDIR)/os9 ident |
331 | 33 IDENT_SHORT = $(IDENT) -s |
34 UNIX2OS9 = $(OS9TOOLSDIR)/u2o | |
35 OS92UNIX = $(OS9TOOLSDIR)/o2u | |
590 | 36 OS9FORMAT = $(OS9TOOLSDIR)/os9 format |
37 OS9GEN = $(OS9TOOLSDIR)/os9 gen | |
38 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
703 | 39 OS9ATTR = $(OS9TOOLSDIR)/os9 attr |
590 | 40 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 41 MOUNT = sudo mount |
42 UMOUNT = sudo umount | |
43 LOREMOVE = sudo /sbin/losetup -d | |
44 LOSETUP = sudo /sbin/losetup | |
45 LINK = ln | |
46 SOFTLINK = $(LINK) -s | |
374 | 47 ZIP = zip -D |
0 | 48 |
355 | 49 # Directories |
50 3RDPARTY = $(BASEDIR)/3rdparty | |
51 LEVEL1 = $(BASEDIR)/level1 | |
52 LEVEL2 = $(BASEDIR)/level2v3 | |
378 | 53 NLEVEL2 = $(BASEDIR)/nitros |
355 | 54 |
0 | 55 # File managers |
56 %.mn: %.asm | |
57 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
58 | |
59 # Device drivers | |
60 %.dr: %.asm | |
61 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
62 | |
63 # Device descriptors | |
64 %.dd: %.asm | |
65 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
66 | |
67 # Window device descriptors | |
68 %.dw: %.asm | |
69 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
70 | |
71 # Terminal device descriptors | |
72 %.dt: %.asm | |
73 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
74 | |
75 # I/O subroutines | |
76 %.io: %.asm | |
77 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
78 | |
79 # 60Hz clocks | |
80 %.60hz: %.asm | |
63 | 81 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 82 |
83 # 50Hz clocks | |
84 %.50hz: %.asm | |
63 | 85 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 86 |
87 # All other modules | |
88 %: %.asm | |
89 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
90 |