Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/spacequest2/makefile @ 2216:d096a278e068
Added info targets
author | boisy |
---|---|
date | Tue, 17 Mar 2009 02:52:57 +0000 |
parents | 9b93f639a2e1 |
children | 2033e76ae3c0 |
rev | line source |
---|---|
2085 | 1 include $(NITROS9DIR)/rules.mak |
2 | |
2136 | 3 vpath %.asm ../objs_lsl |
2085 | 4 |
5 DEPENDS = ./makefile | |
6 | |
2136 | 7 DISK_1_40D = spacequest2_d1_40d.dsk |
8 DISK_2_40D = spacequest2_d2_40d.dsk | |
9 DISK_3_40D = spacequest2_d3_40d.dsk | |
10 DISK_80D = spacequest2_80d.dsk | |
2085 | 11 |
2216 | 12 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D) |
13 | |
2085 | 14 DISK_1_40D_NAME = "Space Quest II Disk 1" |
15 DISK_2_40D_NAME = "Space Quest II Disk 2" | |
16 DISK_3_40D_NAME = "Space Quest II Disk 3" | |
17 DISK_80D_NAME = "Space Quest II" | |
18 | |
19 CMDS = sierra mnln scrn shdw tocgen | |
20 MD = $(LEVEL2)/coco3/modules | |
21 | |
22 # We make our own bootfile and kernel track | |
23 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn | |
24 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
25 $(MD)/rbf.mn \ | |
26 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
27 $(MD)/scf.mn $(MD)/vtio.dr \ | |
28 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
29 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
30 $(MD)/vrn.dr $(MD)/vi.dd \ | |
31 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
32 | |
33 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
34 $(MD)/rbf.mn \ | |
35 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
36 $(MD)/scf.mn $(MD)/vtio.dr \ | |
37 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
38 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
39 $(MD)/vrn.dr $(MD)/vi.dd \ | |
40 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
41 | |
42 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ | |
43 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
44 $(LEVEL2)/coco3/cmds/setime | |
45 | |
46 TEXTFILES_D1 = startup tOC_40d.txt | |
47 TEXTFILES = startup tOC_80d.txt | |
48 | |
49 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ | |
50 vol.1 words.tok | |
51 | |
2099 | 52 SUPPORTFILES_D2 = object vol.0 vol.2 |
2085 | 53 |
2099 | 54 SUPPORTFILES_D3 = object vol.0 vol.3 |
2085 | 55 |
56 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ | |
57 vol.1 vol.2 vol.3 words.tok | |
58 | |
59 ALLOBJS = $(CMDS) | |
60 | |
61 all: $(ALLOBJS) | |
62 | |
63 clean: dskclean | |
64 $(RM) $(ALLOBJS) | |
65 | |
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
|
66 dsk_40d: all |
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
|
67 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) |
2085 | 68 $(CD) $(LEVEL2)/coco3; make |
69 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) | |
70 $(MERGE) $(OS9BOOT_40D)>os9boot_40d | |
71 $(MERGE) $(KERNEL)>kernel_1773 | |
72 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 | |
73 $(RM) os9boot_40d os9boot_80d kernel_1773 | |
74 $(MAKDIR) $(DISK_1_40D),CMDS | |
75 $(CP) $(CMDS) $(DISK_1_40D),CMDS | |
76 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) | |
77 $(MERGE) $(BOOTCMDS)>shell | |
78 $(CP) shell $(DISK_1_40D),CMDS | |
79 $(RM) shell | |
80 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r | |
81 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx | |
82 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. | |
83 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt | |
84 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. | |
85 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC | |
86 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) | |
87 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. | |
88 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) | |
89 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),. | |
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
|
90 |
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
|
91 dsk_80d: all |
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
|
92 $(RM) $(DISK_80D) |
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
|
93 $(CD) $(LEVEL2)/coco3; make |
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
|
94 $(OS9FORMAT_DS80) -q $(DISK_80D) -n$(DISK_80D_NAME) |
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
|
95 $(MERGE) $(OS9BOOT_80D)>os9boot_80d |
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
|
96 $(MERGE) $(KERNEL)>kernel_1773 |
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
|
97 $(OS9GEN) $(DISK_80D) -b=os9boot_80d -t=kernel_1773 |
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
|
98 $(RM) os9boot_40d os9boot_80d kernel_1773 |
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
|
99 $(MAKDIR) $(DISK_80D),CMDS |
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
|
100 $(CP) $(CMDS) $(DISK_80D),CMDS |
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
|
101 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_80D),CMDS/$(file);) |
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
|
102 $(MERGE) $(BOOTCMDS)>shell |
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
|
103 $(CP) shell $(DISK_80D),CMDS |
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
|
104 $(RM) shell |
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
|
105 $(OS9ATTR) $(DISK_80D),CMDS/shell -e -pe -pr -e -w -r |
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
|
106 $(OS9RENAME) $(DISK_80D),CMDS/sierra AutoEx |
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
|
107 $(CPL) $(TEXTFILES) $(DISK_80D),. |
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
|
108 $(OS9RENAME) $(DISK_80D),tOC_80d.txt tOC.txt |
2085 | 109 $(CP) $(SUPPORTFILES) $(DISK_80D),. |
110 tocgen $(DISK_80D),tOC.txt $(DISK_80D),tOC | |
111 | |
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
|
112 dsk: dsk_40d dsk_80d |
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
|
113 |
2085 | 114 dskcopy: dsk |
2216 | 115 $(CP) $(DSKS) $(DSKDIR) |
2085 | 116 |
117 dskclean: | |
2216 | 118 $(RM) $(DSKS) |
119 | |
120 info: | |
121 @$(ECHO) "*** Space Quest II ***" | |
122 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |