Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/arcadepak/makefile @ 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.
To fix this the code needed to set the envirornment variable that is in the rules.mak is now in the makefile(s) right before the include for the rules.mak file. This should fix the problem for those who do not have the NITROS9DIR envirornment variable preset.
author | drencor-xeen |
---|---|
date | Mon, 14 Jan 2013 14:37:46 -0600 |
parents | 3980dea6c3f2 |
children | 9b29d654db13 |
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 | |
15 SMASHCMDS = $(shell $(CD) smash; make showobjs) | |
16 SMASHSYS = $(shell $(CD) smash; make showsys) | |
17 SMASHROOT = $(shell $(CD) smash; make showroot) | |
18 THEXCMDS = $(shell $(CD) thexder; make showobjs) | |
19 THEXSYS = $(shell $(CD) thexder; make showsys) | |
20 THEXROOT = $(shell $(CD) thexder; make showroot) | |
21 SHANGCMDS = $(shell $(CD) shanghai; make showobjs) | |
22 SHANGSYS = $(shell $(CD) shanghai; make showsys) | |
23 SHANGROOT = $(shell $(CD) shanghai; make showroot) | |
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 | |
64 $(CD) $(6809L2); make | |
65 $(OS9FORMAT_DS40) $@ -n"NitrOS-9 Arcade Pack" | |
66 $(MERGE) $(OS9BOOT_40D)>os9boot | |
67 $(MERGE) $(KERNEL)>kernel_1773 | |
68 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 | |
69 $(RM) os9boot kernel_1773 | |
70 $(MAKDIR) $@,CMDS | |
71 $(CP) shell $@,CMDS | |
72 $(RM) shell | |
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 | |
93 $(CD) $(6809L2); make | |
94 $(OS9FORMAT_DS80) $@ -n"NitrOS-9 Arcade Pack" | |
95 $(MERGE) $(OS9BOOT_80D)>os9boot | |
96 $(MERGE) $(KERNEL)>kernel_1773 | |
97 $(OS9GEN) $@ -b=os9boot -t=kernel_1773 | |
98 $(RM) os9boot kernel_1773 | |
99 $(MAKDIR) $@,CMDS | |
100 $(CP) shell $@,CMDS/shell | |
101 $(RM) 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 | |
122 $(CD) smash; make clean | |
123 $(CD) thexder; make clean | |
124 $(CD) shanghai; make clean | |
125 | |
2613 | 126 dskcopy: dsk |
127 $(CP) $(DISK_40D) $(DISK_80D) $(DSKDIR) | |
128 | |
2610 | 129 dskclean: |
130 $(RM) $(DISK_40D) $(DISK_80D) | |
2612
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
131 |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
132 info: |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
133 @$(ECHO) "*** NitrOS-9 Arcade Pak ***" |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
134 @$(ECHO) $(DISK_40D) $(DISK_80D) |
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2610
diff
changeset
|
135 |