annotate 3rdparty/packages/sierra/leisuresuitlarry/makefile @ 2228:77f41e861afc

Udated makefiles to make DW3 disks
author boisy
date Sun, 22 Mar 2009 12:21:43 +0000
parents f9c8c46feb74
children 2033e76ae3c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2075
eb13221efaed Updated
boisy
parents: 2064
diff changeset
1 include $(NITROS9DIR)/rules.mak
eb13221efaed Updated
boisy
parents: 2064
diff changeset
2
eb13221efaed Updated
boisy
parents: 2064
diff changeset
3 vpath %.asm ../objs_lsl
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
4
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1318
diff changeset
5 DEPENDS = ./makefile
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
6
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
7 DSK_FLOPPY = leisuresuitlarry.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
8 DSK_DW3 = leisuresuitlarry_dw3.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
9 DSK_NAME = "Leisure Suit Larry"
2086
82113c6e5aa8 Updated to use tocgen
boisy
parents: 2075
diff changeset
10
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
11 DSKS = $(DSK_FLOPPY) $(DSK_DW3)
2216
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
12
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
13 CMDS = sierra mnln scrn shdw
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
14 MD = $(LEVEL2)/coco3/modules
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
15
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
16 # We make our own bootfile and kernel track
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
17 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
18 KERNEL_DW3 = $(MD)/rel_32 $(MD)/boot_dw3 $(MD)/krn
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
19 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
20 $(MD)/rbf.mn \
1638
1b23a41c674d Updated makefiles
boisy
parents: 1371
diff changeset
21 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
1934
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
22 $(MD)/scf.mn $(MD)/vtio.dr \
1311
e7cac8de00e9 Updated Makefiles to build bootfiles from new module filenames
boisy
parents: 1129
diff changeset
23 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
1934
af946652495d Makefiles reflect new module names
boisy
parents: 1638
diff changeset
24 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
25 $(MD)/vrn.dr $(MD)/vi.dd \
1318
a543ba9d856b Makefiles now reference sysgo instead of cc3go
boisy
parents: 1311
diff changeset
26 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
27 BOOTFILE_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
28 $(MD)/rbf.mn \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
29 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
30 $(MD)/scf.mn $(MD)/vtio.dr \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
31 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
32 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
33 $(MD)/vrn.dr $(MD)/vi.dd \
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
34 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
35
2086
82113c6e5aa8 Updated to use tocgen
boisy
parents: 2075
diff changeset
36 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
37 vol.1 vol.2 vol.3 vol.4 words.tok
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
38
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
39 ALLOBJS = $(CMDS)
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
40
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
41 all: $(ALLOBJS)
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
42
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
43 clean: dskclean
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
44 $(RM) $(ALLOBJS)
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
45
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
46 dsk: all $(DSKS)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
47
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
48 $(DSK_FLOPPY):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
49 $(RM) $@
2064
c8bb06c82d68 Changes for new NitrOS-9 directory structure
boisy
parents: 1934
diff changeset
50 $(CD) $(LEVEL2)/coco3; make
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
51 $(OS9FORMAT_DS40) -q $@ -n$(DSK_NAME)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
52 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
53 $(MERGE) $(KERNEL_FLOPPY)>kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
54 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
55 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
56 $(MAKDIR) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
57 $(CP) $(CMDS) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
58 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
59 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
60 $(CP) $(SUPPORTFILES) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
61 tocgen tOC.txt $@,tOC
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
62 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
63
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
64 $(DSK_DW3):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
65 $(RM) $@
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
66 $(CD) $(LEVEL2)/coco3; make
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
67 $(OS9FORMAT_DS40) -q $@ -n$(DSK_NAME)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
68 $(MERGE) $(BOOTFILE_DW3)>os9boot
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
69 $(MERGE) $(KERNEL_DW3)>kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
70 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
71 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
72 $(MAKDIR) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
73 $(CP) $(CMDS) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
74 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
75 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
76 $(CP) $(SUPPORTFILES) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
77 tocgen tOC.txt $@,tOC
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2225
diff changeset
78 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);)
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
79
1121
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
80 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
81 $(CP) $(DSKS) $(DSKDIR)
1121
6a058c03adb1 More Makefile changes
boisy
parents: 1036
diff changeset
82
777
3a8f068cc438 Import of sources
boisy
parents:
diff changeset
83 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
84 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
85
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
86 info:
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
87 @$(ECHO) "*** Leisure Suit Larry ***"
d096a278e068 Added info targets
boisy
parents: 2099
diff changeset
88 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)