Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 939:8f1263d3e3d5
Small touch-ups to source
author | boisy |
---|---|
date | Tue, 21 Jan 2003 13:20:52 +0000 |
parents | d4e296ede9e4 |
children | dd4d37b0dd23 |
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 |
890
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
30 CPL = $(OS9TOOLSDIR)/os9 copy -l |
331 | 31 TAR = tar |
0 | 32 CHMOD = chmod |
590 | 33 IDENT = $(OS9TOOLSDIR)/os9 ident |
331 | 34 IDENT_SHORT = $(IDENT) -s |
890
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
35 #UNIX2OS9 = $(OS9TOOLSDIR)/u2o |
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
36 #OS92UNIX = $(OS9TOOLSDIR)/o2u |
590 | 37 OS9FORMAT = $(OS9TOOLSDIR)/os9 format |
38 OS9GEN = $(OS9TOOLSDIR)/os9 gen | |
39 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
703 | 40 OS9ATTR = $(OS9TOOLSDIR)/os9 attr |
590 | 41 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 42 MOUNT = sudo mount |
43 UMOUNT = sudo umount | |
44 LOREMOVE = sudo /sbin/losetup -d | |
45 LOSETUP = sudo /sbin/losetup | |
46 LINK = ln | |
47 SOFTLINK = $(LINK) -s | |
374 | 48 ZIP = zip -D |
0 | 49 |
355 | 50 # Directories |
51 3RDPARTY = $(BASEDIR)/3rdparty | |
52 LEVEL1 = $(BASEDIR)/level1 | |
53 LEVEL2 = $(BASEDIR)/level2v3 | |
378 | 54 NLEVEL2 = $(BASEDIR)/nitros |
355 | 55 |
0 | 56 # File managers |
57 %.mn: %.asm | |
58 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
59 | |
60 # Device drivers | |
61 %.dr: %.asm | |
62 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
63 | |
64 # Device descriptors | |
65 %.dd: %.asm | |
66 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
67 | |
68 # Window device descriptors | |
69 %.dw: %.asm | |
70 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
71 | |
72 # Terminal device descriptors | |
73 %.dt: %.asm | |
74 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
75 | |
76 # I/O subroutines | |
77 %.io: %.asm | |
78 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
79 | |
80 # 60Hz clocks | |
81 %.60hz: %.asm | |
63 | 82 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 83 |
84 # 50Hz clocks | |
85 %.50hz: %.asm | |
63 | 86 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 87 |
88 # All other modules | |
89 %: %.asm | |
90 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
91 |