~ubuntu-branches/ubuntu/dapper/simulavr/dapper

« back to all changes in this revision

Viewing changes to Makefile_AVR_Rules

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2004-04-10 13:54:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040410135417-zywapjyz252y65se
Tags: upstream-0.1.2.1
ImportĀ upstreamĀ versionĀ 0.1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# $Id: Makefile_AVR_Rules,v 1.6 2002/04/17 20:47:57 troth Exp $
 
3
#
 
4
###############################################################################
 
5
#
 
6
# simulavr - A simulator for the Atmel AVR family of microcontrollers.
 
7
# Copyright (C) 2001, 2002  Theodore A. Roth
 
8
#
 
9
# This program is free software; you can redistribute it and/or modify
 
10
# it under the terms of the GNU General Public License as published by
 
11
# the Free Software Foundation; either version 2 of the License, or
 
12
# (at your option) any later version.
 
13
#
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU General Public License for more details.
 
18
#
 
19
# You should have received a copy of the GNU General Public License
 
20
# along with this program; if not, write to the Free Software
 
21
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
#
 
23
###############################################################################
 
24
#
 
25
# Extra Rules common to building avr objects.
 
26
#
 
27
 
 
28
DEFS                 =
 
29
CFLAGS               = -g -Wall $(AVR_TARGET)
 
30
INCLUDES             = -I$(srcdir) $(AVR_INC_DIR)
 
31
CC                   = $(AVR_CC)
 
32
 
 
33
.elf.hex:
 
34
        $(AVR_OBJCOPY) -O ihex $< $@
 
35
 
 
36
.elf.bin:
 
37
        $(AVR_OBJCOPY) -O binary $< $@
 
38
 
 
39
.elf.lst:
 
40
        $(AVR_OBJDUMP) -h -S -D --stabs --disassemble-zeroes $< > $@
 
41
 
 
42
.asm.elf:
 
43
        $(AVR_AS) --gstabs $(AVR_TARGET) $(INCLUDES) -o $@ $<
 
44
 
 
45
SUFFIXES = .asm .elf .hex .bin .lst
 
46
 
 
47