annotate 3rdparty/packages/sierra/kingsquest1/makefile @ 2219:94ccee3fceda

Updated makefiles
author boisy
date Tue, 17 Mar 2009 20:00:21 +0000
parents d096a278e068
children 9296f92ce18c
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
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
3 vpath %.asm ../objs_lsl
2071
b1c59791822b Updated
boisy
parents:
diff changeset
4
b1c59791822b Updated
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
b1c59791822b Updated
boisy
parents:
diff changeset
6
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
7 DISK_40D = kingsquest1_40d.dsk
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
8 DSKDW3 = kingsquest1_dw3.dsk
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
9
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
10 DSKS = $(DISK_40D) $(DSKDW3)
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
11
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
12 DISK_40D_NAME = "King's Quest I"
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
13 DSKDW3_NAME = $(DISK_40D_NAME)
2078
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
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
19 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
20 KERNEL_DW3 = $(MD)/rel_32 $(MD)/boot_dw3 $(MD)/krn
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
21
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
22 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2071
b1c59791822b Updated
boisy
parents:
diff changeset
23 $(MD)/rbf.mn \
b1c59791822b Updated
boisy
parents:
diff changeset
24 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
25 $(MD)/scf.mn $(MD)/vtio.dr \
b1c59791822b Updated
boisy
parents:
diff changeset
26 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
b1c59791822b Updated
boisy
parents:
diff changeset
27 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
b1c59791822b Updated
boisy
parents:
diff changeset
28 $(MD)/vrn.dr $(MD)/vi.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
29 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
b1c59791822b Updated
boisy
parents:
diff changeset
30
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
31 BOOTFILE_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
32 $(MD)/rbf.mn \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
33 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
34 $(MD)/scf.mn $(MD)/vtio.dr \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
35 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
36 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
37 $(MD)/vrn.dr $(MD)/vi.dd \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
38 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
39
2071
b1c59791822b Updated
boisy
parents:
diff changeset
40 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
b1c59791822b Updated
boisy
parents:
diff changeset
41 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
b1c59791822b Updated
boisy
parents:
diff changeset
42 $(LEVEL2)/coco3/cmds/setime
b1c59791822b Updated
boisy
parents:
diff changeset
43
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
44 TEXTFILES = startup tOC_40d.txt
2071
b1c59791822b Updated
boisy
parents:
diff changeset
45
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
46 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
47 vol.1 vol.2 words.tok
2071
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
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
56 dsk: all $(DISK_40D) $(DSKDW3)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
57
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
58 $(DISK_40D):
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
59 $(RM) $@
2071
b1c59791822b Updated
boisy
parents:
diff changeset
60 $(CD) $(LEVEL2)/coco3; make
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
61 $(OS9FORMAT_DS40) -q $@ -n$(DISK_40D_NAME)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
62 $(MERGE) $(BOOTFILE_40D)>os9boot
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
63 $(MERGE) $(KERNEL_FLOPPY)>kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
64 $(OS9GEN) $@ -b=os9boot -t=kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
65 $(RM) os9boot kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
66 $(MAKDIR) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
67 $(CP) $(CMDS) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
68 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2071
b1c59791822b Updated
boisy
parents:
diff changeset
69 $(MERGE) $(BOOTCMDS)>shell
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
70 $(CP) shell $@,CMDS
2071
b1c59791822b Updated
boisy
parents:
diff changeset
71 $(RM) shell
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
72 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
73 $(OS9RENAME) $@,CMDS/sierra AutoEx
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
74 $(CPL) $(TEXTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
75 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
76 tocgen $@,tOC.txt $@,tOC
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
77 $(CP) $(SUPPORTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
78
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
79 $(DSKDW3):
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
80 $(RM) $@
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
81 $(CD) $(LEVEL2)/coco3; make
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
82 $(OS9FORMAT_DW3) -q $@ -n$(DISK_40D_NAME)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
83 $(MERGE) $(BOOTFILE_DW3)>os9boot
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
84 $(MERGE) $(KERNEL_DW3)>kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
85 $(OS9GEN) $@ -b=os9boot -t=kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
86 $(RM) os9boot kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
87 $(MAKDIR) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
88 $(CP) $(CMDS) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
89 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
90 $(MERGE) $(BOOTCMDS)>shell
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
91 $(CP) shell $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
92 $(RM) shell
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
93 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
94 $(OS9RENAME) $@,CMDS/sierra AutoEx
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
95 $(CPL) $(TEXTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
96 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
97 tocgen $@,tOC.txt $@,tOC
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
98 $(CP) $(SUPPORTFILES) $@,.
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
99
2071
b1c59791822b Updated
boisy
parents:
diff changeset
100 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
101 $(CP) $(DSKS) $(DSKDIR)
2071
b1c59791822b Updated
boisy
parents:
diff changeset
102
b1c59791822b Updated
boisy
parents:
diff changeset
103 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
104 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
105
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
106 info:
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
107 @$(ECHO) "*** King's Quest I ***"
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
108 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)