annotate 3rdparty/packages/sierra/spacequest2/makefile @ 2085:5b4802bc4a61

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