Merged revisions 195034,195219,195245,195357,195374,195428,195599,195673,195809 via...
[official-gcc.git] / main / gcc / config / avr / t-avr
blobe76a7606d9ba7cc6c6b45ae109801c95aa036657
1 # Copyright (C) 2000-2013 Free Software Foundation, Inc.
3 # This file is part of GCC.
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3.  If not see
17 # <http://www.gnu.org/licenses/>.
19 driver-avr.o: $(srcdir)/config/avr/driver-avr.c \
20   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
21         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
23 avr-devices.o: $(srcdir)/config/avr/avr-devices.c \
24   $(srcdir)/config/avr/avr-mcus.def \
25   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
26         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
28 avr-c.o: $(srcdir)/config/avr/avr-c.c \
29   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
30         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
32 avr-log.o: $(srcdir)/config/avr/avr-log.c \
33   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(INPUT_H) dumpfile.h
34         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
36 avr.o avr-c.o: $(srcdir)/config/avr/builtins.def
38 # This overrides stdfix.h from USER_H which we supply and include
39 # in our own stdint.h as stdint-gcc.h.
41 EXTRA_HEADERS = $(srcdir)/config/avr/stdfix.h \
42                 stdfix-gcc.h
44 stdfix-gcc.h: $(srcdir)/ginclude/stdfix.h
45         -cp $< $@
47 # Files and Variables auto-generated from avr-mcus.def
49 AVR_MCUS = $(srcdir)/config/avr/avr-mcus.def
51 # Run `avr-mcus' after you changed or added devices in  avr-mcus.def
53 .PHONY: avr-mcus
55 avr-mcus: $(srcdir)/config/avr/t-multilib \
56           $(srcdir)/config/avr/avr-tables.opt \
57           $(srcdir)/doc/avr-mmcu.texi ; @true
59 # Make sure that -mmcu= is supported for devices from avr-mcus.def and
60 # all -mmcu= values are displayed on the help screen
61 $(srcdir)/config/avr/avr-tables.opt: $(srcdir)/config/avr/genopt.sh $(AVR_MCUS)
62         $(SHELL) $< $(AVR_MCUS) > $@
64 # Make sure that -mmcu= support is in sync with -mmcu= documentation.
65 gen-avr-mmcu-texi$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-texi.c \
66   $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \
67   $(srcdir)/config/avr/avr-arch.h
68         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
70 $(srcdir)/doc/avr-mmcu.texi: gen-avr-mmcu-texi$(build_exeext)
71         $(RUN_GEN) ./$< > $@
73 # Map -mmcu= to the right multilib variant
74 # MULTILIB_OPTIONS
75 # MULTILIB_DIRNAMES
76 # MULTILIB_EXCEPTIONS
77 # MULTILIB_MATCHES
79 s-mlib: $(srcdir)/config/avr/t-multilib
81 $(srcdir)/config/avr/t-multilib: $(srcdir)/config/avr/genmultilib.awk \
82                                  $(AVR_MCUS)
83         $(AWK) -f $< -v FORMAT=Makefile   $< $(AVR_MCUS) > $@