Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/arcadepak/makefile @ 2762:9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
Corrected problem with blackcauldron makefile removing tocgen in disk creation process.
Corrected problem with christmas86 makefile removing tocgen in disk creation process.
author | drencor-xeen |
---|---|
date | Wed, 16 Jan 2013 13:16:05 -0600 |
parents | e4a0f58a5f9b |
children | c03464c24b14 |
rev | line source |
---|---|
2758
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2613
diff
changeset
|
1 ifndef NITROS9DIR |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2613
diff
changeset
|
2 NITROS9DIR = $(HOME)/nitros9 |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2613
diff
changeset
|
3 endif |
2610 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
6 6809L2 = $(NITROS9DIR)/level2/coco3 | |
7 DEPENDS = ./makefile | |
8 | |
9 CMD = $(6809L2)/cmds | |
10 DISK_40D = arcadepack_40d.dsk | |
11 DISK_80D = arcadepack_80d.dsk | |
12 CMDS = grfdrv runb | |
13 SHELLMODS = $(CMD)/shell_21 $(CMD)/dir $(CMD)/echo $(CMD)/link $(CMD)/load $(CMD)/mdir | |
14 | |
2762
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
15 SMASHCMDS = $(shell $(CD) smash; make --no-print-directory showobjs) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
16 SMASHSYS = $(shell $(CD) smash; make --no-print-directory showsys) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
17 SMASHROOT = $(shell $(CD) smash; make --no-print-directory showroot) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
18 THEXCMDS = $(shell $(CD) thexder; make --no-print-directory showobjs) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
19 THEXSYS = $(shell $(CD) thexder; make --no-print-directory showsys) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
20 THEXROOT = $(shell $(CD) thexder; make --no-print-directory showroot) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
21 SHANGCMDS = $(shell $(CD) shanghai; make --no-print-directory showobjs) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
22 SHANGSYS = $(shell $(CD) shanghai; make --no-print-directory showsys) |
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
23 SHANGROOT = $(shell $(CD) shanghai; make --no-print-directory showroot) |
2610 | 24 MD = $(6809L2)/modules |
25 | |
26 # We make our own bootfile and kernel track | |
27 KERNEL = $(MD)/rel_40 $(MD)/boot_1773_6ms $(MD)/krn | |
28 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
29 $(MD)/rbf.mn \ | |
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
31 $(MD)/scf.mn $(MD)/vtio.dr \ | |
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
33 $(MD)/cogrf.io $(MD)/term_win40.dt $(MD)/w.dw $(MD)/w1.dw \ | |
34 $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw $(MD)/w5.dw \ | |
35 $(MD)/w6.dw $(MD)/w7.dw \ | |
36 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
37 | |
38 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
39 $(MD)/rbf.mn \ | |
40 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
41 $(MD)/scf.mn $(MD)/vtio.dr \ | |
42 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
43 $(MD)/cogrf.io $(MD)/term_win40.dt $(MD)/w.dw $(MD)/w1.dw \ | |
44 $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw $(MD)/w5.dw \ | |
45 $(MD)/w6.dw $(MD)/w7.dw \ | |
46 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
47 | |
48 ALLOBJS = $(CMDS) | |
49 | |
50 all: shell | |
51 $(CD) smash; make | |
52 $(CD) thexder; make | |
53 $(CD) shanghai; make | |
54 | |
55 dsk: $(DISK_40D) $(DISK_80D) | |
56 | |
57 shell: $(DEPENDS) | |
58 $(MERGE) $(SHELLMODS)>$@ | |
59 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" | |
60 @ls -l $@ | |
61 @$(ECHO) "" | |
62 | |
63 $(DISK_40D): all | |
2762
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
64 $(RM) $@ |
2610 | 65 $(CD) $(6809L2); make |
66 $(OS9FORMAT_DS40) $@ -n"NitrOS-9 Arcade Pack" | |
67 $(MERGE) $(OS9BOOT_40D)>os9boot | |
68 $(MERGE) $(KERNEL)>kernel_1773 | |
69 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 | |
70 $(RM) os9boot kernel_1773 | |
71 $(MAKDIR) $@,CMDS | |
72 $(CP) shell $@,CMDS | |
73 $(OS9ATTR_EXEC) $@,CMDS/shell | |
74 $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) | |
75 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
76 $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) | |
77 $(foreach file, $(SMASHCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
78 $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) | |
79 $(foreach file, $(THEXCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
80 $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) | |
81 $(foreach file, $(SHANGCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
82 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
83 $(MAKDIR) $@,SYS | |
84 $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) | |
85 $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) | |
86 $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) | |
87 $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) | |
88 $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) | |
89 $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) | |
90 $(CPL) startup $@, | |
91 | |
92 $(DISK_80D): all | |
2762
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
93 $(RM) $@ |
2610 | 94 $(CD) $(6809L2); make |
95 $(OS9FORMAT_DS80) $@ -n"NitrOS-9 Arcade Pack" | |
96 $(MERGE) $(OS9BOOT_80D)>os9boot | |
97 $(MERGE) $(KERNEL)>kernel_1773 | |
98 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 | |
99 $(RM) os9boot kernel_1773 | |
100 $(MAKDIR) $@,CMDS | |
101 $(CP) shell $@,CMDS/shell | |
102 $(OS9ATTR_EXEC) $@,CMDS/shell | |
103 $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) | |
104 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
105 $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) | |
106 $(foreach file, $(SMASHCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
107 $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) | |
108 $(foreach file, $(THEXCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
109 $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) | |
110 $(foreach file, $(SHANGCMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
111 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
112 $(MAKDIR) $@,SYS | |
113 $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) | |
114 $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) | |
115 $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) | |
116 $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) | |
117 $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) | |
118 $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) | |
119 $(CPL) startup $@, | |
120 | |
121 clean: dskclean | |
2762
9b29d654db13
Added empty_smash.txt and empty_thexder.txt to their respective folders and updated makefile(s) to use these files for their blank ROOT variables.
drencor-xeen
parents:
2758
diff
changeset
|
122 $(RM) shell |
2610 | 123 $(CD) smash; make clean |
124 $(CD) thexder; make clean | |
125 $(CD) shanghai; make clean | |
126 | |
2613 | 127 dskcopy: dsk |
128 $(CP) $(DISK_40D) $(DISK_80D) $(DSKDIR) | |
129 | |
2610 | 130 dskclean: |
131 $(RM) $(DISK_40D) $(DISK_80D) | |
2612
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
132 |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
133 info: |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
134 @$(ECHO) "*** NitrOS-9 Arcade Pak ***" |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
135 @$(ECHO) $(DISK_40D) $(DISK_80D) |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
136 |