1 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2 # 2009 Free Software Foundation, Inc.
4 # This file is part of GCC.
6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GCC is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>.
20 driver-avr.o: $(srcdir)/config/avr/driver-avr.c \
21 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
22 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
24 avr-devices.o: $(srcdir)/config/avr/avr-devices.c \
25 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
26 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
28 LIB1ASMSRC = avr/libgcc.S
50 # We do not have the DF type.
51 # Most of the C functions in libgcc2 use almost all registers,
52 # so use -mcall-prologues for smaller code size.
53 TARGET_LIBGCC2_CFLAGS = -DDF=SF -Dinhibit_libc -mcall-prologues -Os
55 fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/avr/t-avr
56 echo '#define FLOAT' > fp-bit.c
57 echo '#define FLOAT_ONLY' >> fp-bit.c
58 echo '#define CMPtype QItype' >> fp-bit.c
59 echo '#define DF SF' >> fp-bit.c
60 echo '#define DI SI' >> fp-bit.c
61 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
62 echo '#define SMALL_MACHINE' >> fp-bit.c
63 echo 'typedef int QItype __attribute__ ((mode (QI)));' >> fp-bit.c
64 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
68 MULTILIB_OPTIONS = mmcu=avr2/mmcu=avr25/mmcu=avr3/mmcu=avr31/mmcu=avr35/mmcu=avr4/mmcu=avr5/mmcu=avr51/mmcu=avr6
69 MULTILIB_DIRNAMES = avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6
71 # The many avr2 matches are not listed here - this is the default.
73 mmcu?avr25=mmcu?ata6289 \
74 mmcu?avr25=mmcu?attiny13 \
75 mmcu?avr25=mmcu?attiny13a \
76 mmcu?avr25=mmcu?attiny2313 \
77 mmcu?avr25=mmcu?attiny24 \
78 mmcu?avr25=mmcu?attiny44 \
79 mmcu?avr25=mmcu?attiny84 \
80 mmcu?avr25=mmcu?attiny25 \
81 mmcu?avr25=mmcu?attiny45 \
82 mmcu?avr25=mmcu?attiny85 \
83 mmcu?avr25=mmcu?attiny261 \
84 mmcu?avr25=mmcu?attiny461 \
85 mmcu?avr25=mmcu?attiny861 \
86 mmcu?avr25=mmcu?attiny43u \
87 mmcu?avr25=mmcu?attiny87 \
88 mmcu?avr25=mmcu?attiny48 \
89 mmcu?avr25=mmcu?attiny88 \
90 mmcu?avr25=mmcu?at86rf401 \
91 mmcu?avr3=mmcu?at43usb355 \
92 mmcu?avr3=mmcu?at76c711 \
93 mmcu?avr31=mmcu?atmega103 \
94 mmcu?avr31=mmcu?at43usb320 \
95 mmcu?avr35=mmcu?at90usb82 \
96 mmcu?avr35=mmcu?at90usb162 \
97 mmcu?avr35=mmcu?attiny167 \
98 mmcu?avr35=mmcu?attiny327 \
99 mmcu?avr4=mmcu?atmega48 \
100 mmcu?avr4=mmcu?atmega48p \
101 mmcu?avr4=mmcu?atmega8 \
102 mmcu?avr4=mmcu?atmega8515 \
103 mmcu?avr4=mmcu?atmega8535 \
104 mmcu?avr4=mmcu?atmega88 \
105 mmcu?avr4=mmcu?atmega88p \
106 mmcu?avr4=mmcu?atmega8hva \
107 mmcu?avr4=mmcu?atmega4hvd \
108 mmcu?avr4=mmcu?atmega8hvd \
109 mmcu?avr4=mmcu?atmega8c1 \
110 mmcu?avr4=mmcu?atmega8m1 \
111 mmcu?avr4=mmcu?at90pwm1 \
112 mmcu?avr4=mmcu?at90pwm2 \
113 mmcu?avr4=mmcu?at90pwm2b \
114 mmcu?avr4=mmcu?at90pwm3 \
115 mmcu?avr4=mmcu?at90pwm3b \
116 mmcu?avr4=mmcu?at90pwm81 \
117 mmcu?avr5=mmcu?atmega16 \
118 mmcu?avr5=mmcu?atmega161 \
119 mmcu?avr5=mmcu?atmega162 \
120 mmcu?avr5=mmcu?atmega163 \
121 mmcu?avr5=mmcu?atmega164p \
122 mmcu?avr5=mmcu?atmega165 \
123 mmcu?avr5=mmcu?atmega165p \
124 mmcu?avr5=mmcu?atmega168 \
125 mmcu?avr5=mmcu?atmega168p \
126 mmcu?avr5=mmcu?atmega169 \
127 mmcu?avr5=mmcu?atmega169p \
128 mmcu?avr5=mmcu?atmega32 \
129 mmcu?avr5=mmcu?atmega323 \
130 mmcu?avr5=mmcu?atmega324p \
131 mmcu?avr5=mmcu?atmega325 \
132 mmcu?avr5=mmcu?atmega325p \
133 mmcu?avr5=mmcu?atmega3250 \
134 mmcu?avr5=mmcu?atmega3250p \
135 mmcu?avr5=mmcu?atmega328p \
136 mmcu?avr5=mmcu?atmega329 \
137 mmcu?avr5=mmcu?atmega329p \
138 mmcu?avr5=mmcu?atmega3290 \
139 mmcu?avr5=mmcu?atmega3290p \
140 mmcu?avr5=mmcu?atmega406 \
141 mmcu?avr5=mmcu?atmega64 \
142 mmcu?avr5=mmcu?atmega640 \
143 mmcu?avr5=mmcu?atmega644 \
144 mmcu?avr5=mmcu?atmega644p \
145 mmcu?avr5=mmcu?atmega645 \
146 mmcu?avr5=mmcu?atmega6450 \
147 mmcu?avr5=mmcu?atmega649 \
148 mmcu?avr5=mmcu?atmega6490 \
149 mmcu?avr5=mmcu?atmega16hva \
150 mmcu?avr5=mmcu?atmega16hvb \
151 mmcu?avr5=mmcu?atmega32hvb \
152 mmcu?avr5=mmcu?at90can32 \
153 mmcu?avr5=mmcu?at90can64 \
154 mmcu?avr5=mmcu?at90pwm216 \
155 mmcu?avr5=mmcu?at90pwm316 \
156 mmcu?avr5=mmcu?atmega16c1 \
157 mmcu?avr5=mmcu?atmega32c1 \
158 mmcu?avr5=mmcu?atmega64c1 \
159 mmcu?avr5=mmcu?atmega16m1 \
160 mmcu?avr5=mmcu?atmega32m1 \
161 mmcu?avr5=mmcu?atmega64m1 \
162 mmcu?avr5=mmcu?atmega16u4 \
163 mmcu?avr5=mmcu?atmega32u4 \
164 mmcu?avr5=mmcu?atmega32u6 \
165 mmcu?avr5=mmcu?at90scr100 \
166 mmcu?avr5=mmcu?at90usb646 \
167 mmcu?avr5=mmcu?at90usb647 \
168 mmcu?avr5=mmcu?at94k \
169 mmcu?avr51=mmcu?atmega128 \
170 mmcu?avr51=mmcu?atmega1280 \
171 mmcu?avr51=mmcu?atmega1281 \
172 mmcu?avr51=mmcu?atmega1284p \
173 mmcu?avr51=mmcu?atmega128rfa1 \
174 mmcu?avr51=mmcu?at90can128 \
175 mmcu?avr51=mmcu?at90usb1286 \
176 mmcu?avr51=mmcu?at90usb1287 \
177 mmcu?avr51=mmcu?m3000f \
178 mmcu?avr51=mmcu?m3000s \
179 mmcu?avr51=mmcu?m3001b \
180 mmcu?avr6=mmcu?atmega2560 \
181 mmcu?avr6=mmcu?atmega2561
183 MULTILIB_EXCEPTIONS =
185 LIBGCC = stmp-multilib
186 INSTALL_LIBGCC = install-multilib