Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/subsim/makefile @ 2849:84d9d5765057 lwtools-port
Makefiles: Call OS9ATTR with multiple files (part 2/2)
These were all done with a sed -i line, but have been
manually verified.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 01:01:17 +0200 |
parents | 1868fbf470e7 |
children | 84d284e812cd |
rev | line source |
---|---|
1363 | 1 include ../../../rules.mak |
795 | 2 |
1363 | 3 DEPENDS = ./makefile |
795 | 4 |
2206 | 5 DSK_FLOPPY = subsim.dsk |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
6 DSK_DW = subsim_dw.dsk |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
7 DSK_DW_BECKER = subsim_becker.dsk |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
8 |
795 | 9 CMDS = presub sub sub1 sub2 sub3 sub4 sub5 sub6 |
2064 | 10 MD = $(LEVEL2)/coco3/modules |
795 | 11 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
12 DSKS = $(DSK_FLOPPY) $(DSK_DW) $(DSK_DW_BECKER) |
2216 | 13 |
795 | 14 # We make our own bootfile and kernel track |
2206 | 15 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
16 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
17 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
18 |
2206 | 19 BOOTFILE_FLOPPY = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
795 | 20 $(MD)/rbf.mn \ |
1638 | 21 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
1934 | 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 | 24 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
1318 | 25 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
795 | 26 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
27 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2206 | 28 $(MD)/rbf.mn \ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
29 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2206 | 30 $(MD)/scf.mn $(MD)/vtio.dr \ |
31 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
32 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
33 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2206 | 34 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
35 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
36 $(MD)/rbf.mn \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
37 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
38 $(MD)/scf.mn $(MD)/vtio.dr \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
39 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
40 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
41 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
42 |
795 | 43 SUPPORTFILES = control1.cmp convoys.dat diesel.dat fonts.dat germap.cmp \ |
44 hiscore.dat mission.txt missions.dat radar.dat shipmap2.dat \ | |
1343
04d092844f61
Robert Gault added missing files, modified Makefile to make dsk proper.
boisy
parents:
1318
diff
changeset
|
45 sintbl.dat stitle.pic sub.dat usamap.cmp status.dat substats.dat |
795 | 46 |
47 ALLOBJS = $(CMDS) | |
48 | |
49 all: $(ALLOBJS) | |
50 | |
51 clean: dskclean | |
52 $(RM) $(ALLOBJS) | |
53 | |
2216 | 54 dsk: all $(DSKS) |
2206 | 55 |
56 $(DSK_FLOPPY): | |
57 $(RM) $@ | |
2064 | 58 $(CD) $(LEVEL2)/coco3; make |
2206 | 59 $(OS9FORMAT_DS40) $@ -n"Sub Battle Simulator" |
60 $(MERGE) $(BOOTFILE_FLOPPY)>os9boot | |
61 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
62 $(OS9GEN) $@ -b=os9boot -t=kernel | |
63 $(RM) os9boot kernel | |
64 $(MAKDIR) $@,CMDS $@,SUB | |
65 $(CP) $(CMDS) $@,CMDS | |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
66 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2206 | 67 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell |
68 $(OS9ATTR_EXEC) $@,CMDS/shell | |
69 $(OS9RENAME) $@,CMDS/presub AutoEx | |
70 $(CP) $(SUPPORTFILES) $@,SUB | |
71 $(CP) sub6 $@,SUB | |
72 $(OS9ATTR_EXEC) $@,SUB/sub6 | |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
73 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,SUB/$(file)) |
2206 | 74 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
75 $(DSK_DW): |
2206 | 76 $(RM) $@ |
77 $(CD) $(LEVEL2)/coco3; make | |
78 $(OS9FORMAT_SS80) $@ -n"Sub Battle Simulator" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
79 $(MERGE) $(BOOTFILE_DW)>os9boot |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2216
diff
changeset
|
80 $(MERGE) $(KERNEL_DW)>kernel |
2206 | 81 $(OS9GEN) $@ -b=os9boot -t=kernel |
82 $(RM) os9boot kernel | |
83 $(MAKDIR) $@,CMDS $@,SUB | |
84 $(CP) $(CMDS) $@,CMDS | |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
85 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2206 | 86 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell |
87 $(OS9ATTR_EXEC) $@,CMDS/shell | |
88 $(OS9RENAME) $@,CMDS/presub AutoEx | |
89 $(CP) $(SUPPORTFILES) $@,SUB | |
90 $(CP) sub6 $@,SUB | |
91 $(OS9ATTR_EXEC) $@,SUB/sub6 | |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
92 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,SUB/$(file)) |
795 | 93 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
94 $(DSK_DW_BECKER): |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
95 $(RM) $@ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
96 $(CD) $(LEVEL2)/coco3; make |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
97 $(OS9FORMAT_SS80) $@ -n"Sub Battle Simulator" |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
98 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
99 $(MERGE) $(KERNEL_DW_BECKER)>kernel |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
100 $(OS9GEN) $@ -b=os9boot -t=kernel |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
101 $(RM) os9boot kernel |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
102 $(MAKDIR) $@,CMDS $@,SUB |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
103 $(CP) $(CMDS) $@,CMDS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
104 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
105 $(CP) $(LEVEL2)/coco3/cmds/shell_21 $@,CMDS/shell |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
106 $(OS9ATTR_EXEC) $@,CMDS/shell |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
107 $(OS9RENAME) $@,CMDS/presub AutoEx |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
108 $(CP) $(SUPPORTFILES) $@,SUB |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
109 $(CP) sub6 $@,SUB |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
110 $(OS9ATTR_EXEC) $@,SUB/sub6 |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
111 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,SUB/$(file)) |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
112 |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
113 dskcopy: dsk |
2216 | 114 $(CP) $(DSKS) $(DSKDIR) |
1121 | 115 |
795 | 116 dskclean: |
2216 | 117 $(RM) $(DSKS) |
118 | |
119 info: | |
120 @$(ECHO) "*** Sub Battle Simluator ***" | |
121 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |