Mercurial > hg > Members > kono > nitros9-code
annotate rules.mak @ 1212:c2f6949523f6
Fixed incorrect creation of DD descriptors
author | boisy |
---|---|
date | Fri, 27 Jun 2003 13:30:22 +0000 |
parents | 1e136c413e58 |
children | 105c50406cb2 |
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 |
1130 | 5 BASEDIR = $(HOME)/os9 |
559 | 6 OS9TOOLSDIR = /usr/local/bin |
379 | 7 DEFDIR = $(BASEDIR)/defs |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1103
diff
changeset
|
8 DSKDIR = $(BASEDIR)/dsks |
331 | 9 |
10 | |
11 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE #################### | |
12 | |
299
ce65a48362d5
Added BASE macro, o2u/d2u now execute relative to hosttools
boisy
parents:
224
diff
changeset
|
13 |
0 | 14 # If we're using the OS-9 emulator and the *real* OS-9 assembler, |
15 # uncomment the following two lines. | |
16 #AS = os9 /mnt2/src/ocem/os9/asm | |
17 #ASOUT = o= | |
18 | |
19 # Use the cross assembler | |
379 | 20 AS = $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR) |
0 | 21 ASOUT = -o= |
676
b37b87121be2
Added $(ADDOPTS) hook for additional assembly options on a per-Makefile basis
boisy
parents:
590
diff
changeset
|
22 AFLAGS = -q $(ADDOPTS) |
0 | 23 |
24 # Commands | |
590 | 25 MAKDIR = $(OS9TOOLSDIR)/os9 makdir |
224 | 26 RM = rm -f |
0 | 27 MERGE = cat |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
28 ECHO = /bin/echo |
331 | 29 CD = cd |
590 | 30 CP = $(OS9TOOLSDIR)/os9 copy |
890
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
31 CPL = $(OS9TOOLSDIR)/os9 copy -l |
331 | 32 TAR = tar |
0 | 33 CHMOD = chmod |
590 | 34 IDENT = $(OS9TOOLSDIR)/os9 ident |
331 | 35 IDENT_SHORT = $(IDENT) -s |
890
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
36 #UNIX2OS9 = $(OS9TOOLSDIR)/u2o |
d4e296ede9e4
Added CPL macro to copy files using os9copy's -l option for automatic
boisy
parents:
703
diff
changeset
|
37 #OS92UNIX = $(OS9TOOLSDIR)/o2u |
590 | 38 OS9FORMAT = $(OS9TOOLSDIR)/os9 format |
959
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
39 OS9FORMAT_SS35 = $(OS9TOOLSDIR)/os9 format -t35 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
40 OS9FORMAT_SS40 = $(OS9TOOLSDIR)/os9 format -t40 -ss -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
41 OS9FORMAT_DS40 = $(OS9TOOLSDIR)/os9 format -t40 -ds -dd -4 |
dd4d37b0dd23
Added OS9FORMAT macros for specific floppy disk formats
boisy
parents:
890
diff
changeset
|
42 OS9FORMAT_DS80 = $(OS9TOOLSDIR)/os9 format -t80 -ds -dd -9 |
590 | 43 OS9GEN = $(OS9TOOLSDIR)/os9 gen |
44 OS9RENAME = $(OS9TOOLSDIR)/os9 rename | |
1126 | 45 OS9ATTR = $(OS9TOOLSDIR)/os9 attr -q |
46 OS9ATTR_TEXT = $(OS9ATTR) -npe -npw -pr -ne -w -r | |
47 OS9ATTR_EXEC = $(OS9ATTR) -pe -npw -pr -e -w -r | |
590 | 48 PADROM = $(OS9TOOLSDIR)/os9 padrom |
331 | 49 MOUNT = sudo mount |
50 UMOUNT = sudo umount | |
51 LOREMOVE = sudo /sbin/losetup -d | |
52 LOSETUP = sudo /sbin/losetup | |
53 LINK = ln | |
54 SOFTLINK = $(LINK) -s | |
1123
358aeaeedea9
changed echo to /bin/echo because of MinGW (Windows) needs it
boisy
parents:
1119
diff
changeset
|
55 ARCHIVE = zip -D |
0 | 56 |
355 | 57 # Directories |
58 3RDPARTY = $(BASEDIR)/3rdparty | |
59 LEVEL1 = $(BASEDIR)/level1 | |
1024 | 60 LEVEL2 = $(BASEDIR)/level2 |
1033 | 61 NLEVEL2 = $(BASEDIR)/nlevel2 |
1103 | 62 C9 = $(BASEDIR)/cloud9 |
355 | 63 |
0 | 64 # File managers |
65 %.mn: %.asm | |
66 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
67 | |
68 # Device drivers | |
69 %.dr: %.asm | |
70 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
71 | |
72 # Device descriptors | |
73 %.dd: %.asm | |
74 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
75 | |
76 # Window device descriptors | |
77 %.dw: %.asm | |
78 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
79 | |
80 # Terminal device descriptors | |
81 %.dt: %.asm | |
82 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
83 | |
84 # I/O subroutines | |
85 %.io: %.asm | |
86 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
87 | |
88 # 60Hz clocks | |
89 %.60hz: %.asm | |
63 | 90 $(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@ |
0 | 91 |
92 # 50Hz clocks | |
93 %.50hz: %.asm | |
63 | 94 $(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@ |
0 | 95 |
96 # All other modules | |
97 %: %.asm | |
98 $(AS) $(AFLAGS) $< $(ASOUT)$@ | |
99 |