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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
5
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1318
diff changeset
6 DEPENDS = ./makefile
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
7
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
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
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
11 CMDS = koronis
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
12 MD = $(LEVEL2)/coco3/modules
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
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
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
15
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
16 # We make our own bootfile and kernel track
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
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
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
20 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
21 $(MD)/rbf.mn \
1638
1b23a41c674d Updated makefiles
boisy
parents: 1371
diff changeset
22 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
1934
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
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
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
25 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
1318
a543ba9d856b Makefiles now reference sysgo instead of cc3go
boisy
parents: 1311
diff changeset
26 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
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
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
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
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
31 $(MD)/scf.mn $(MD)/vtio.dr \
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
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
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
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
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
44 SUPPORTFILES = SAVE1 SAVE2 crobot2.c ctitle.c korvar \
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
45 level01 level02 level03 level04 level05 level06 level07 \
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
46 level08 level09 level10 level11 level12 level13 level14 \
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
47 level15 level16 level17 level18 level19 level20 \
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
48 robotbuff sinwave ultek
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
49
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
50 ALLOBJS = $(CMDS)
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
51
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
52 all: $(ALLOBJS)
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
53
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
54 clean: dskclean
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
55 $(RM) $(ALLOBJS)
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
56
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
57 dsk: all $(DSKS)
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
58
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
59 $(DSK_FLOPPY):
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
60 $(RM) $@
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
61 $(CD) $(LEVEL2)/coco3; make
2229
918c7c68ea4d Made formats quiet
boisy
parents: 2216
diff changeset
62 $(OS9FORMAT_SS35) -q $@ -n"Koronis Rift"
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
63 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
64 $(MERGE) $(KERNEL_FLOPPY)>kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
65 $(OS9GEN) $@ -b=os9boot -t=kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
66 $(RM) os9boot kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
67 $(MAKDIR) $@,CMDS
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
68 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
69 $(OS9ATTR_EXEC) $@,CMDS/shell
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
70 $(CP) $(CMDS) $@,CMDS
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
71 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
72 $(OS9RENAME) $@,CMDS/koronis AutoEx
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
73 $(CP) $(SUPPORTFILES) $@,.
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
74
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
75 $(DSK_DW):
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
76 $(RM) $@
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
77 $(CD) $(LEVEL2)/coco3; make
2229
918c7c68ea4d Made formats quiet
boisy
parents: 2216
diff changeset
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
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
81 $(OS9GEN) $@ -b=os9boot -t=kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
82 $(RM) os9boot kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
83 $(MAKDIR) $@,CMDS
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
84 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
85 $(OS9ATTR_EXEC) $@,CMDS/shell
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
86 $(CP) $(CMDS) $@,CMDS
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
88 $(OS9RENAME) $@,CMDS/koronis AutoEx
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
89 $(CP) $(SUPPORTFILES) $@,.
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
90 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);)
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
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
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
109 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
110 $(CP) $(DSKS) $(DSKDIR)
1121
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
111
763
0f86bfb2a40c Addition of Koronis Rift files
boisy
parents:
diff changeset
112 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
113 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
114
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
115 info:
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
116 @$(ECHO) "*** Koronis Rift ***"
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
117 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)