Mercurial > hg > Members > kono > nitros9-code
annotate makefile @ 2941:4446149f7ea9
rb1773: Support 6309 on level 1 as well
author | Robert Gault <robert.gault@att.net> |
---|---|
date | Sat, 25 Jan 2014 23:22:30 +0100 |
parents | 14b4f2791bb3 |
children | 7a78f43d97c1 |
rev | line source |
---|---|
2906
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
1 |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
2 ifndef NITROS9DIR |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
3 NITROS9DIR = $(PWD) |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
4 endif |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
5 |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
6 export NITROS9DIR |
67dfbd60d548
Set default NITROS9DIR in Makefile not rules.mak
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
7 |
2890
1addfd8c9d5f
Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents:
2868
diff
changeset
|
8 include rules.mak |
0 | 9 |
2743
b44abaa5da88
Found that the lib folder was not being processed. Corrected issue.
drencor-xeen
parents:
2737
diff
changeset
|
10 dirs = $(NOSLIB) $(LEVEL1) $(LEVEL2) $(LEVEL3) $(3RDPARTY) |
2912
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
11 |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
12 # Allow the user to specify a selection of ports to build |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
13 # All selected ports must be of the same level |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
14 ifdef PORTS |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
15 dirs = $(NOSLIB) |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
16 ifneq (,$(findstring coco3,$(PORTS))) |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
17 dirs += $(LEVEL2) |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
18 else |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
19 dirs += $(LEVEL1) |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
20 endif |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2906
diff
changeset
|
21 endif |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
504
diff
changeset
|
22 |
0 | 23 # Make all components |
24 all: | |
1363 | 25 @$(ECHO) "**************************************************" |
26 @$(ECHO) "* *" | |
27 @$(ECHO) "* THE NITROS-9 PROJECT *" | |
28 @$(ECHO) "* *" | |
29 @$(ECHO) "**************************************************" | |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
30 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) : |
0 | 31 |
32 # Clean all components | |
2224 | 33 clean: |
2835
c1892376e7a7
Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
34 $(RM) nitros9project.zip $(DSKDIR)/*.dsk $(DSKDIR)/ReadMe $(DSKDIR)/index.shtml |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
35 $(foreach dir,$(dirs),$(MAKE) -C $(dir) clean &&) : |
2749
7f7274884574
Updated makefile(s) for spacequest1, spacequest2, subsim, mm, multivue, and rof so that becker disks, for use in DriveWire4 server, are created.
drencor-xeen
parents:
2743
diff
changeset
|
36 $(RM) $(DSKDIR)/ReadMe |
7f7274884574
Updated makefile(s) for spacequest1, spacequest2, subsim, mm, multivue, and rof so that becker disks, for use in DriveWire4 server, are created.
drencor-xeen
parents:
2743
diff
changeset
|
37 $(RM) $(DSKDIR)/index.html |
0 | 38 |
2200 | 39 # Do CVS update |
2606
23bfa8f52dd3
Updated makefile for Mercurial
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2568
diff
changeset
|
40 hgupdate: |
2616 | 41 hg pull |
2606
23bfa8f52dd3
Updated makefile for Mercurial
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2568
diff
changeset
|
42 hg update |
2200 | 43 |
458
aac20055f8ad
Changes for shellplus source provided by Curtis Boyle
boisy
parents:
378
diff
changeset
|
44 # Make DSK images |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
504
diff
changeset
|
45 dsk: all |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
46 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dsk &&) : |
332 | 47 |
2227 | 48 # Copy DSK images |
2199 | 49 dskcopy: all |
2836
7f24db5fd761
Create $(DSKDIR) if needed when running make dskcopy
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
50 mkdir -p $(DSKDIR) |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
51 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskcopy &&) : |
2512 | 52 $(MKDSKINDEX) $(DSKDIR) > $(DSKDIR)/index.html |
53 | |
2199 | 54 |
458
aac20055f8ad
Changes for shellplus source provided by Curtis Boyle
boisy
parents:
378
diff
changeset
|
55 # Clean DSK images |
aac20055f8ad
Changes for shellplus source provided by Curtis Boyle
boisy
parents:
378
diff
changeset
|
56 dskclean: |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
57 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskclean &&) : |
2190 | 58 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2616
diff
changeset
|
59 # DriveWire DSK images |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2764
diff
changeset
|
60 dwdsk = $(LEVEL1)/coco/nos96809l1coco1_dw.dsk $(LEVEL1)/coco/nos96809l1coco2_dw.dsk \ |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2764
diff
changeset
|
61 $(LEVEL2)/coco3/nos96809l2_dw.dsk $(LEVEL2)/coco3_6309/nos96309l2_dw.dsk |
2191 | 62 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2764
diff
changeset
|
63 dw: dsk |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2764
diff
changeset
|
64 $(ARCHIVE) nitros9_drivewire3.zip $(dwdsk) |
2764
2af3df45f157
Updated main makefile so that when "dw3" and "becker" are activated they call the dependency "dsk".
drencor-xeen
parents:
2763
diff
changeset
|
65 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
66 # DriveWire Becker DSK Images |
2757
8888cd0cac1a
Added becker archive creation to the main makefile. The command is "make becker".
drencor-xeen
parents:
2749
diff
changeset
|
67 beckerdsk = $(LEVEL1)/coco/nos96809l1coco_becker.dsk \ |
8888cd0cac1a
Added becker archive creation to the main makefile. The command is "make becker".
drencor-xeen
parents:
2749
diff
changeset
|
68 $(LEVEL2)/coco3/nos96809l2_becker.dsk $(LEVEL2)/coco3_6309/nos96309l2_becker.dsk |
8888cd0cac1a
Added becker archive creation to the main makefile. The command is "make becker".
drencor-xeen
parents:
2749
diff
changeset
|
69 |
2764
2af3df45f157
Updated main makefile so that when "dw3" and "becker" are activated they call the dependency "dsk".
drencor-xeen
parents:
2763
diff
changeset
|
70 becker: dsk |
2757
8888cd0cac1a
Added becker archive creation to the main makefile. The command is "make becker".
drencor-xeen
parents:
2749
diff
changeset
|
71 $(ARCHIVE) nitros9_becker.zip $(beckerdsk) |
8888cd0cac1a
Added becker archive creation to the main makefile. The command is "make becker".
drencor-xeen
parents:
2749
diff
changeset
|
72 |
2216 | 73 info: |
2861
bd286ab169c7
Makefiles: Make make info prettier for dsks/ReadMe
Tormod Volden <debian.tormod@gmail.com>
parents:
2859
diff
changeset
|
74 @$(foreach dir,$(dirs), $(MAKE) --no-print-directory -C $(dir) info &&) : |
2216 | 75 |
2763
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
76 # This section is to do the nightly build and upload |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
77 # to sourceforge.net you must set the environment |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
78 # variable SOURCEUSER to the userid you have for sourceforge.net |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
79 # The "burst" script is found in the scripts folder and must |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
80 # on your ssh account at sourceforge.net |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
81 ifdef SOURCEUSER |
2606
23bfa8f52dd3
Updated makefile for Mercurial
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2568
diff
changeset
|
82 nightly: clean hgupdate dskcopy |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
83 $(MAKE) info > $(DSKDIR)/ReadMe |
2749
7f7274884574
Updated makefile(s) for spacequest1, spacequest2, subsim, mm, multivue, and rof so that becker disks, for use in DriveWire4 server, are created.
drencor-xeen
parents:
2743
diff
changeset
|
84 $(ARCHIVE) nitros9project $(DSKDIR)/* |
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
85 scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/project-web/nitros9/htdocs/nitros9project-$(shell date +%Y%m%d).zip |
2737
17cf591458c4
Changed the nightly build section to user a environment variable for the user name when connecting to sourceforge.
drencor-xeen
parents:
2731
diff
changeset
|
86 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create |
17cf591458c4
Changed the nightly build section to user a environment variable for the user name when connecting to sourceforge.
drencor-xeen
parents:
2731
diff
changeset
|
87 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst" |
2763
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
88 else |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
89 nightly: |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
90 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
91 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
92 @echo "You need to set the SOURCEUSER variable" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
93 @echo "You may wish to refer to the nightly" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
94 @echo "section of the makefile." |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
95 endif |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
96 |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
97 # This section is to run a nightly test. |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
98 # This requires you to setup a environment variable |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
99 # called TESTSSHSERVER. |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
100 # example would be: TESTSSHSERVER='testuser@localhost' |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
101 # another example: TESTSSHSERVER='testuser@test.testhost.com' |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
102 # |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
103 # You are also required to setup a target path for your file |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
104 # and the environment variable that is being used in this |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
105 # section is called TESTSSHDIR |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
106 ifdef TESTSSHSERVER |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
107 ifdef TESTSSHDIR |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
108 nightlytest: clean hgupdate dskcopy |
2859
3a3cbc11ea9d
Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents:
2836
diff
changeset
|
109 $(MAKE) info > $(DSKDIR)/ReadMe |
2763
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
110 $(ARCHIVE) nitros9project $(DSKDIR)/* |
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
111 scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR)/nitros9project-$(shell date +%Y%m%d).zip |
2763
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
112 ssh $(TESTSSHSERVER) "./burst" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
113 else |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
114 nightlytest: |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
115 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
116 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
117 @echo "You need to set the TESTSSHDIR variable" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
118 @echo "You may wish to refer to the nightlytest" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
119 @echo "section of the makefile to see what" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
120 @echo "needs to be setup first before using" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
121 @echo "this option" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
122 endif |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
123 else |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
124 nightlytest: |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
125 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
126 @echo "" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
127 @echo "You need to set the TESTSSHSERVER variable" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
128 @echo "You may wish to refer to the nightlytest" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
129 @echo "section of the makefile to see what" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
130 @echo "needs to be setup first before using" |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
131 @echo "this option." |
c03464c24b14
Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents:
2758
diff
changeset
|
132 endif |