comparison 3rdparty/packages/arcadepak/makefile @ 2610:0db361fd74df

Added NitrOS-9 Arcade Pak
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 31 Jan 2012 17:17:36 -0600
parents
children e55663e7aa7b
comparison
equal deleted inserted replaced
2609:9dd4f422aac7 2610:0db361fd74df
1 include $(NITROS9DIR)/rules.mak
2
3 6809L2 = $(NITROS9DIR)/level2/coco3
4 DEPENDS = ./makefile
5
6 CMD = $(6809L2)/cmds
7 DISK_40D = arcadepack_40d.dsk
8 DISK_80D = arcadepack_80d.dsk
9 CMDS = grfdrv runb
10 SHELLMODS = $(CMD)/shell_21 $(CMD)/dir $(CMD)/echo $(CMD)/link $(CMD)/load $(CMD)/mdir
11
12 SMASHCMDS = $(shell $(CD) smash; make showobjs)
13 SMASHSYS = $(shell $(CD) smash; make showsys)
14 SMASHROOT = $(shell $(CD) smash; make showroot)
15 THEXCMDS = $(shell $(CD) thexder; make showobjs)
16 THEXSYS = $(shell $(CD) thexder; make showsys)
17 THEXROOT = $(shell $(CD) thexder; make showroot)
18 SHANGCMDS = $(shell $(CD) shanghai; make showobjs)
19 SHANGSYS = $(shell $(CD) shanghai; make showsys)
20 SHANGROOT = $(shell $(CD) shanghai; make showroot)
21 MD = $(6809L2)/modules
22
23 # We make our own bootfile and kernel track
24 KERNEL = $(MD)/rel_40 $(MD)/boot_1773_6ms $(MD)/krn
25 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
26 $(MD)/rbf.mn \
27 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
28 $(MD)/scf.mn $(MD)/vtio.dr \
29 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
30 $(MD)/cogrf.io $(MD)/term_win40.dt $(MD)/w.dw $(MD)/w1.dw \
31 $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw $(MD)/w5.dw \
32 $(MD)/w6.dw $(MD)/w7.dw \
33 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
34
35 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
36 $(MD)/rbf.mn \
37 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
38 $(MD)/scf.mn $(MD)/vtio.dr \
39 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
40 $(MD)/cogrf.io $(MD)/term_win40.dt $(MD)/w.dw $(MD)/w1.dw \
41 $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw $(MD)/w5.dw \
42 $(MD)/w6.dw $(MD)/w7.dw \
43 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
44
45 ALLOBJS = $(CMDS)
46
47 all: shell
48 $(CD) smash; make
49 $(CD) thexder; make
50 $(CD) shanghai; make
51
52 dsk: $(DISK_40D) $(DISK_80D)
53
54 shell: $(DEPENDS)
55 $(MERGE) $(SHELLMODS)>$@
56 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
57 @ls -l $@
58 @$(ECHO) ""
59
60 $(DISK_40D): all
61 $(CD) $(6809L2); make
62 $(OS9FORMAT_DS40) $@ -n"NitrOS-9 Arcade Pack"
63 $(MERGE) $(OS9BOOT_40D)>os9boot
64 $(MERGE) $(KERNEL)>kernel_1773
65 $(OS9GEN) $@ -b=os9boot -t=kernel_1773
66 $(RM) os9boot kernel_1773
67 $(MAKDIR) $@,CMDS
68 $(CP) shell $@,CMDS
69 $(RM) shell
70 $(OS9ATTR_EXEC) $@,CMDS/shell
71 $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
72 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
73 $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);)
74 $(foreach file, $(SMASHCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
75 $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);)
76 $(foreach file, $(THEXCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
77 $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);)
78 $(foreach file, $(SHANGCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
79 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
80 $(MAKDIR) $@,SYS
81 $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);)
82 $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);)
83 $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);)
84 $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);)
85 $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);)
86 $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);)
87 $(CPL) startup $@,
88
89 $(DISK_80D): all
90 $(CD) $(6809L2); make
91 $(OS9FORMAT_DS80) $@ -n"NitrOS-9 Arcade Pack"
92 $(MERGE) $(OS9BOOT_80D)>os9boot
93 $(MERGE) $(KERNEL)>kernel_1773
94 $(OS9GEN) $@ -b=os9boot -t=kernel_1773
95 $(RM) os9boot kernel_1773
96 $(MAKDIR) $@,CMDS
97 $(CP) shell $@,CMDS/shell
98 $(RM) shell
99 $(OS9ATTR_EXEC) $@,CMDS/shell
100 $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
101 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
102 $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);)
103 $(foreach file, $(SMASHCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
104 $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);)
105 $(foreach file, $(THEXCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
106 $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);)
107 $(foreach file, $(SHANGCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
108 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
109 $(MAKDIR) $@,SYS
110 $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);)
111 $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);)
112 $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);)
113 $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);)
114 $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);)
115 $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);)
116 $(CPL) startup $@,
117
118 clean: dskclean
119 $(CD) smash; make clean
120 $(CD) thexder; make clean
121 $(CD) shanghai; make clean
122
123 dskclean:
124 $(RM) $(DISK_40D) $(DISK_80D)