Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/kingsquest1/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 | 28ed72477814 |
rev | line source |
---|---|
2495 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2071 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
6 vpath %.asm ../objs_lsl |
2071 | 7 |
8 DEPENDS = ./makefile | |
9 | |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
10 DISK_40D = kingsquest1_40d.dsk |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
11 DSKDW = kingsquest1_dw.dsk |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
12 DSKDWBECKER = kingsquest1_becker.dsk |
2078 | 13 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
14 DSKS = $(DISK_40D) $(DSKDW) $(DSKDWBECKER) |
2216 | 15 |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
16 DISK_40D_NAME = "King's Quest I" |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
17 DSKDW_NAME = $(DISK_40D_NAME) |
2078 | 18 |
2071 | 19 CMDS = sierra mnln scrn shdw tocgen |
20 MD = $(LEVEL2)/coco3/modules | |
21 | |
22 # We make our own bootfile and kernel track | |
2219 | 23 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:
2756
diff
changeset
|
24 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:
2756
diff
changeset
|
25 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
26 |
2219 | 27 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2071 | 28 $(MD)/rbf.mn \ |
29 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
30 $(MD)/scf.mn $(MD)/vtio.dr \ | |
31 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
32 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
33 $(MD)/vrn.dr $(MD)/vi.dd \ | |
34 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
35 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
36 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2219 | 37 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
38 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2219 | 39 $(MD)/scf.mn $(MD)/vtio.dr \ |
40 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
41 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
42 $(MD)/vrn.dr $(MD)/vi.dd \ | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
43 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2219 | 44 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
45 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
46 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
47 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
48 $(MD)/scf.mn $(MD)/vtio.dr \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
49 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
50 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
51 $(MD)/vrn.dr $(MD)/vi.dd \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
52 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
53 |
2071 | 54 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
55 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
56 $(LEVEL2)/coco3/cmds/setime | |
57 | |
2515 | 58 TEXTFILES = ../startup tOC_40d.txt |
2071 | 59 |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
60 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ |
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
61 vol.1 vol.2 words.tok |
2071 | 62 |
63 ALLOBJS = $(CMDS) | |
64 | |
65 all: $(ALLOBJS) | |
66 | |
67 clean: dskclean | |
68 $(RM) $(ALLOBJS) | |
69 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
70 dsk: all $(DISK_40D) $(DSKDW) $(DSKDWBECKER) |
2219 | 71 |
72 $(DISK_40D): | |
73 $(RM) $@ | |
2071 | 74 $(CD) $(LEVEL2)/coco3; make |
2219 | 75 $(OS9FORMAT_DS40) -q $@ -n$(DISK_40D_NAME) |
76 $(MERGE) $(BOOTFILE_40D)>os9boot | |
77 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
78 $(OS9GEN) $@ -b=os9boot -t=kernel | |
79 $(RM) os9boot kernel | |
80 $(MAKDIR) $@,CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
81 $(OS9COPY) $(CMDS) $@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
82 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2071 | 83 $(MERGE) $(BOOTCMDS)>shell |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
84 $(OS9COPY) shell $@,CMDS |
2071 | 85 $(RM) shell |
2219 | 86 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
87 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
88 $(CPL) $(TEXTFILES) $@,. | |
89 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
2495 | 90 $(MOVE) tocgen toctmp |
2219 | 91 tocgen $@,tOC.txt $@,tOC |
2495 | 92 $(MOVE) toctmp tocgen |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
93 $(OS9COPY) $(SUPPORTFILES) $@,. |
2219 | 94 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
95 $(DSKDW): |
2219 | 96 $(RM) $@ |
97 $(CD) $(LEVEL2)/coco3; make | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
98 $(OS9FORMAT_DW) -q $@ -n$(DISK_40D_NAME) |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
99 $(MERGE) $(BOOTFILE_DW)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
100 $(MERGE) $(KERNEL_DW)>kernel |
2219 | 101 $(OS9GEN) $@ -b=os9boot -t=kernel |
102 $(RM) os9boot kernel | |
103 $(MAKDIR) $@,CMDS | |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
104 $(OS9COPY) $(CMDS) $@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
105 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2219 | 106 $(MERGE) $(BOOTCMDS)>shell |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
107 $(OS9COPY) shell $@,CMDS |
2219 | 108 $(RM) shell |
109 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
110 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
111 $(CPL) $(TEXTFILES) $@,. | |
112 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
113 $(MOVE) tocgen toctmp |
2219 | 114 tocgen $@,tOC.txt $@,tOC |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
115 $(MOVE) toctmp tocgen |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
116 $(OS9COPY) $(SUPPORTFILES) $@,. |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
117 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
118 $(DSKDWBECKER): |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
119 $(RM) $@ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
120 $(CD) $(LEVEL2)/coco3; make |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
121 $(OS9FORMAT_DW) -q $@ -n$(DISK_40D_NAME) |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
122 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
123 $(MERGE) $(KERNEL_DW_BECKER)>kernel |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
124 $(OS9GEN) $@ -b=os9boot -t=kernel |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
125 $(RM) os9boot kernel |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
126 $(MAKDIR) $@,CMDS |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
127 $(OS9COPY) $(CMDS) $@,CMDS |
2873
46c80d4b0de1
makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents:
2869
diff
changeset
|
128 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
129 $(MERGE) $(BOOTCMDS)>shell |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
130 $(OS9COPY) shell $@,CMDS |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
131 $(RM) shell |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
132 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
133 $(OS9RENAME) $@,CMDS/sierra AutoEx |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
134 $(CPL) $(TEXTFILES) $@,. |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
135 $(OS9RENAME) $@,tOC_40d.txt tOC.txt |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
136 $(MOVE) tocgen toctmp |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
137 tocgen $@,tOC.txt $@,tOC |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
138 $(MOVE) toctmp tocgen |
2869
cfa6222348f7
makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
139 $(OS9COPY) $(SUPPORTFILES) $@,. |
2123
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
140 |
2071 | 141 dskcopy: dsk |
2216 | 142 $(CP) $(DSKS) $(DSKDIR) |
2071 | 143 |
144 dskclean: | |
2216 | 145 $(RM) $(DSKS) |
146 | |
147 info: | |
148 @$(ECHO) "*** King's Quest I ***" | |
149 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |