Mercurial > hg > Members > kono > nitros9-code
annotate level1/atari/makefile @ 2650:538d8fdbaeba
Added fuji and ataridemo.dsk
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Mon, 02 Apr 2012 20:51:09 -0500 |
parents | 1e9c8238b158 |
children | 40d55004f686 |
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 |
2648
1e9c8238b158
bootroms target should have been removed with directory
chrish@hawksoft
parents:
2631
diff
changeset
|
15 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
|
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) |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
19 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
|
20 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
|
21 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
|
22 STARTUP = startup |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
23 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
24 PACKAGENAME = $(DISTROVER).zip |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
25 DSK = $(DISTROVER).dsk |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
26 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
|
27 |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
28 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
|
29 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
30 # 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
|
31 all: |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
32 @$(ECHO) "**************************************************" |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
33 @$(ECHO) "* *" |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
34 @$(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
|
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) "**************************************************" |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
37 $(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
|
38 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
39 # 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
|
40 clean: dskclean |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
41 $(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
|
42 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
43 dskclean: |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
44 -$(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
|
45 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
46 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
|
47 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
48 dskcopy: dsk |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
49 $(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
|
50 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
51 scp: dsk |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
52 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
|
53 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
54 $(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
|
55 $(ARCHIVE) $@ $^ |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
56 |
2631
442795681807
o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2629
diff
changeset
|
57 # $(OS9GEN) $@ -b=$(BOOTFILE) |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
58 $(DSK): |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
59 $(RM) $@ |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
60 $(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
|
61 $(MAKDIR) $@,CMDS |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
62 $(MAKDIR) $@,SYS |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
63 $(MAKDIR) $@,DEFS |
2631
442795681807
o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2629
diff
changeset
|
64 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
442795681807
o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2629
diff
changeset
|
65 $(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
|
66 $(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
|
67 $(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
|
68 $(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
|
69 $(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
|
70 $(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
|
71 $(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
|
72 $(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
|
73 |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
74 $(DSK_DEMO): |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
75 $(RM) $@ |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
76 $(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
|
77 $(MAKDIR) $@,CMDS |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
78 $(CD) cmds; $(CP) $(CMDS_DEMO) ../$@,CMDS |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
79 $(foreach file, $(CMDS_DEMO), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
80 |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
81 info: |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
82 @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
|
83 @$(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
|
84 |