Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/koronis/makefile @ 2868:cfa46960b6bd
makefiles: Rename DW3 to DW all over
Rename dw3*.sb to dwio*.sb
This is part of getting default and lwtools-port branches
together, trying to avoid things falling through the
cracks.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 24 Nov 2013 11:13:40 +0100 |
parents | e4a0f58a5f9b |
children | cfa6222348f7 |
rev | line source |
---|---|
2758
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2756
diff
changeset
|
1 ifndef NITROS9DIR |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2756
diff
changeset
|
2 NITROS9DIR = $(HOME)/nitros9 |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2756
diff
changeset
|
3 endif |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2756
diff
changeset
|
4 include $(NITROS9DIR)/rules.mak |
763 | 5 |
1363 | 6 DEPENDS = ./makefile |
763 | 7 |
2204 | 8 DSK_FLOPPY = koronis.dsk |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
9 DSK_DW = koronis_dw.dsk |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
10 DSK_DW_BECKER = koronis_becker.dsk |
763 | 11 CMDS = koronis |
2064 | 12 MD = $(LEVEL2)/coco3/modules |
763 | 13 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
14 DSKS = $(DSK_FLOPPY) $(DSK_DW) $(DSK_DW_BECKER) |
2216 | 15 |
763 | 16 # We make our own bootfile and kernel track |
2204 | 17 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
18 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
19 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn |
2204 | 20 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
763 | 21 $(MD)/rbf.mn \ |
1638 | 22 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
1934 | 23 $(MD)/scf.mn $(MD)/vtio.dr \ |
1311
e7cac8de00e9
Updated Makefiles to build bootfiles from new module filenames
boisy
parents:
1129
diff
changeset
|
24 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
1934 | 25 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
1318 | 26 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
763 | 27 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
28 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2204 | 29 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
30 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2204 | 31 $(MD)/scf.mn $(MD)/vtio.dr \ |
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
34 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2204 | 35 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
36 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2744
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
37 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
38 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ |
2744
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
39 $(MD)/scf.mn $(MD)/vtio.dr \ |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
40 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
41 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
42 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2744
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
43 |
763 | 44 SUPPORTFILES = SAVE1 SAVE2 crobot2.c ctitle.c korvar \ |
45 level01 level02 level03 level04 level05 level06 level07 \ | |
46 level08 level09 level10 level11 level12 level13 level14 \ | |
47 level15 level16 level17 level18 level19 level20 \ | |
48 robotbuff sinwave ultek | |
49 | |
50 ALLOBJS = $(CMDS) | |
51 | |
52 all: $(ALLOBJS) | |
53 | |
54 clean: dskclean | |
55 $(RM) $(ALLOBJS) | |
56 | |
2216 | 57 dsk: all $(DSKS) |
2204 | 58 |
59 $(DSK_FLOPPY): | |
60 $(RM) $@ | |
2064 | 61 $(CD) $(LEVEL2)/coco3; make |
2229 | 62 $(OS9FORMAT_SS35) -q $@ -n"Koronis Rift" |
2204 | 63 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot |
64 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
65 $(OS9GEN) $@ -b=os9boot -t=kernel | |
66 $(RM) os9boot kernel | |
67 $(MAKDIR) $@,CMDS | |
68 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell | |
69 $(OS9ATTR_EXEC) $@,CMDS/shell | |
70 $(CP) $(CMDS) $@,CMDS | |
71 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
72 $(OS9RENAME) $@,CMDS/koronis AutoEx | |
73 $(CP) $(SUPPORTFILES) $@,. | |
74 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
75 $(DSK_DW): |
2204 | 76 $(RM) $@ |
77 $(CD) $(LEVEL2)/coco3; make | |
2229 | 78 $(OS9FORMAT_SS35) -q $@ -n"Koronis Rift" |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
79 $(MERGE) $(BOOTFILE_DW)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
80 $(MERGE) $(KERNEL_DW)>kernel |
2204 | 81 $(OS9GEN) $@ -b=os9boot -t=kernel |
82 $(RM) os9boot kernel | |
83 $(MAKDIR) $@,CMDS | |
84 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell | |
85 $(OS9ATTR_EXEC) $@,CMDS/shell | |
86 $(CP) $(CMDS) $@,CMDS | |
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
88 $(OS9RENAME) $@,CMDS/koronis AutoEx | |
89 $(CP) $(SUPPORTFILES) $@,. | |
90 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
763 | 91 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
92 $(DSK_DW_BECKER): |
2744
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
93 $(RM) $@ |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
94 $(CD) $(LEVEL2)/coco3; make |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
95 $(OS9FORMAT_SS35) -q $@ -n"Koronis Rift" |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
96 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
97 $(MERGE) $(KERNEL_DW_BECKER)>kernel |
2744
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
98 $(OS9GEN) $@ -b=os9boot -t=kernel |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
99 $(RM) os9boot kernel |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
100 $(MAKDIR) $@,CMDS |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
101 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
102 $(OS9ATTR_EXEC) $@,CMDS/shell |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
103 $(CP) $(CMDS) $@,CMDS |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
104 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
105 $(OS9RENAME) $@,CMDS/koronis AutoEx |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
106 $(CP) $(SUPPORTFILES) $@,. |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
107 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
7a963a315d3e
Added disk creation for becker boot and koronis in 3rdparty.
drencor-xeen
parents:
2229
diff
changeset
|
108 |
1121 | 109 dskcopy: dsk |
2216 | 110 $(CP) $(DSKS) $(DSKDIR) |
1121 | 111 |
763 | 112 dskclean: |
2216 | 113 $(RM) $(DSKS) |
114 | |
115 info: | |
116 @$(ECHO) "*** Koronis Rift ***" | |
117 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |