Cleanup of the Makefiles
[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
7 #       Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
8 #
9 #       This file is part of simavr.
10 #
11 #       simavr is free software: you can redistribute it and/or modify
12 #       it under the terms of the GNU General Public License as published by
13 #       the Free Software Foundation, either version 3 of the License, or
14 #       (at your option) any later version.
15 #
16 #       simavr is distributed in the hope that it will be useful,
17 #       but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 #       GNU General Public License for more details.
20 #
21 #       You should have received a copy of the GNU General Public License
22 #       along with simavr.  If not, see <http://www.gnu.org/licenses/>.
23
24
25 SHELL    = /bin/bash
26
27 sources         := $(wildcard at*.c)
28
29 all :  ${sources:.c=.axf} ${sources:.c=.hex}  ${sources:.c=.s}  
30
31 include ../Makefile.common
32
33 clean:
34         rm -f *.hex *.o *.axf *.s