Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1089:3a50f792aca8
Changes
author | boisy |
---|---|
date | Thu, 03 Apr 2003 22:32:13 +0000 |
parents | 766aa0629769 |
children | 7f1602248e9b |
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 | |
1024 | 57 LEVEL2 = $(BASEDIR)/level2 |
1033 | 58 NLEVEL2 = $(BASEDIR)/nlevel2 |
981 | 59 C9 = $(HOME)/cloud9 |
355 | 60 |
0 | 61 # File managers |
62 %.mn: %.asm | |
63 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
64 | |
65 # Device drivers | |
66 %.dr: %.asm | |
67 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
68 | |
69 # Device descriptors | |
70 %.dd: %.asm | |
71 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
72 | |
73 # Window device descriptors | |
74 %.dw: %.asm | |
75 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
76 | |
77 # Terminal device descriptors | |
78 %.dt: %.asm | |
79 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
80 | |
81 # I/O subroutines | |
82 %.io: %.asm | |
83 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
84 | |
85 # 60Hz clocks | |
86 %.60hz: %.asm | |
63 | 87 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 88 |
89 # 50Hz clocks | |
90 %.50hz: %.asm | |
63 | 91 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 92 |
93 # All other modules | |
94 %: %.asm | |
95 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
96 |