Mercurial > hg > Members > kono > nitros9-code
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 |
rev | line source |
---|---|
2071 | 1 include $(NITROS9DIR)/rules.mak |
2 | |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
3 vpath %.asm ../objs_lsl |
2071 | 4 |
5 DEPENDS = ./makefile | |
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 | 8 DSKDW3 = kingsquest1_dw3.dsk |
2078 | 9 |
2219 | 10 DSKS = $(DISK_40D) $(DSKDW3) |
2216 | 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 | 13 DSKDW3_NAME = $(DISK_40D_NAME) |
2078 | 14 |
2071 | 15 CMDS = sierra mnln scrn shdw tocgen |
16 MD = $(LEVEL2)/coco3/modules | |
17 | |
18 # We make our own bootfile and kernel track | |
2219 | 19 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
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 | 22 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2071 | 23 $(MD)/rbf.mn \ |
24 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
25 $(MD)/scf.mn $(MD)/vtio.dr \ | |
26 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
27 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
28 $(MD)/vrn.dr $(MD)/vi.dd \ | |
29 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
30 | |
2219 | 31 BOOTFILE_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
32 $(MD)/rbf.mn \ | |
33 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \ | |
34 $(MD)/scf.mn $(MD)/vtio.dr \ | |
35 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
36 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
37 $(MD)/vrn.dr $(MD)/vi.dd \ | |
38 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd | |
39 | |
2071 | 40 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
41 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
42 $(LEVEL2)/coco3/cmds/setime | |
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 | 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 | 48 |
49 ALLOBJS = $(CMDS) | |
50 | |
51 all: $(ALLOBJS) | |
52 | |
53 clean: dskclean | |
54 $(RM) $(ALLOBJS) | |
55 | |
2219 | 56 dsk: all $(DISK_40D) $(DSKDW3) |
57 | |
58 $(DISK_40D): | |
59 $(RM) $@ | |
2071 | 60 $(CD) $(LEVEL2)/coco3; make |
2219 | 61 $(OS9FORMAT_DS40) -q $@ -n$(DISK_40D_NAME) |
62 $(MERGE) $(BOOTFILE_40D)>os9boot | |
63 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
64 $(OS9GEN) $@ -b=os9boot -t=kernel | |
65 $(RM) os9boot kernel | |
66 $(MAKDIR) $@,CMDS | |
67 $(CP) $(CMDS) $@,CMDS | |
68 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
2071 | 69 $(MERGE) $(BOOTCMDS)>shell |
2219 | 70 $(CP) shell $@,CMDS |
2071 | 71 $(RM) shell |
2219 | 72 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
73 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
74 $(CPL) $(TEXTFILES) $@,. | |
75 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
76 tocgen $@,tOC.txt $@,tOC | |
77 $(CP) $(SUPPORTFILES) $@,. | |
78 | |
79 $(DSKDW3): | |
80 $(RM) $@ | |
81 $(CD) $(LEVEL2)/coco3; make | |
82 $(OS9FORMAT_DW3) -q $@ -n$(DISK_40D_NAME) | |
83 $(MERGE) $(BOOTFILE_DW3)>os9boot | |
84 $(MERGE) $(KERNEL_DW3)>kernel | |
85 $(OS9GEN) $@ -b=os9boot -t=kernel | |
86 $(RM) os9boot kernel | |
87 $(MAKDIR) $@,CMDS | |
88 $(CP) $(CMDS) $@,CMDS | |
89 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
90 $(MERGE) $(BOOTCMDS)>shell | |
91 $(CP) shell $@,CMDS | |
92 $(RM) shell | |
93 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
94 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
95 $(CPL) $(TEXTFILES) $@,. | |
96 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
97 tocgen $@,tOC.txt $@,tOC | |
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 | 100 dskcopy: dsk |
2216 | 101 $(CP) $(DSKS) $(DSKDIR) |
2071 | 102 |
103 dskclean: | |
2216 | 104 $(RM) $(DSKS) |
105 | |
106 info: | |
107 @$(ECHO) "*** King's Quest I ***" | |
108 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |