2
# $Id: Makefile.am,v 1.3 2004/04/23 23:57:36 troth Exp $
4
# Copyright (c) 2002, 2004 Reinhard Jessich <reinhard.jessich@telering.at>
1
# Copyright (c) 2004, Theodore A. Roth
5
2
# All rights reserved.
7
4
# Redistribution and use in source and binary forms, with or without
13
10
# notice, this list of conditions and the following disclaimer in
14
11
# the documentation and/or other materials provided with the
16
# * Neither the name of the copyright holders nor the names of
17
# contributors may be used to endorse or promote products derived
18
# from this software without specific prior written permission.
20
14
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
15
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
22
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
23
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
24
# POSSIBILITY OF SUCH DAMAGE.
32
## Process this file with automake to generate Makefile.in
34
# content of AVR_CRT_xxx is determined by configure according to the multilib
35
# subdir (see acinclude.m4 in top directory)
36
noinst_DATA = $(AVR_CRT_AT90) $(AVR_CRT_TINY) $(AVR_CRT_MEGA) $(AVR_CRT_OTHER)
38
# must be added to the package, but automake doesn't know them as source
26
# $Id: Makefile.am,v 1.4 2005/08/11 20:55:20 joerg_wunsch Exp $
40
29
EXTRA_DIST = gcrt1.S
42
# if we have no sources, COMPILE is not defined by automake
43
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
45
# content of AVR_CRT_ASFLAGS is set by configure (see acinclude.m4 in top
48
$(AVR_CRT_AT90): crt%.o: gcrt1.S
49
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at90$* -c $< -o $@
51
$(AVR_CRT_MEGA): crtm%.o: gcrt1.S
52
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=atmega$* -c $< -o $@
54
$(AVR_CRT_TINY): crttn%.o: gcrt1.S
55
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=attiny$* -c $< -o $@
57
# $(AVR_CRT_OTHER) - devices that don't follow a common naming convention.
59
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at94k -c $< -o $@
62
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at90can128 -c $< -o $@
65
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at43usb320 -c $< -o $@
68
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at43usb355 -c $< -o $@
71
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at76c711 -c $< -o $@
74
$(COMPILE) $(AVR_CRT_ASFLAGS) -mmcu=at86rf401 -c $< -o $@