annotate 3rdparty/packages/sierra/spacequest0/makefile @ 2216:d096a278e068

Added info targets
author boisy
date Tue, 17 Mar 2009 02:52:57 +0000
parents dd542d2395e2
children 2033e76ae3c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2138
boisy
parents:
diff changeset
1 include $(NITROS9DIR)/rules.mak
boisy
parents:
diff changeset
2
boisy
parents:
diff changeset
3 vpath %.asm ../objs_lsl
boisy
parents:
diff changeset
4
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
boisy
parents:
diff changeset
6
boisy
parents:
diff changeset
7 DISK_1_40D = spacequest0_d1_40d.dsk
boisy
parents:
diff changeset
8 DISK_2_40D = spacequest0_d2_40d.dsk
boisy
parents:
diff changeset
9 DISK_3_40D = spacequest0_d3_40d.dsk
boisy
parents:
diff changeset
10 DISK_1_80D = spacequest0_d1_80d.dsk
boisy
parents:
diff changeset
11 DISK_2_80D = spacequest0_d2_80d.dsk
boisy
parents:
diff changeset
12
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
13 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_1_80D) $(DISK_2_80D)
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
14
2138
boisy
parents:
diff changeset
15 DISK_1_40D_NAME = "Space Quest 0 Disk 1"
boisy
parents:
diff changeset
16 DISK_2_40D_NAME = "Space Quest 0 Disk 2"
boisy
parents:
diff changeset
17 DISK_3_40D_NAME = "Space Quest 0 Disk 3"
boisy
parents:
diff changeset
18 DISK_1_80D_NAME = "Space Quest 0 Disk 1"
boisy
parents:
diff changeset
19 DISK_2_80D_NAME = "Space Quest 0 Disk 2"
boisy
parents:
diff changeset
20
boisy
parents:
diff changeset
21 CMDS = sierra mnln scrn shdw tocgen
boisy
parents:
diff changeset
22 MD = $(LEVEL2)/coco3/modules
boisy
parents:
diff changeset
23
boisy
parents:
diff changeset
24 # We make our own bootfile and kernel track
boisy
parents:
diff changeset
25 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
boisy
parents:
diff changeset
26 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
boisy
parents:
diff changeset
27 $(MD)/rbf.mn \
boisy
parents:
diff changeset
28 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
boisy
parents:
diff changeset
29 $(MD)/scf.mn $(MD)/vtio.dr \
boisy
parents:
diff changeset
30 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
boisy
parents:
diff changeset
31 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
boisy
parents:
diff changeset
32 $(MD)/vrn.dr $(MD)/vi.dd \
boisy
parents:
diff changeset
33 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
boisy
parents:
diff changeset
34
boisy
parents:
diff changeset
35 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
boisy
parents:
diff changeset
36 $(MD)/rbf.mn \
boisy
parents:
diff changeset
37 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
boisy
parents:
diff changeset
38 $(MD)/scf.mn $(MD)/vtio.dr \
boisy
parents:
diff changeset
39 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
boisy
parents:
diff changeset
40 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
boisy
parents:
diff changeset
41 $(MD)/vrn.dr $(MD)/vi.dd \
boisy
parents:
diff changeset
42 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
boisy
parents:
diff changeset
43
boisy
parents:
diff changeset
44 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
boisy
parents:
diff changeset
45 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
boisy
parents:
diff changeset
46 $(LEVEL2)/coco3/cmds/setime
boisy
parents:
diff changeset
47
boisy
parents:
diff changeset
48 TEXTFILES_D1 = startup tOC_40d.txt
boisy
parents:
diff changeset
49 TEXTFILES = startup tOC_80d.txt
boisy
parents:
diff changeset
50
boisy
parents:
diff changeset
51 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
boisy
parents:
diff changeset
52 vol.1 words.tok
boisy
parents:
diff changeset
53
boisy
parents:
diff changeset
54 SUPPORTFILES_D2 = object vol.0 vol.2
boisy
parents:
diff changeset
55
boisy
parents:
diff changeset
56 SUPPORTFILES_D3 = object vol.0 vol.3
boisy
parents:
diff changeset
57
boisy
parents:
diff changeset
58 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
boisy
parents:
diff changeset
59 vol.1 vol.2 words.tok
boisy
parents:
diff changeset
60
boisy
parents:
diff changeset
61 ALLOBJS = $(CMDS)
boisy
parents:
diff changeset
62
boisy
parents:
diff changeset
63 all: $(ALLOBJS)
boisy
parents:
diff changeset
64
boisy
parents:
diff changeset
65 clean: dskclean
boisy
parents:
diff changeset
66 $(RM) $(ALLOBJS)
boisy
parents:
diff changeset
67
boisy
parents:
diff changeset
68 dsk_40d: all
boisy
parents:
diff changeset
69 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D)
boisy
parents:
diff changeset
70 $(CD) $(LEVEL2)/coco3; make
boisy
parents:
diff changeset
71 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME)
boisy
parents:
diff changeset
72 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME)
boisy
parents:
diff changeset
73 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME)
boisy
parents:
diff changeset
74 $(MERGE) $(OS9BOOT_40D)>os9boot_40d
boisy
parents:
diff changeset
75 $(MERGE) $(KERNEL)>kernel_1773
boisy
parents:
diff changeset
76 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773
boisy
parents:
diff changeset
77 $(RM) os9boot_40d kernel_1773
boisy
parents:
diff changeset
78 $(MAKDIR) $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
79 $(CP) $(CMDS) $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
80 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);)
boisy
parents:
diff changeset
81 $(MERGE) $(BOOTCMDS)>shell
boisy
parents:
diff changeset
82 $(CP) shell $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
83 $(RM) shell
boisy
parents:
diff changeset
84 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r
boisy
parents:
diff changeset
85 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx
boisy
parents:
diff changeset
86 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),.
boisy
parents:
diff changeset
87 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt
boisy
parents:
diff changeset
88 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC
boisy
parents:
diff changeset
89 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),.
boisy
parents:
diff changeset
90 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),.
boisy
parents:
diff changeset
91 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),.
boisy
parents:
diff changeset
92
boisy
parents:
diff changeset
93 dsk_80d: all
boisy
parents:
diff changeset
94 $(RM) $(DISK_1_80D) $(DISK_2_80D)
boisy
parents:
diff changeset
95 $(CD) $(LEVEL2)/coco3; make
boisy
parents:
diff changeset
96 $(OS9FORMAT_DS80) -q $(DISK_1_80D) -n$(DISK_1_80D_NAME)
boisy
parents:
diff changeset
97 $(OS9FORMAT_DS80) -q $(DISK_2_80D) -n$(DISK_2_80D_NAME)
boisy
parents:
diff changeset
98 $(MERGE) $(OS9BOOT_80D)>os9boot_80d
boisy
parents:
diff changeset
99 $(MERGE) $(KERNEL)>kernel_1773
boisy
parents:
diff changeset
100 $(OS9GEN) $(DISK_1_80D) -b=os9boot_80d -t=kernel_1773
boisy
parents:
diff changeset
101 $(RM) os9boot_80d kernel_1773
boisy
parents:
diff changeset
102 $(MAKDIR) $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
103 $(CP) $(CMDS) $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
104 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_80D),CMDS/$(file);)
boisy
parents:
diff changeset
105 $(MERGE) $(BOOTCMDS)>shell
boisy
parents:
diff changeset
106 $(CP) shell $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
107 $(RM) shell
boisy
parents:
diff changeset
108 $(OS9ATTR) $(DISK_1_80D),CMDS/shell -e -pe -pr -e -w -r
boisy
parents:
diff changeset
109 $(OS9RENAME) $(DISK_1_80D),CMDS/sierra AutoEx
boisy
parents:
diff changeset
110 $(CPL) $(TEXTFILES) $(DISK_1_80D),.
boisy
parents:
diff changeset
111 $(OS9RENAME) $(DISK_1_80D),tOC_80d.txt tOC.txt
boisy
parents:
diff changeset
112 tocgen $(DISK_1_80D),tOC.txt $(DISK_1_80D),tOC
boisy
parents:
diff changeset
113 $(CP) $(SUPPORTFILES) $(DISK_1_80D),.
boisy
parents:
diff changeset
114 $(CP) $(SUPPORTFILES_D3) $(DISK_2_80D),.
boisy
parents:
diff changeset
115
boisy
parents:
diff changeset
116 dsk: dsk_40d dsk_80d
boisy
parents:
diff changeset
117
boisy
parents:
diff changeset
118 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
119 $(CP) $(DSKS) $(DSKDIR)
2138
boisy
parents:
diff changeset
120
boisy
parents:
diff changeset
121 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
122 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
123
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
124 info:
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
125 @$(ECHO) "*** Space Quest 0 ***"
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
126 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)