1 | #
|
---|
2 | # Copyright (c) 2014 Arduino. All right reserved.
|
---|
3 | #
|
---|
4 | # This library is free software; you can redistribute it and/or
|
---|
5 | # modify it under the terms of the GNU Lesser General Public
|
---|
6 | # License as published by the Free Software Foundation; either
|
---|
7 | # version 2.1 of the License, or (at your option) any later version.
|
---|
8 | #
|
---|
9 | # This library is distributed in the hope that it will be useful,
|
---|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
12 | # See the GNU Lesser General Public License for more details.
|
---|
13 | #
|
---|
14 | # You should have received a copy of the GNU Lesser General Public
|
---|
15 | # License along with this library; if not, write to the Free Software
|
---|
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
---|
17 | #
|
---|
18 |
|
---|
19 | SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables --no-print-directory
|
---|
20 |
|
---|
21 | #-------------------------------------------------------------------------------
|
---|
22 | # Rules
|
---|
23 | #-------------------------------------------------------------------------------
|
---|
24 |
|
---|
25 | all: clean test
|
---|
26 |
|
---|
27 | test: test_arduino_zero
|
---|
28 |
|
---|
29 | clean: clean_arduino_zero
|
---|
30 |
|
---|
31 | .PHONY: test_arduino_zero
|
---|
32 | test_arduino_zero:
|
---|
33 | @echo ------------------------------------------------------------------------------------
|
---|
34 | @echo --- Making test_arduino_zero
|
---|
35 | @$(MAKE) DEBUG=1 VARIANT=arduino_zero $(SUBMAKE_OPTIONS) -f test.mk test
|
---|
36 | @echo ------------------------------------------------------------------------------------
|
---|
37 |
|
---|
38 | .PHONY: clean_arduino_zero
|
---|
39 | clean_arduino_zero:
|
---|
40 | @echo ------------------------------------------------------------------------------------
|
---|
41 | @echo --- Cleaning test arduino_zero
|
---|
42 | @$(MAKE) DEBUG=1 VARIANT=arduino_zero $(SUBMAKE_OPTIONS) -f test.mk clean
|
---|
43 | @echo ------------------------------------------------------------------------------------
|
---|
44 |
|
---|
45 | .PHONY: debug_arduino_zero
|
---|
46 | debug_arduino_zero:
|
---|
47 | @echo ------------------------------------------------------------------------------------
|
---|
48 | @echo --- Debugging test arduino_zero
|
---|
49 | @$(MAKE) DEBUG=1 VARIANT=arduino_zero $(SUBMAKE_OPTIONS) -f test.mk debug
|
---|
50 | @echo ------------------------------------------------------------------------------------
|
---|