annotate 3rdparty/packages/sierra/kingsquest1/makefile @ 2128:fa13c8170080

Updated
author boisy
date Wed, 26 Dec 2007 14:21:57 +0000
parents 82081ff99be5
children e1d1f7c55f32
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
2099
c0e39b3fc9e9 Updated
boisy
parents: 2082
diff changeset
7 DISK_1_40D = kingsquest1_d1_40d.dsk
c0e39b3fc9e9 Updated
boisy
parents: 2082
diff changeset
8 DISK_2_40D = kingsquest1_d2_40d.dsk
c0e39b3fc9e9 Updated
boisy
parents: 2082
diff changeset
9 DISK_80D = kingsquest1_80d.dsk
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
10
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
11 DISK_1_40D_NAME = "King's Quest I Disk 1"
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
12 DISK_2_40D_NAME = "King's Quest I Disk 2"
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
13 DISK_80D_NAME = "King's Quest I"
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
14
2071
b1c59791822b Updated
boisy
parents:
diff changeset
15 CMDS = sierra mnln scrn shdw tocgen
b1c59791822b Updated
boisy
parents:
diff changeset
16 MD = $(LEVEL2)/coco3/modules
b1c59791822b Updated
boisy
parents:
diff changeset
17
b1c59791822b Updated
boisy
parents:
diff changeset
18 # We make our own bootfile and kernel track
b1c59791822b Updated
boisy
parents:
diff changeset
19 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
b1c59791822b Updated
boisy
parents:
diff changeset
20 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
b1c59791822b Updated
boisy
parents:
diff changeset
21 $(MD)/rbf.mn \
b1c59791822b Updated
boisy
parents:
diff changeset
22 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
23 $(MD)/scf.mn $(MD)/vtio.dr \
b1c59791822b Updated
boisy
parents:
diff changeset
24 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
b1c59791822b Updated
boisy
parents:
diff changeset
25 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
b1c59791822b Updated
boisy
parents:
diff changeset
26 $(MD)/vrn.dr $(MD)/vi.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
27 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
b1c59791822b Updated
boisy
parents:
diff changeset
28
b1c59791822b Updated
boisy
parents:
diff changeset
29 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
b1c59791822b Updated
boisy
parents:
diff changeset
30 $(MD)/rbf.mn \
b1c59791822b Updated
boisy
parents:
diff changeset
31 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
32 $(MD)/scf.mn $(MD)/vtio.dr \
b1c59791822b Updated
boisy
parents:
diff changeset
33 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
b1c59791822b Updated
boisy
parents:
diff changeset
34 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
b1c59791822b Updated
boisy
parents:
diff changeset
35 $(MD)/vrn.dr $(MD)/vi.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
36 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
b1c59791822b Updated
boisy
parents:
diff changeset
37
b1c59791822b Updated
boisy
parents:
diff changeset
38 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
b1c59791822b Updated
boisy
parents:
diff changeset
39 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
b1c59791822b Updated
boisy
parents:
diff changeset
40 $(LEVEL2)/coco3/cmds/setime
b1c59791822b Updated
boisy
parents:
diff changeset
41
b1c59791822b Updated
boisy
parents:
diff changeset
42 TEXTFILES_D1 = startup tOC_40d.txt
b1c59791822b Updated
boisy
parents:
diff changeset
43 TEXTFILES = startup tOC_80d.txt
b1c59791822b Updated
boisy
parents:
diff changeset
44
2077
110599fca80d Now uses tocgen which is now part of toolshed
boisy
parents: 2071
diff changeset
45 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
2071
b1c59791822b Updated
boisy
parents:
diff changeset
46 vol.1 words.tok
b1c59791822b Updated
boisy
parents:
diff changeset
47
2099
c0e39b3fc9e9 Updated
boisy
parents: 2082
diff changeset
48 SUPPORTFILES_D2 = object vol.0 vol.2
2071
b1c59791822b Updated
boisy
parents:
diff changeset
49
2128
fa13c8170080 Updated
boisy
parents: 2123
diff changeset
50 SUPPORTFILES = $(SUPPORTFILES_D1) object vol.0 vol.1 vol.2
2071
b1c59791822b Updated
boisy
parents:
diff changeset
51
b1c59791822b Updated
boisy
parents:
diff changeset
52 ALLOBJS = $(CMDS)
b1c59791822b Updated
boisy
parents:
diff changeset
53
b1c59791822b Updated
boisy
parents:
diff changeset
54 all: $(ALLOBJS)
b1c59791822b Updated
boisy
parents:
diff changeset
55
b1c59791822b Updated
boisy
parents:
diff changeset
56 clean: dskclean
b1c59791822b Updated
boisy
parents:
diff changeset
57 $(RM) $(ALLOBJS)
b1c59791822b Updated
boisy
parents:
diff changeset
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
b1c59791822b Updated
boisy
parents:
diff changeset
61 $(CD) $(LEVEL2)/coco3; make
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
62 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME)
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
63 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME)
2071
b1c59791822b Updated
boisy
parents:
diff changeset
64 $(MERGE) $(OS9BOOT_40D)>os9boot_40d
b1c59791822b Updated
boisy
parents:
diff changeset
65 $(MERGE) $(KERNEL)>kernel_1773
b1c59791822b Updated
boisy
parents:
diff changeset
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
b1c59791822b Updated
boisy
parents:
diff changeset
68 $(MAKDIR) $(DISK_1_40D),CMDS
b1c59791822b Updated
boisy
parents:
diff changeset
69 $(CP) $(CMDS) $(DISK_1_40D),CMDS
b1c59791822b Updated
boisy
parents:
diff changeset
70 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);)
b1c59791822b Updated
boisy
parents:
diff changeset
71 $(MERGE) $(BOOTCMDS)>shell
b1c59791822b Updated
boisy
parents:
diff changeset
72 $(CP) shell $(DISK_1_40D),CMDS
b1c59791822b Updated
boisy
parents:
diff changeset
73 $(RM) shell
b1c59791822b Updated
boisy
parents:
diff changeset
74 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r
b1c59791822b Updated
boisy
parents:
diff changeset
75 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx
b1c59791822b Updated
boisy
parents:
diff changeset
76 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),.
b1c59791822b Updated
boisy
parents:
diff changeset
77 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
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
b1c59791822b Updated
boisy
parents:
diff changeset
98 $(CPL) $(TEXTFILES) $(DISK_80D),.
b1c59791822b Updated
boisy
parents:
diff changeset
99 $(OS9RENAME) $(DISK_80D),tOC_80d.txt tOC.txt
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
100 tocgen $(DISK_80D),tOC.txt $(DISK_80D),tOC
2071
b1c59791822b Updated
boisy
parents:
diff changeset
101 $(CP) $(SUPPORTFILES) $(DISK_80D),.
b1c59791822b Updated
boisy
parents:
diff changeset
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
b1c59791822b Updated
boisy
parents:
diff changeset
105 dskcopy: dsk
b1c59791822b Updated
boisy
parents:
diff changeset
106 $(CP) $(DISK_1_40D) $(DISK_2_40D) $(DISK_80D) $(DSKDIR)
b1c59791822b Updated
boisy
parents:
diff changeset
107
b1c59791822b Updated
boisy
parents:
diff changeset
108 dskclean:
b1c59791822b Updated
boisy
parents:
diff changeset
109 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_80D)