re PR target/55243 (STAMP variable is not defined in t-avr)
[official-gcc.git] / gcc / config / avr / t-avr
blob3d3b817ffdb8f6024c4ff875cbaf2ad1ec8e81bb
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)
9 # any later version.
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
45 .PHONY: avr-mcus
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)
63         $(RUN_GEN) ./$< > $@
65 # Map -mmcu= to the right multilib variant
66 # MULTILIB_OPTIONS
67 # MULTILIB_DIRNAMES
68 # MULTILIB_EXCEPTIONS
69 # MULTILIB_MATCHES
71 s-mlib: $(srcdir)/config/avr/t-multilib
73 $(srcdir)/config/avr/t-multilib: $(srcdir)/config/avr/genmultilib.awk \
74                                  $(AVR_MCUS)
75         $(AWK) -f $< -v FORMAT=Makefile   $< $(AVR_MCUS) > $@