Mercurial > hg > Members > kono > nitros9-code
annotate level1/atari/makefile @ 2849:84d9d5765057 lwtools-port
Makefiles: Call OS9ATTR with multiple files (part 2/2)
These were all done with a sed -i line, but have been
manually verified.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 01:01:17 +0200 |
parents | c1892376e7a7 |
children | 84d284e812cd |
rev | line source |
---|---|
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
1 include port.mak |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
2 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
3 # 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
|
4 #WHICHSHELL = shellplus |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
5 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
|
6 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
7 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
|
8 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
|
9 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
10 BOOTFILE = bootfiles/bootfile |
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
11 DIRS = cmds modules defs sys bootfiles wwwroot |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
12 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
13 |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
14 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
|
15 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
|
16 SYS = $(shell $(CD) sys; make --no-print-directory showobjs) |
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
17 WWWROOT = $(shell $(CD) wwwroot; make --no-print-directory showobjs) |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
18 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
|
19 STARTUP = startup |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
20 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
21 PACKAGENAME = $(DISTROVER).zip |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
22 DSK = $(DISTROVER).dsk |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
23 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
|
24 |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2648
diff
changeset
|
25 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
|
26 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
27 # 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
|
28 all: |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
29 @$(ECHO) "**************************************************" |
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
30 @$(ECHO) "*" |
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
31 @$(ECHO) "* NitrOS-9/$(CPU) Level $(LEVEL) $(PORTNAME)" |
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
32 @$(ECHO) "*" |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
33 @$(ECHO) "**************************************************" |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
34 $(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
|
35 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
36 # 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
|
37 clean: dskclean |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
38 $(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
|
39 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
40 dskclean: |
2835
c1892376e7a7
Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents:
2826
diff
changeset
|
41 $(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
|
42 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
43 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
|
44 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
45 dskcopy: dsk |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
46 $(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
|
47 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
48 scp: dsk |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
49 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
|
50 |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
51 $(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
|
52 $(ARCHIVE) $@ $^ |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
53 |
2631
442795681807
o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2629
diff
changeset
|
54 # $(OS9GEN) $@ -b=$(BOOTFILE) |
2629
65b1b5c80fec
Added bootfiles folder
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
55 $(DSK): |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
56 $(RM) $@ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2653
diff
changeset
|
57 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level 1" |
2617
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
58 $(MAKDIR) $@,CMDS |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
59 $(MAKDIR) $@,SYS |
b1145d2cb659
Adding atari port folder and modifications to init and krn to accommodate
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
60 $(MAKDIR) $@,DEFS |
2825
99fac4bd9c41
Updated makefiles in sys and inetd.conf to establish HTTPD port
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
61 $(MAKDIR) $@,WWWROOT |
2631
442795681807
o Fixed Atari SIO DWRead to timeout longer
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2629
diff
changeset
|
62 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
63 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,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
|
64 $(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
|
65 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
66 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2825
diff
changeset
|
67 $(CD) wwwroot; $(CP) $(WWWROOT) ../$@,WWWROOT |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
68 $(OS9ATTR_TEXT) $(foreach file,$(WWWROOT),$@,WWWROOT/$(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 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
70 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,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
|
71 $(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
|
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) $@ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2653
diff
changeset
|
76 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9 Atari Demo Disk" |
2650
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 |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
79 $(OS9ATTR_EXEC) $(foreach file,$(CMDS_DEMO),$@,CMDS/$(file)) |
2650
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 |