Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/leisuresuitlarry/makefile @ 2499:2033e76ae3c0
Permits DW3 build to work. RG
author | robertgault |
---|---|
date | Sun, 04 Apr 2010 02:24:59 +0000 |
parents | 77f41e861afc |
children | 05b648103e78 7aa39bea428b |
rev | line source |
---|---|
2499 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2075 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
6 vpath %.asm ../objs_lsl | |
777 | 7 |
1363 | 8 DEPENDS = ./makefile |
777 | 9 |
2228 | 10 DSK_FLOPPY = leisuresuitlarry.dsk |
11 DSK_DW3 = leisuresuitlarry_dw3.dsk | |
12 DSK_NAME = "Leisure Suit Larry" | |
2086 | 13 |
2228 | 14 DSKS = $(DSK_FLOPPY) $(DSK_DW3) |
2216 | 15 |
2499 | 16 CMDS = sierra mnln scrn shdw tocgen |
2064 | 17 MD = $(LEVEL2)/coco3/modules |
777 | 18 |
19 # We make our own bootfile and kernel track | |
2228 | 20 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
21 KERNEL_DW3 = $(MD)/rel_32 $(MD)/boot_dw3 $(MD)/krn | |
22 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
777 | 23 $(MD)/rbf.mn \ |
1638 | 24 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
1934 | 25 $(MD)/scf.mn $(MD)/vtio.dr \ |
1311
e7cac8de00e9
Updated Makefiles to build bootfiles from new module filenames
boisy
parents:
1129
diff
changeset
|
26 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
1934 | 27 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
777 | 28 $(MD)/vrn.dr $(MD)/vi.dd \ |
1318 | 29 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
2228 | 30 BOOTFILE_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
31 $(MD)/rbf.mn \ | |
32 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \ | |
33 $(MD)/scf.mn $(MD)/vtio.dr \ | |
34 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
35 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
36 $(MD)/vrn.dr $(MD)/vi.dd \ | |
37 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd | |
777 | 38 |
2086 | 39 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ |
777 | 40 vol.1 vol.2 vol.3 vol.4 words.tok |
41 | |
42 ALLOBJS = $(CMDS) | |
43 | |
44 all: $(ALLOBJS) | |
45 | |
46 clean: dskclean | |
47 $(RM) $(ALLOBJS) | |
48 | |
2228 | 49 dsk: all $(DSKS) |
50 | |
51 $(DSK_FLOPPY): | |
52 $(RM) $@ | |
2064 | 53 $(CD) $(LEVEL2)/coco3; make |
2499 | 54 $(OS9FORMAT_DS80) -q $@ -n$(DSK_NAME) |
2228 | 55 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot |
56 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
57 $(OS9GEN) $@ -b=os9boot -t=kernel | |
58 $(RM) os9boot kernel | |
59 $(MAKDIR) $@,CMDS | |
60 $(CP) $(CMDS) $@,CMDS | |
61 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
62 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
63 $(CP) $(SUPPORTFILES) $@,. | |
2499 | 64 $(MOVE) tocgen toctmp |
2228 | 65 tocgen tOC.txt $@,tOC |
2499 | 66 $(MOVE) toctmp tocgen |
2228 | 67 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
68 | |
69 $(DSK_DW3): | |
70 $(RM) $@ | |
71 $(CD) $(LEVEL2)/coco3; make | |
2499 | 72 $(OS9FORMAT_DW3) -q $@ -n$(DSK_NAME) |
2228 | 73 $(MERGE) $(BOOTFILE_DW3)>os9boot |
74 $(MERGE) $(KERNEL_DW3)>kernel | |
75 $(OS9GEN) $@ -b=os9boot -t=kernel | |
76 $(RM) os9boot kernel | |
77 $(MAKDIR) $@,CMDS | |
78 $(CP) $(CMDS) $@,CMDS | |
79 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
80 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
81 $(CP) $(SUPPORTFILES) $@,. | |
2499 | 82 $(RM) tocgen |
2228 | 83 tocgen tOC.txt $@,tOC |
84 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
777 | 85 |
1121 | 86 dskcopy: dsk |
2216 | 87 $(CP) $(DSKS) $(DSKDIR) |
1121 | 88 |
777 | 89 dskclean: |
2216 | 90 $(RM) $(DSKS) |
91 | |
92 info: | |
93 @$(ECHO) "*** Leisure Suit Larry ***" | |
94 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |