Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 962:8a0993b04c8a
*** empty log message ***
author | boisy |
---|---|
date | Fri, 31 Jan 2003 17:35:49 +0000 |
parents | dd4d37b0dd23 |
children | a739bc9c2df2 |
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 |
959
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
38 OS9FORMAT_SS35 = $(OS9TOOLSDIR)/os9 format -t35 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
39 OS9FORMAT_SS40 = $(OS9TOOLSDIR)/os9 format -t40 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
40 OS9FORMAT_DS40 = $(OS9TOOLSDIR)/os9 format -t40 -ds -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
41 OS9FORMAT_DS80 = $(OS9TOOLSDIR)/os9 format -t80 -ds -dd -9 |
590 | 42 OS9GEN = $(OS9TOOLSDIR)/os9 gen |
43 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
703 | 44 OS9ATTR = $(OS9TOOLSDIR)/os9 attr |
590 | 45 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 46 MOUNT = sudo mount |
47 UMOUNT = sudo umount | |
48 LOREMOVE = sudo /sbin/losetup -d | |
49 LOSETUP = sudo /sbin/losetup | |
50 LINK = ln | |
51 SOFTLINK = $(LINK) -s | |
374 | 52 ZIP = zip -D |
0 | 53 |
355 | 54 # Directories |
55 3RDPARTY = $(BASEDIR)/3rdparty | |
56 LEVEL1 = $(BASEDIR)/level1 | |
57 LEVEL2 = $(BASEDIR)/level2v3 | |
378 | 58 NLEVEL2 = $(BASEDIR)/nitros |
355 | 59 |
0 | 60 # File managers |
61 %.mn: %.asm | |
62 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
63 | |
64 # Device drivers | |
65 %.dr: %.asm | |
66 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
67 | |
68 # Device descriptors | |
69 %.dd: %.asm | |
70 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
71 | |
72 # Window device descriptors | |
73 %.dw: %.asm | |
74 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
75 | |
76 # Terminal device descriptors | |
77 %.dt: %.asm | |
78 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
79 | |
80 # I/O subroutines | |
81 %.io: %.asm | |
82 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
83 | |
84 # 60Hz clocks | |
85 %.60hz: %.asm | |
63 | 86 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 87 |
88 # 50Hz clocks | |
89 %.50hz: %.asm | |
63 | 90 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 91 |
92 # All other modules | |
93 %: %.asm | |
94 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
95 |