OSDN Git Service

* config/avr/avr.c (STR_PREFIX_P): New Define.
[pf3gnuchains/gcc-fork.git] / gcc / config / avr / t-avr
1 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2 # 2009, 2010, 2011 Free Software Foundation, Inc.
3 #
4 # This file is part of GCC.
5 #
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)
9 # any later version.
10 #
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.
15 #
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/>.
19
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) $<
23
24 avr-devices.o: $(srcdir)/config/avr/avr-devices.c \
25   $(srcdir)/config/avr/avr-mcus.def \
26   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
27         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
28
29 avr-c.o: $(srcdir)/config/avr/avr-c.c \
30   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
31         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
32
33 $(srcdir)/config/avr/avr-tables.opt: $(srcdir)/config/avr/genopt.sh \
34   $(srcdir)/config/avr/avr-mcus.def
35         $(SHELL) $(srcdir)/config/avr/genopt.sh $(srcdir)/config/avr > \
36                 $(srcdir)/config/avr/avr-tables.opt
37
38 LIB1ASMSRC = avr/libgcc.S
39 LIB1ASMFUNCS = \
40         _mulqi3 \
41         _mulhi3 \
42         _mulhisi3 \
43         _umulhisi3 \
44         _usmulhisi3 \
45         _muluhisi3 \
46         _mulshisi3 \
47         _mulsi3 \
48         _udivmodqi4 \
49         _divmodqi4 \
50         _udivmodhi4 \
51         _divmodhi4 \
52         _udivmodsi4 \
53         _divmodsi4 \
54         _prologue \
55         _epilogue \
56         _exit \
57         _cleanup \
58         _tablejump \
59         _tablejump_elpm \
60         _copy_data \
61         _clear_bss \
62         _ctors \
63         _dtors \
64         _ffssi2 \
65         _ffshi2 \
66         _loop_ffsqi2 \
67         _ctzsi2 \
68         _ctzhi2 \
69         _clzdi2 \
70         _clzsi2 \
71         _clzhi2 \
72         _paritydi2 \
73         _paritysi2 \
74         _parityhi2 \
75         _popcounthi2 \
76         _popcountsi2 \
77         _popcountdi2 \
78         _popcountqi2 \
79         _bswapsi2 \
80         _bswapdi2 \
81         _ashldi3 \
82         _ashrdi3 \
83         _lshrdi3 \
84         _fmul _fmuls _fmulsu
85
86 LIB2FUNCS_EXCLUDE = \
87         _clz
88
89 # We do not have the DF type.
90 # Most of the C functions in libgcc2 use almost all registers,
91 # so use -mcall-prologues for smaller code size.
92 TARGET_LIBGCC2_CFLAGS = -DDF=SF -Dinhibit_libc -mcall-prologues -Os
93
94 MULTILIB_OPTIONS = mmcu=avr2/mmcu=avr25/mmcu=avr3/mmcu=avr31/mmcu=avr35/mmcu=avr4/mmcu=avr5/mmcu=avr51/mmcu=avr6
95 MULTILIB_DIRNAMES = avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6
96
97 # The many avr2 matches are not listed here - this is the default.
98 MULTILIB_MATCHES = \
99         mmcu?avr25=mmcu?ata6289 \
100         mmcu?avr25=mmcu?attiny13 \
101         mmcu?avr25=mmcu?attiny13a \
102         mmcu?avr25=mmcu?attiny2313 \
103         mmcu?avr25=mmcu?attiny2313a \
104         mmcu?avr25=mmcu?attiny4313 \
105         mmcu?avr25=mmcu?attiny24 \
106         mmcu?avr25=mmcu?attiny24a \
107         mmcu?avr25=mmcu?attiny44 \
108         mmcu?avr25=mmcu?attiny44a \
109         mmcu?avr25=mmcu?attiny84 \
110         mmcu?avr25=mmcu?attiny84a \
111         mmcu?avr25=mmcu?attiny25 \
112         mmcu?avr25=mmcu?attiny45 \
113         mmcu?avr25=mmcu?attiny85 \
114         mmcu?avr25=mmcu?attiny261 \
115         mmcu?avr25=mmcu?attiny261a \
116         mmcu?avr25=mmcu?attiny461 \
117         mmcu?avr25=mmcu?attiny461a \
118         mmcu?avr25=mmcu?attiny861 \
119         mmcu?avr25=mmcu?attiny861a \
120         mmcu?avr25=mmcu?attiny43u \
121         mmcu?avr25=mmcu?attiny87 \
122         mmcu?avr25=mmcu?attiny48 \
123         mmcu?avr25=mmcu?attiny88 \
124         mmcu?avr25=mmcu?at86rf401 \
125         mmcu?avr3=mmcu?at43usb355 \
126         mmcu?avr3=mmcu?at76c711 \
127         mmcu?avr31=mmcu?atmega103 \
128         mmcu?avr31=mmcu?at43usb320 \
129         mmcu?avr35=mmcu?at90usb82 \
130         mmcu?avr35=mmcu?at90usb162 \
131         mmcu?avr35=mmcu?atmega8u2 \
132         mmcu?avr35=mmcu?atmega16u2 \
133         mmcu?avr35=mmcu?atmega32u2 \
134         mmcu?avr35=mmcu?attiny167 \
135         mmcu?avr4=mmcu?atmega48 \
136         mmcu?avr4=mmcu?atmega48a \
137         mmcu?avr4=mmcu?atmega48p \
138         mmcu?avr4=mmcu?atmega8 \
139         mmcu?avr4=mmcu?atmega8515 \
140         mmcu?avr4=mmcu?atmega8535 \
141         mmcu?avr4=mmcu?atmega88 \
142         mmcu?avr4=mmcu?atmega88a \
143         mmcu?avr4=mmcu?atmega88p \
144         mmcu?avr4=mmcu?atmega88pa \
145         mmcu?avr4=mmcu?atmega8hva \
146         mmcu?avr4=mmcu?at90pwm1 \
147         mmcu?avr4=mmcu?at90pwm2 \
148         mmcu?avr4=mmcu?at90pwm2b \
149         mmcu?avr4=mmcu?at90pwm3 \
150         mmcu?avr4=mmcu?at90pwm3b \
151         mmcu?avr4=mmcu?at90pwm81 \
152         mmcu?avr5=mmcu?atmega16 \
153         mmcu?avr5=mmcu?atmega16a \
154         mmcu?avr5=mmcu?atmega161 \
155         mmcu?avr5=mmcu?atmega162 \
156         mmcu?avr5=mmcu?atmega163 \
157         mmcu?avr5=mmcu?atmega164a \
158         mmcu?avr5=mmcu?atmega164p \
159         mmcu?avr5=mmcu?atmega165 \
160         mmcu?avr5=mmcu?atmega165a \
161         mmcu?avr5=mmcu?atmega165p \
162         mmcu?avr5=mmcu?atmega168 \
163         mmcu?avr5=mmcu?atmega168a \
164         mmcu?avr5=mmcu?atmega168p \
165         mmcu?avr5=mmcu?atmega169 \
166         mmcu?avr5=mmcu?atmega169a \
167         mmcu?avr5=mmcu?atmega169p \
168         mmcu?avr5=mmcu?atmega169pa \
169         mmcu?avr5=mmcu?atmega32 \
170         mmcu?avr5=mmcu?atmega323 \
171         mmcu?avr5=mmcu?atmega324a \
172         mmcu?avr5=mmcu?atmega324p \
173         mmcu?avr5=mmcu?atmega324pa \
174         mmcu?avr5=mmcu?atmega325 \
175         mmcu?avr5=mmcu?atmega325a \
176         mmcu?avr5=mmcu?atmega325p \
177         mmcu?avr5=mmcu?atmega3250 \
178         mmcu?avr5=mmcu?atmega3250a \
179         mmcu?avr5=mmcu?atmega3250p \
180         mmcu?avr5=mmcu?atmega328 \
181         mmcu?avr5=mmcu?atmega328p \
182         mmcu?avr5=mmcu?atmega329 \
183         mmcu?avr5=mmcu?atmega329a \
184         mmcu?avr5=mmcu?atmega329p \
185         mmcu?avr5=mmcu?atmega329pa \
186         mmcu?avr5=mmcu?atmega3290 \
187         mmcu?avr5=mmcu?atmega3290a \
188         mmcu?avr5=mmcu?atmega3290p \
189         mmcu?avr5=mmcu?atmega406 \
190         mmcu?avr5=mmcu?atmega64  \
191         mmcu?avr5=mmcu?atmega640 \
192         mmcu?avr5=mmcu?atmega644 \
193         mmcu?avr5=mmcu?atmega644a \
194         mmcu?avr5=mmcu?atmega644p \
195         mmcu?avr5=mmcu?atmega644pa \
196         mmcu?avr5=mmcu?atmega645 \
197         mmcu?avr5=mmcu?atmega645a \
198         mmcu?avr5=mmcu?atmega645p \
199         mmcu?avr5=mmcu?atmega6450 \
200         mmcu?avr5=mmcu?atmega6450a \
201         mmcu?avr5=mmcu?atmega6450p \
202         mmcu?avr5=mmcu?atmega649 \
203         mmcu?avr5=mmcu?atmega649a \
204         mmcu?avr5=mmcu?atmega649p \
205         mmcu?avr5=mmcu?atmega6490 \
206         mmcu?avr5=mmcu?atmega6490a \
207         mmcu?avr5=mmcu?atmega6490p \
208         mmcu?avr5=mmcu?atmega16hva \
209         mmcu?avr5=mmcu?atmega16hva2 \
210         mmcu?avr5=mmcu?atmega16hvb \
211         mmcu?avr5=mmcu?atmega32hvb \
212         mmcu?avr5=mmcu?atmega64hve \
213         mmcu?avr5=mmcu?at90can32 \
214         mmcu?avr5=mmcu?at90can64 \
215         mmcu?avr5=mmcu?at90pwm216 \
216         mmcu?avr5=mmcu?at90pwm316 \
217         mmcu?avr5=mmcu?atmega32c1 \
218         mmcu?avr5=mmcu?atmega64c1 \
219         mmcu?avr5=mmcu?atmega16m1 \
220         mmcu?avr5=mmcu?atmega32m1 \
221         mmcu?avr5=mmcu?atmega64m1 \
222         mmcu?avr5=mmcu?atmega16u4 \
223         mmcu?avr5=mmcu?atmega32u4 \
224         mmcu?avr5=mmcu?atmega32u6 \
225         mmcu?avr5=mmcu?at90scr100 \
226         mmcu?avr5=mmcu?at90usb646 \
227         mmcu?avr5=mmcu?at90usb647 \
228         mmcu?avr5=mmcu?at94k \
229         mmcu?avr5=mmcu?m3000 \
230         mmcu?avr51=mmcu?atmega128 \
231         mmcu?avr51=mmcu?atmega1280 \
232         mmcu?avr51=mmcu?atmega1281 \
233         mmcu?avr51=mmcu?atmega1284p \
234         mmcu?avr51=mmcu?atmega128rfa1 \
235         mmcu?avr51=mmcu?at90can128 \
236         mmcu?avr51=mmcu?at90usb1286 \
237         mmcu?avr51=mmcu?at90usb1287 \
238         mmcu?avr6=mmcu?atmega2560 \
239         mmcu?avr6=mmcu?atmega2561
240
241 MULTILIB_EXCEPTIONS =
242
243 LIBGCC = stmp-multilib
244 INSTALL_LIBGCC = install-multilib