1 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2 # 2009, 2010, 2011, 2012 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 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
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 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
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 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
33 avr-log.o: $(srcdir)/config/avr/avr-log.c \
34 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(INPUT_H) dumpfile.h
35 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
37 avr.o avr-c.o: $(srcdir)/config/avr/builtins.def
39 # Files and Variables auto-generated from avr-mcus.def
41 AVR_MCUS = $(srcdir)/config/avr/avr-mcus.def
43 # Run `avr-mcus' after you changed or added devices in avr-mcus.def
47 avr-mcus: $(srcdir)/config/avr/t-multilib \
48 $(srcdir)/config/avr/avr-tables.opt \
49 $(srcdir)/doc/avr-mmcu.texi ; @true
51 # Make sure that -mmcu= is supported for devices from avr-mcus.def and
52 # is displaed all -mmcu= values are displayed on the help screen
53 $(srcdir)/config/avr/avr-tables.opt: $(srcdir)/config/avr/genopt.sh $(AVR_MCUS)
54 $(SHELL) $< $(AVR_MCUS) > $@
56 # Make sure that -mmcu= support is in sync with -mmcu= documentation.
57 gen-avr-mmcu-texi$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-texi.c \
58 $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \
59 $(srcdir)/config/avr/avr-arch.h
60 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
62 $(srcdir)/doc/avr-mmcu.texi: gen-avr-mmcu-texi$(build_exeext)
65 # Map -mmcu= to the right multilib variant
71 s-mlib: $(srcdir)/config/avr/t-multilib
73 $(srcdir)/config/avr/t-multilib: $(srcdir)/config/avr/genmultilib.awk \
75 $(AWK) -f $< -v FORMAT=Makefile $< $(AVR_MCUS) > $@