annotate makefile @ 3294:6b012cf1b400

pmap: Fix building for 4K blocks DAT Do not force 8-bit offset since the value will be larger when building for 4K block DAT due to the longer header string. This doesn't affect the resulting binary for 8K blocks DAT, since the assembler will optimize it to 8-bit offset in this case. https://sourceforge.net/p/nitros9/bugs/39/
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 15 Apr 2022 16:09:38 +0200
parents ab1e1bca132b
children 6b7a7b233925
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2890
1addfd8c9d5f Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
7 include rules.mak
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8
2743
b44abaa5da88 Found that the lib folder was not being processed. Corrected issue.
drencor-xeen
parents: 2737
diff changeset
9 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
10
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
11 # 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
12 # 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
13 ifdef PORTS
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
14 dirs = $(NOSLIB)
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
15 ifneq (,$(findstring coco3,$(PORTS)))
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
16 dirs += $(LEVEL2)
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
17 else
3131
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
18 ifneq (,$(findstring mc09l2,$(PORTS)))
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
19 dirs += $(LEVEL2)
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
20 else
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
21 dirs += $(LEVEL1)
2912
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
22 endif
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2906
diff changeset
23 endif
3131
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
24 endif
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
25
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 all:
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1133
diff changeset
28 @$(ECHO) "**************************************************"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1133
diff changeset
29 @$(ECHO) "* *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1133
diff changeset
30 @$(ECHO) "* THE NITROS-9 PROJECT *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1133
diff changeset
31 @$(ECHO) "* *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1133
diff changeset
32 @$(ECHO) "**************************************************"
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
33 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) :
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 # Clean all components
2224
22b75f9788a5 Removed redundant targets
boisy
parents: 2220
diff changeset
36 clean:
3156
ab1e1bca132b makefile: Delete all disk images on clean
Tormod Volden <debian.tormod@gmail.com>
parents: 3131
diff changeset
37 $(RM) nitros9project.zip
ab1e1bca132b makefile: Delete all disk images on clean
Tormod Volden <debian.tormod@gmail.com>
parents: 3131
diff changeset
38 $(RM) $(DSKDIR)/*.dsk $(DSKDIR)/*.DSK $(DSKDIR)/*.img
ab1e1bca132b makefile: Delete all disk images on clean
Tormod Volden <debian.tormod@gmail.com>
parents: 3131
diff changeset
39 $(RM) $(DSKDIR)/ReadMe
ab1e1bca132b makefile: Delete all disk images on clean
Tormod Volden <debian.tormod@gmail.com>
parents: 3131
diff changeset
40 $(RM) $(DSKDIR)/index.html $(DSKDIR)/index.shtml
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
41 $(foreach dir,$(dirs),$(MAKE) -C $(dir) clean &&) :
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42
458
aac20055f8ad Changes for shellplus source provided by Curtis Boyle
boisy
parents: 378
diff changeset
43 # Make DSK images
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 504
diff changeset
44 dsk: all
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
45 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dsk &&) :
332
5a5ada60704b Minor changes
boisy
parents: 0
diff changeset
46
2227
b9fd9c10af89 clean now comes before update
boisy
parents: 2224
diff changeset
47 # Copy DSK images
2199
eab970e382e2 Prep for nightly builds
boisy
parents: 2191
diff changeset
48 dskcopy: all
2836
7f24db5fd761 Create $(DSKDIR) if needed when running make dskcopy
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
49 mkdir -p $(DSKDIR)
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
50 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskcopy &&) :
2512
3dcda506604b added pretty indexer to dskcopy process
aaronwolfe
parents: 2382
diff changeset
51 $(MKDSKINDEX) $(DSKDIR) > $(DSKDIR)/index.html
3dcda506604b added pretty indexer to dskcopy process
aaronwolfe
parents: 2382
diff changeset
52
458
aac20055f8ad Changes for shellplus source provided by Curtis Boyle
boisy
parents: 378
diff changeset
53 # Clean DSK images
aac20055f8ad Changes for shellplus source provided by Curtis Boyle
boisy
parents: 378
diff changeset
54 dskclean:
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
55 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskclean &&) :
2190
7887b4e72100 Added target for NitrOS-9 DriveWire
boisy
parents: 2067
diff changeset
56
2216
d096a278e068 Added info targets
boisy
parents: 2214
diff changeset
57 info:
2861
bd286ab169c7 Makefiles: Make make info prettier for dsks/ReadMe
Tormod Volden <debian.tormod@gmail.com>
parents: 2859
diff changeset
58 @$(foreach dir,$(dirs), $(MAKE) --no-print-directory -C $(dir) info &&) :
3131
e1aadba01e81 Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents: 3100
diff changeset
59
2763
c03464c24b14 Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents: 2758
diff changeset
60 # 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
61 # 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
62 # 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
63 # 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
64 # 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
65 ifdef SOURCEUSER
3100
ed4c9b04f74e makefile: Remove hg update commands
Tormod Volden <debian.tormod@gmail.com>
parents: 3099
diff changeset
66 nightly: clean dskcopy
2859
3a3cbc11ea9d Make build fail if first level subdirectory fails
Tormod Volden <debian.tormod@gmail.com>
parents: 2836
diff changeset
67 $(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
68 $(ARCHIVE) nitros9project $(DSKDIR)/*
2903
d76362b779c0 Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
69 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
70 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create
3041
7a78f43d97c1 makefile: Prepare for improved nightly upload burst script
Tormod Volden <debian.tormod@gmail.com>
parents: 2912
diff changeset
71 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst nitros9project $(shell date +%Y%m%d)"
2763
c03464c24b14 Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents: 2758
diff changeset
72 else
c03464c24b14 Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents: 2758
diff changeset
73 nightly:
3072
32191c9fe2cd makefiles: Always use ECHO macro define
Tormod Volden <debian.tormod@gmail.com>
parents: 3041
diff changeset
74 @$(ECHO) ""
32191c9fe2cd makefiles: Always use ECHO macro define
Tormod Volden <debian.tormod@gmail.com>
parents: 3041
diff changeset
75 @$(ECHO) ""
32191c9fe2cd makefiles: Always use ECHO macro define
Tormod Volden <debian.tormod@gmail.com>
parents: 3041
diff changeset
76 @$(ECHO) "You need to set the SOURCEUSER variable"
32191c9fe2cd makefiles: Always use ECHO macro define
Tormod Volden <debian.tormod@gmail.com>
parents: 3041
diff changeset
77 @$(ECHO) "You may wish to refer to the nightly"
32191c9fe2cd makefiles: Always use ECHO macro define
Tormod Volden <debian.tormod@gmail.com>
parents: 3041
diff changeset
78 @$(ECHO) "section of the makefile."
2763
c03464c24b14 Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker.
drencor-xeen
parents: 2758
diff changeset
79 endif