annotate level1/atari/makefile @ 2629:65b1b5c80fec

Added bootfiles folder
author Boisy Pitre <boisy.pitre@nuance.com>
date Sun, 26 Feb 2012 07:35:52 -0600
parents b8c7b7fbf3c9
children 442795681807
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
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
2 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
3
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
4 CPU = 6809
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
5 LEVEL = 1
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 # 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
8 #WHICHSHELL = shellplus
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
9 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
10
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
11 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
12 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
13 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT)
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
14 BOOTFILE = bootfiles/bootfile
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
15 DIRS = cmds modules defs sys bootfiles bootroms
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
16
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
17
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
18 CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs_dw)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
19 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
20 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
21 STARTUP = startup
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
22
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
23 PACKAGENAME = $(DISTROVER).zip
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
24 DSK = $(DISTROVER).dsk
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
25
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
26
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
27 DSKS = $(DSK)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
28
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
29 # 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
30 all:
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
31 @$(ECHO) "**************************************************"
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
32 @$(ECHO) "* *"
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
33 @$(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
34 @$(ECHO) "* *"
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 $(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
37
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
38 # 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
39 clean: dskclean
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 clean);)
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 dskclean:
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
43 -$(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
44
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
45 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
46
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
47 dskcopy: dsk
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
48 $(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
49
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
50 scp: dsk
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
51 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
52
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
53 $(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
54 $(ARCHIVE) $@ $^
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
55
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
56 $(DSK):
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
57 $(RM) $@
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
58 $(OS9FORMAT_DW3) -q $@ -n"NitrOS-9/$(CPU) Level 1"
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
59
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
60 XX:
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
61 $(OS9GEN) $@ -b=$(BOOTFILE)
2617
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
62 $(MAKDIR) $@,CMDS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
63 $(MAKDIR) $@,SYS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
64 $(MAKDIR) $@,DEFS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
65 $(CD) cmds; $(CP) $(CMDS_DW) ../$@,CMDS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
66 $(foreach file, $(CMDS_DW), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
67 $(CD) cmds; $(CP) $(CMDS_D2) ../$@,CMDS
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
68 $(foreach file, $(CMDS_D2), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
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);)
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
74 $(CPL) $(STARTUP_DW) $@,startup
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
b1145d2cb659 Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
77 info:
2629
65b1b5c80fec Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2624
diff changeset
78 @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
79 @$(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
80