]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - Makefile
MCU errata fixes added to the startup code
[pes-rpp/rpp-lib.git] / Makefile
1 # This makefile tries to build all RPP projects in this repository.
2
3 SUBDIRS = Debug POSIX apps/rpp-test-suite/Debug apps/rpp-test-suite/POSIX
4
5 subdir-targets = $(SUBDIRS:%=subdir-%)
6
7 all: $(subdir-targets)
8
9 clean: $(subdir-targets)
10
11 lib: # Build only the library
12         $(MAKE) -C Debug
13
14 .PHONY: all clean lib
15
16 # Multiple submakes are invoked in the same directory - e.g.
17 # rpp-test-suite/Debug/GNUmakefile invokes Debug/GNUmakefile. We don't
18 # want these targets to be invoked twice so we forbid parallel
19 # invocation in this Makefile. Note that the submakes still run in
20 # parallel.
21 .NOTPARALLEL:
22
23 subdir-% subdir-apps/%:
24         $(MAKE) -C $(@:subdir-%=%) $(MAKECMDGOALS)