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