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.
7 # Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
9 # This file is part of simavr.
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.
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.
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/>.
27 sources := $(wildcard at*.c)
29 all : ${sources:.c=.axf} ${sources:.c=.hex} ${sources:.c=.s}
31 include ../Makefile.common
34 rm -f *.hex *.o *.axf *.s