Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 3267:024ad1d926fd
Get gfx2 to build from cmds folders
Now that gfx2.asm needs to include coco3vtio.d the latter needs to be
built first and be accessed from the port-specific defs folder.
OTOH the one built in 3rd-party/packages/basic09 is built only later
during a full build.
(All the different defs folders and .d files still puzzle me.)
Also updated coco3fpga/defs/makefile to be based on the coco3 one.
The mc09l2 port doesn't need gfx and gfx2.
Note for later:
This whole build of basic09 components from the 3rdparty folder
during the ports builds is not very nice. At a minimum we should
try to limit the extra --includedir to the few commands needing it.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 17 Jul 2019 01:14:55 +0200 |
parents | 0c5b16b0b65d |
children |
rev | line source |
---|---|
2046 | 1 include $(NITROS9DIR)/rules.mak |
455 | 2 |
3145
0c5b16b0b65d
Include coco3fpga port in default build
Bill Pierce <merlinious999@gmail.com>
parents:
3131
diff
changeset
|
3 dirs = coco3 coco3_6309 mc09l2 coco3fpga |
2912
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
4 ifdef PORTS |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
5 dirs = $(PORTS) |
14b4f2791bb3
Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
6 endif |
341 | 7 |
0 | 8 # Make all components |
9 all: | |
1363 | 10 @$(ECHO) "**************************************************" |
11 @$(ECHO) "* *" | |
2046 | 12 @$(ECHO) "* NitrOS-9 Level 2 Ports *" |
1363 | 13 @$(ECHO) "* *" |
14 @$(ECHO) "**************************************************" | |
2913
1c1600cc9f02
makefiles: Stop if a component fails to build
Tormod Volden <debian.tormod@gmail.com>
parents:
2912
diff
changeset
|
15 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) : |
0 | 16 |
17 # Clean all components | |
2224 | 18 clean: |
3053
22122ff8bef3
level 2/3 makefiles: Cosmetic/whitespace changes
Tormod Volden <debian.tormod@gmail.com>
parents:
2944
diff
changeset
|
19 $(foreach dir,$(dirs),$(MAKE) -C $(dir) clean &&) : |
1705 | 20 |
2046 | 21 # Make DSK images |
22 dsk: | |
2944
ab3f9eb5fc5c
level*/makefile: Abort if dsk or dskcopy target fails in subdir
Tormod Volden <debian.tormod@gmail.com>
parents:
2913
diff
changeset
|
23 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dsk &&) : |
1126 | 24 |
2199 | 25 # Copy DSK images |
26 dskcopy: | |
2944
ab3f9eb5fc5c
level*/makefile: Abort if dsk or dskcopy target fails in subdir
Tormod Volden <debian.tormod@gmail.com>
parents:
2913
diff
changeset
|
27 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskcopy &&) : |
2199 | 28 |
2046 | 29 # Clean DSK images |
30 dskclean: | |
3053
22122ff8bef3
level 2/3 makefiles: Cosmetic/whitespace changes
Tormod Volden <debian.tormod@gmail.com>
parents:
2944
diff
changeset
|
31 $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskclean &&) : |
2216 | 32 |
33 # Info | |
34 info: | |
3053
22122ff8bef3
level 2/3 makefiles: Cosmetic/whitespace changes
Tormod Volden <debian.tormod@gmail.com>
parents:
2944
diff
changeset
|
35 @$(foreach dir,$(dirs),$(MAKE) -C $(dir) info; $(ECHO);) |