Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/policequest1/makefile @ 2724:05b648103e78 lwtools-port
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Mon, 30 Jul 2012 19:35:05 -0500 |
parents | 0fe5a04e9d0c |
children | 1868fbf470e7 |
rev | line source |
---|---|
2499 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2091 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2134 | 6 vpath %.asm ../objs_lsl |
2091 | 7 |
8 DEPENDS = ./makefile | |
9 | |
2099 | 10 DISK_1_40D = policequest1_d1_40d.dsk |
11 DISK_2_40D = policequest1_d2_40d.dsk | |
12 DISK_3_40D = policequest1_d3_40d.dsk | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
13 DISK_DW = policequest1_dw.dsk |
2091 | 14 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
15 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_DW) |
2216 | 16 |
2091 | 17 DISK_1_40D_NAME = "Police Quest I Disk 1" |
18 DISK_2_40D_NAME = "Police Quest I Disk 2" | |
19 DISK_3_40D_NAME = "Police Quest I Disk 3" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
20 DISK_DW_NAME = "Police Quest I Disk" |
2091 | 21 |
22 CMDS = sierra mnln scrn shdw tocgen | |
23 MD = $(LEVEL2)/coco3/modules | |
24 | |
25 # We make our own bootfile and kernel track | |
26 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
27 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2091 | 28 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
29 $(MD)/rbf.mn \ | |
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
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 \ | |
34 $(MD)/vrn.dr $(MD)/vi.dd \ | |
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
36 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2499 | 37 $(MD)/rbf.mn \ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
38 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2499 | 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 \ | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
43 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2091 | 44 |
45 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ | |
46 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
47 $(LEVEL2)/coco3/cmds/setime | |
48 | |
2515 | 49 TEXTFILES_D1 = ../startup tOC_40d.txt |
50 TEXTFILES = ../startup tOC_80d.txt | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
51 TEXTFILES_DW = ../startup tOC_dw.txt |
2091 | 52 |
53 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ | |
54 vol.1 words.tok | |
55 | |
2099 | 56 SUPPORTFILES_D2 = object vol.0 vol.2 |
2091 | 57 |
2099 | 58 SUPPORTFILES_D3 = object vol.0 vol.3 |
2091 | 59 |
60 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ | |
61 vol.1 vol.2 vol.3 words.tok | |
62 | |
63 ALLOBJS = $(CMDS) | |
64 | |
65 all: $(ALLOBJS) | |
66 | |
67 clean: dskclean | |
68 $(RM) $(ALLOBJS) | |
69 | |
70 dsk: all | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
71 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_DW) |
2091 | 72 $(CD) $(LEVEL2)/coco3; make |
73 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
74 $(OS9FORMAT_DW) -q $(DISK_DW) -n$(DISK_DW_NAME) |
2091 | 75 $(MERGE) $(OS9BOOT_40D)>os9boot_40d |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
76 $(MERGE) $(OS9BOOT_DW)>os9boot_dw |
2091 | 77 $(MERGE) $(KERNEL)>kernel_1773 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
78 $(MERGE) $(KERNEL_DW)>kernel_dw |
2091 | 79 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
80 $(OS9GEN) $(DISK_DW) -b=os9boot_dw -t=kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
81 $(RM) os9boot_40d os9boot_80d os9boot_dw kernel_1773 kernel_dw |
2091 | 82 $(MAKDIR) $(DISK_1_40D),CMDS |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
83 $(MAKDIR) $(DISK_DW),CMDS |
2091 | 84 $(CP) $(CMDS) $(DISK_1_40D),CMDS |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
85 $(CP) $(CMDS) $(DISK_DW),CMDS |
2091 | 86 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_DW),CMDS/$(file);) |
2091 | 88 $(MERGE) $(BOOTCMDS)>shell |
89 $(CP) shell $(DISK_1_40D),CMDS | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
90 $(CP) shell $(DISK_DW),CMDS |
2091 | 91 $(RM) shell |
92 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
93 $(OS9ATTR) $(DISK_DW),CMDS/shell -e -pe -pr -e -w -r |
2091 | 94 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
95 $(OS9RENAME) $(DISK_DW),CMDS/sierra AutoEx |
2091 | 96 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
97 $(CPL) $(TEXTFILES_DW) $(DISK_DW),. |
2091 | 98 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
99 $(OS9RENAME) $(DISK_DW),tOC_dw.txt tOC.txt |
2091 | 100 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
101 $(CP) $(SUPPORTFILES) $(DISK_DW),. |
2499 | 102 $(RM) tocgen |
2091 | 103 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
104 tocgen $(DISK_DW),tOC.txt $(DISK_DW),tOC |
2091 | 105 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) |
106 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. | |
107 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) | |
108 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),. | |
109 | |
110 dskcopy: dsk | |
2216 | 111 $(CP) $(DSKS) $(DSKDIR) |
2091 | 112 |
113 dskclean: | |
2216 | 114 $(RM) $(DSKS) |
115 | |
116 info: | |
117 @$(ECHO) "*** Police Quest I ***" | |
118 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |