annotate 3rdparty/packages/sierra/kingsquest2/makefile @ 2099:c0e39b3fc9e9

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