comparison makefile @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents ab1e1bca132b
children
comparison
equal deleted inserted replaced
3294:6b012cf1b400 3295:6b7a7b233925
7 include rules.mak 7 include rules.mak
8 8
9 dirs = $(NOSLIB) $(LEVEL1) $(LEVEL2) $(LEVEL3) $(3RDPARTY) 9 dirs = $(NOSLIB) $(LEVEL1) $(LEVEL2) $(LEVEL3) $(3RDPARTY)
10 10
11 # Allow the user to specify a selection of ports to build 11 # Allow the user to specify a selection of ports to build
12 # All selected ports must be of the same level
13 ifdef PORTS 12 ifdef PORTS
14 dirs = $(NOSLIB) 13 dirs = $(NOSLIB)
15 ifneq (,$(findstring coco3,$(PORTS))) 14 dirs += $(filter $(foreach p,$(PORTS),$(LEVEL1)/$(p) $(LEVEL2)/$(p)),$(wildcard $(LEVEL1)/* $(LEVEL2)/*))
16 dirs += $(LEVEL2)
17 else
18 ifneq (,$(findstring mc09l2,$(PORTS)))
19 dirs += $(LEVEL2)
20 else
21 dirs += $(LEVEL1)
22 endif
23 endif
24 endif 15 endif
25 16
26 # Make all components 17 # Make all components
27 all: 18 all:
28 @$(ECHO) "**************************************************" 19 @$(ECHO) "**************************************************"