xref: /btstack/port/apollo2-em9304/example-template/Makefile (revision e6c9673776c7f85e24c76da7f4b1b83031102d2b)
1*e6c96737SMatthias Ringwald#******************************************************************************
2*e6c96737SMatthias Ringwald#
3*e6c96737SMatthias Ringwald# Makefile - Rules for building the libraries, examples and docs.
4*e6c96737SMatthias Ringwald#
5*e6c96737SMatthias Ringwald# Copyright (c) 2017, Ambiq Micro
6*e6c96737SMatthias Ringwald# All rights reserved.
7*e6c96737SMatthias Ringwald#
8*e6c96737SMatthias Ringwald# Redistribution and use in source and binary forms, with or without
9*e6c96737SMatthias Ringwald# modification, are permitted provided that the following conditions are met:
10*e6c96737SMatthias Ringwald#
11*e6c96737SMatthias Ringwald# 1. Redistributions of source code must retain the above copyright notice,
12*e6c96737SMatthias Ringwald# this list of conditions and the following disclaimer.
13*e6c96737SMatthias Ringwald#
14*e6c96737SMatthias Ringwald# 2. Redistributions in binary form must reproduce the above copyright
15*e6c96737SMatthias Ringwald# notice, this list of conditions and the following disclaimer in the
16*e6c96737SMatthias Ringwald# documentation and/or other materials provided with the distribution.
17*e6c96737SMatthias Ringwald#
18*e6c96737SMatthias Ringwald# 3. Neither the name of the copyright holder nor the names of its
19*e6c96737SMatthias Ringwald# contributors may be used to endorse or promote products derived from this
20*e6c96737SMatthias Ringwald# software without specific prior written permission.
21*e6c96737SMatthias Ringwald#
22*e6c96737SMatthias Ringwald# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23*e6c96737SMatthias Ringwald# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*e6c96737SMatthias Ringwald# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*e6c96737SMatthias Ringwald# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26*e6c96737SMatthias Ringwald# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27*e6c96737SMatthias Ringwald# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28*e6c96737SMatthias Ringwald# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29*e6c96737SMatthias Ringwald# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30*e6c96737SMatthias Ringwald# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31*e6c96737SMatthias Ringwald# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32*e6c96737SMatthias Ringwald# POSSIBILITY OF SUCH DAMAGE.
33*e6c96737SMatthias Ringwald#
34*e6c96737SMatthias Ringwald# This is part of revision 1.2.11 of the AmbiqSuite Development Package.
35*e6c96737SMatthias Ringwald#
36*e6c96737SMatthias Ringwald#******************************************************************************
37*e6c96737SMatthias Ringwald
38*e6c96737SMatthias RingwaldSUBDIRS:=$(dir $(wildcard */Makefile))
39*e6c96737SMatthias Ringwaldall:
40*e6c96737SMatthias Ringwald	@for i in ${SUBDIRS};                       \
41*e6c96737SMatthias Ringwald	 do                                         \
42*e6c96737SMatthias Ringwald	         $(MAKE) -C $${i} || exit $$?;      \
43*e6c96737SMatthias Ringwald	 done
44*e6c96737SMatthias Ringwaldclean:
45*e6c96737SMatthias Ringwald	@for i in ${SUBDIRS};                       \
46*e6c96737SMatthias Ringwald	 do                                         \
47*e6c96737SMatthias Ringwald	         $(MAKE) -C $${i} clean;            \
48*e6c96737SMatthias Ringwald	 done
49*e6c96737SMatthias Ringwald.PHONY: $(SUBDIRS) all clean
50