annotate 3rdparty/packages/kyumgai/makefile @ 2873:46c80d4b0de1

makefiles: Factor out OS9ATTR_* command when using foreach() in order to call the command once with all the files.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 13:26:20 +0100
parents cfa6222348f7
children 1addfd8c9d5f
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
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
5
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1318
diff changeset
6 DEPENDS = ./makefile
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
7
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
8 DSK_FLOPPY = kyumgai.dsk
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
9 DSK_DW = kyumgai_dw.dsk
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
10 DSK_DW_BECKER = kyumgai_becker.dsk
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
11
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
12 CMDS = ninja ninja.snd1 ninja.snd2
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
13 MD = $(LEVEL2)/coco3/modules
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
14
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
15 DSKS = $(DSK_FLOPPY) $(DSK_DW) $(DSK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
16
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
17 # We make our own bootfile and kernel track
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
18 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
19 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
20 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
21
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
22 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
23 $(MD)/rbf.mn \
1638
1b23a41c674d Updated makefiles
boisy
parents: 1371
diff changeset
24 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
1934
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
25 $(MD)/scf.mn $(MD)/vtio.dr \
1311
e7cac8de00e9 Updated Makefiles to build bootfiles from new module filenames
boisy
parents: 1129
diff changeset
26 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
1934
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
27 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
1318
a543ba9d856b Makefiles now reference sysgo instead of cc3go
boisy
parents: 1311
diff changeset
28 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
29
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
30 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
31 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
32 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
33 $(MD)/scf.mn $(MD)/vtio.dr \
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
34 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
35 $(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
36 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
37
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
38 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
39 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
40 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
41 $(MD)/scf.mn $(MD)/vtio.dr \
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
42 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
43 $(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
44 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
45
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
46 SUPPORTFILES = backgnd.dat backgnd2.dat bigblocks.dat blakguy.dat \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
47 gameover.dat giant.dat kyumgai.pla level1.dat level2.dat \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
48 level3.dat level4.dat level5.dat level6.dat level7.dat \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
49 level8.dat monmap1.dat monmap2.dat monmap3.dat monmap4.dat \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
50 monmap5.dat monmap6.dat monmap7.dat monmap8.dat ninja.dat \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
51 objects.dat playscn.vef staffguy.dat tanguy.dat tobe.pla \
e0cee1095d1a Makefile
boisy
parents:
diff changeset
52 tobe.vef window.dat winner.vef
e0cee1095d1a Makefile
boisy
parents:
diff changeset
53
e0cee1095d1a Makefile
boisy
parents:
diff changeset
54 ALLOBJS = $(CMDS)
e0cee1095d1a Makefile
boisy
parents:
diff changeset
55
e0cee1095d1a Makefile
boisy
parents:
diff changeset
56 all: $(ALLOBJS)
e0cee1095d1a Makefile
boisy
parents:
diff changeset
57
e0cee1095d1a Makefile
boisy
parents:
diff changeset
58 clean: dskclean
e0cee1095d1a Makefile
boisy
parents:
diff changeset
59 $(RM) $(ALLOBJS)
e0cee1095d1a Makefile
boisy
parents:
diff changeset
60
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
61 dsk: all $(DSKS)
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
62
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
63 $(DSK_FLOPPY):
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
64 $(RM) $@
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
65 $(CD) $(LEVEL2)/coco3; make
2229
918c7c68ea4d Made formats quiet
boisy
parents: 2216
diff changeset
66 $(OS9FORMAT_DS40) -q $@ -n"Kyum-Gai: To Be Ninja"
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
67 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
68 $(MERGE) $(KERNEL_FLOPPY)>kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
69 $(OS9GEN) $@ -b=os9boot -t=kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
70 $(RM) os9boot kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
71 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
72 $(OS9COPY) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
73 $(OS9ATTR_EXEC) $@,CMDS/shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
74 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
75 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
76 $(OS9RENAME) $@,CMDS/ninja AutoEx
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
77 $(OS9COPY) $(SUPPORTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
78 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,$(file))
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
79
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
80 $(DSK_DW):
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
81 $(RM) $@
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
82 $(CD) $(LEVEL2)/coco3; make
2229
918c7c68ea4d Made formats quiet
boisy
parents: 2216
diff changeset
83 $(OS9FORMAT_SS80) -q $@ -n"Kyum-Gai: To Be Ninja"
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
84 $(MERGE) $(BOOTFILE_DW)>os9boot
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
85 $(MERGE) $(KERNEL_DW)>kernel
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
86 $(OS9GEN) $@ -b=os9boot -t=kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
87 $(RM) os9boot kernel
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
88 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
89 $(OS9COPY) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
90 $(OS9ATTR_EXEC) $@,CMDS/shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
91 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
92 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2204
2252a95c5725 added dw3 disk images
boisy
parents: 2064
diff changeset
93 $(OS9RENAME) $@,CMDS/ninja AutoEx
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
94 $(OS9COPY) $(SUPPORTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
95 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,$(file))
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
96
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
97 $(DSK_DW_BECKER):
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
98 $(RM) $@
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
99 $(CD) $(LEVEL2)/coco3; make
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
100 $(OS9FORMAT_SS80) -q $@ -n"Kyum-Gai: To Be Ninja"
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
101 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
102 $(MERGE) $(KERNEL_DW_BECKER)>kernel
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
103 $(OS9GEN) $@ -b=os9boot -t=kernel
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
104 $(RM) os9boot kernel
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
105 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
106 $(OS9COPY) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
107 $(OS9ATTR_EXEC) $@,CMDS/shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
108 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
109 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
110 $(OS9RENAME) $@,CMDS/ninja AutoEx
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
111 $(OS9COPY) $(SUPPORTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
112 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,$(file))
2748
1ff9d261b398 Updated makefile(s) related to fsim2, kyumgai, policequest1, and spacequest0 so that they create becker boot disks for use with drivewire4 server.
drencor-xeen
parents: 2229
diff changeset
113
1121
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
114 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
115 $(CP) $(DSKS) $(DSKDIR)
1121
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
116
772
e0cee1095d1a Makefile
boisy
parents:
diff changeset
117 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
118 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
119
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
120 info:
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
121 @$(ECHO) "*** Kyum-Gai: To Be Ninja ***"
d096a278e068 Added info targets
boisy
parents: 2204
diff changeset
122 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)