annotate level1/atari/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 40d55004f686
children cfa46960b6bd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
1 PORT = atari
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: 2653
diff changeset
2 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: 2653
diff changeset
3 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: 2653
diff changeset
4 endif
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
5 include $(NITROS9DIR)/rules.mak
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
6
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
7 CPU = 6809
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
8 LEVEL = 1
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
9
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
10 # Level 1 - Specify which shell should be used
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
11 #WHICHSHELL = shellplus
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
12 WHICHSHELL = shell_21
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
13
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
14 DISTRO = $(CPU)L$(LEVEL)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
15 DISTRONAME = nos9$(CPU)l$(LEVEL)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
16 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT)
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
17 BOOTFILE = bootfiles/bootfile
2648
1e9c8238b158 bootroms target should have been removed with directory
chrish@hawksoft
parents: 2631
diff changeset
18 DIRS = cmds modules defs sys bootfiles
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
19
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
20
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
21 CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs_dw)
2650
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
22 CMDS_DEMO = $(shell $(CD) cmds; make --no-print-directory showobjs_demo)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
23 SYS = $(shell $(CD) sys; make --no-print-directory showobjs)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
24 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
25 STARTUP = startup
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
26
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
27 PACKAGENAME = $(DISTROVER).zip
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
28 DSK = $(DISTROVER).dsk
2650
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
29 DSK_DEMO = ataridemo.dsk
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
30
2650
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
31 DSKS = $(DSK) $(DSK_DEMO)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
32
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
33 # Make all components
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
34 all:
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
35 @$(ECHO) "**************************************************"
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
36 @$(ECHO) "* *"
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
37 @$(ECHO) "* NitrOS-9/$(CPU) Level 1 Atari Port *"
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
38 @$(ECHO) "* *"
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
39 @$(ECHO) "**************************************************"
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
40 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
41
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
42 # Clean all components
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
43 clean: dskclean
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
44 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
45
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
46 dskclean:
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
47 -$(RM) $(PACKAGENAME) $(DSKS)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
48
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
49 dsk: all $(PACKAGENAME)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
50
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
51 dskcopy: dsk
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
52 $(CP) $(DSKS) $(DSKDIR)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
53
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
54 scp: dsk
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
55 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
56
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
57 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
58 $(ARCHIVE) $@ $^
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
59
2631
442795681807 o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2629
diff changeset
60 # $(OS9GEN) $@ -b=$(BOOTFILE)
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
61 $(DSK):
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
62 $(RM) $@
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
63 $(OS9FORMAT_DW3) -q $@ -n"NitrOS-9/$(CPU) Level 1"
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
64 $(MAKDIR) $@,CMDS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
65 $(MAKDIR) $@,SYS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
66 $(MAKDIR) $@,DEFS
2631
442795681807 o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2629
diff changeset
67 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
442795681807 o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2629
diff changeset
68 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
69 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
70 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
71 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
72 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
73 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
2653
40d55004f686 o krn.asm: Conditionalized out code in kernel to check for top of RAM
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2650
diff changeset
74 $(CPL) $(STARTUP) $@,startup
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
75 $(OS9ATTR_TEXT) $@,startup
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
76
2650
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
77 $(DSK_DEMO):
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
78 $(RM) $@
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
79 $(OS9FORMAT_DW3) -q $@ -n"NitrOS-9 Atari Demo Disk"
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
80 $(MAKDIR) $@,CMDS
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
81 $(CD) cmds; $(CP) $(CMDS_DEMO) ../$@,CMDS
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
82 $(foreach file, $(CMDS_DEMO), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
538d8fdbaeba Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2648
diff changeset
83
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
84 info:
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
85 @echo "*** NitrOS-9/6809 Level 1 for the Atari XL/XE ***"
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
86 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
87