watchdog: Added a test module
[simavr] / tests / Makefile
1 #
2 # This makefile take each "at*" file, extracts it's part name
3 # And compile it into an ELF binary.
4 # It also disassemble it for debugging purposes.
5
6 #       Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
7 #
8 #       This file is part of simavr.
9 #
10 #       simavr is free software: you can redistribute it and/or modify
11 #       it under the terms of the GNU General Public License as published by
12 #       the Free Software Foundation, either version 3 of the License, or
13 #       (at your option) any later version.
14 #
15 #       simavr is distributed in the hope that it will be useful,
16 #       but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 #       GNU General Public License for more details.
19 #
20 #       You should have received a copy of the GNU General Public License
21 #       along with simavr.  If not, see <http://www.gnu.org/licenses/>.
22
23
24 SHELL    = /bin/bash
25
26 sources         := $(wildcard at*.c)
27
28 all :  ${sources:.c=.axf}
29 # if you want hex files
30 #all : ${sources:.c=.hex}
31 # if you need assembler output
32 #all :  ${sources:.c=.s}  
33
34 include ../Makefile.common
35
36 clean:
37         rm -f *.hex *.o *.axf *.s