annotate 3rdparty/packages/sierra/kingsquest1/makefile @ 2077:110599fca80d

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