]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/avr/t-avr
Update copyright years.
[thirdparty/gcc.git] / gcc / config / avr / t-avr
CommitLineData
a5544970 1# Copyright (C) 2000-2019 Free Software Foundation, Inc.
ad41bd84
JM
2#
3# This file is part of GCC.
4#
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.
9#
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.
14#
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/>.
18
76beabf4
GJL
19PASSES_EXTRA += $(srcdir)/config/avr/avr-passes.def
20
4a2caf6c
GJL
21driver-avr.o: $(srcdir)/config/avr/driver-avr.c \
22 $(CONFIG_H) $(SYSTEM_H) coretypes.h \
23 $(srcdir)/config/avr/avr-arch.h $(TM_H)
24 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
25
59ab92d2 26avr-devices.o: $(srcdir)/config/avr/avr-devices.c \
1b916ca6 27 $(srcdir)/config/avr/avr-mcus.def \
4a2caf6c 28 $(srcdir)/config/avr/avr-arch.h \
59ab92d2 29 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
c2405775 30 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
17fad361
AH
31
32avr-c.o: $(srcdir)/config/avr/avr-c.c \
e62d5d9f 33 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
c2405775 34 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
17fad361 35
6c7dfafe 36avr-log.o: $(srcdir)/config/avr/avr-log.c \
7ee2468b 37 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(INPUT_H) dumpfile.h
c2405775 38 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
6c7dfafe 39
639d0302
GJL
40avr.o avr-c.o: $(srcdir)/config/avr/builtins.def
41
dc62d7d1 42# This overrides stdfix.h from USER_H which we supply and include
b0eb429d 43# in our own stdfix.h as stdfix-gcc.h.
dc62d7d1
GJL
44
45EXTRA_HEADERS = $(srcdir)/config/avr/stdfix.h \
46 stdfix-gcc.h
47
48stdfix-gcc.h: $(srcdir)/ginclude/stdfix.h
49 -cp $< $@
50
884f56d1 51# Files and Variables auto-generated from avr-mcus.def
59ab92d2 52
884f56d1 53AVR_MCUS = $(srcdir)/config/avr/avr-mcus.def
90e7678c 54
4a176b23
GJL
55# Run `avr-mcus' after you changed or added devices in avr-mcus.def
56
57.PHONY: avr-mcus
58
59avr-mcus: $(srcdir)/config/avr/t-multilib \
4a176b23
GJL
60 $(srcdir)/doc/avr-mmcu.texi ; @true
61
4a2caf6c 62# Make sure that native -mmcu= support is in sync with -mmcu= documentation.
04d170d2 63gen-avr-mmcu-texi$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-texi.c \
e3cf7a95
GJL
64 $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \
65 $(srcdir)/config/avr/avr-arch.h
66 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
04d170d2 67
f9d29866
JR
68gen-avr-mmcu-specs$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-specs.c \
69 $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \
38822076
GJL
70 $(srcdir)/config/avr/avr-arch.h $(TM_H)
71 $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $< -o $@ $(INCLUDES)
f9d29866 72
4a176b23
GJL
73$(srcdir)/doc/avr-mmcu.texi: gen-avr-mmcu-texi$(build_exeext)
74 $(RUN_GEN) ./$< > $@
04d170d2 75
f9d29866
JR
76s-device-specs: gen-avr-mmcu-specs$(build_exeext)
77 rm -rf device-specs
78 mkdir device-specs && cd device-specs && $(RUN_GEN) ../$<
79 $(STAMP) s-device-specs
80
81GCC_PASSES+=s-device-specs
82
83install-driver: install-device-specs
84
85install-device-specs: s-device-specs installdirs
86 -rm -rf $(DESTDIR)$(libsubdir)/device-specs
87 mkdir $(DESTDIR)$(libsubdir)/device-specs
88 -for file in device-specs/*; do \
4a2caf6c 89 $(INSTALL_DATA) $${file} $(DESTDIR)$(libsubdir)/$${file}; \
f9d29866
JR
90 done
91
6aea3c37 92# Get multilib layout
884f56d1
GJL
93# MULTILIB_OPTIONS
94# MULTILIB_DIRNAMES
6aea3c37 95# MULTILIB_REQUIRED
884f56d1 96
884f56d1
GJL
97s-mlib: $(srcdir)/config/avr/t-multilib
98
4a176b23
GJL
99$(srcdir)/config/avr/t-multilib: $(srcdir)/config/avr/genmultilib.awk \
100 $(AVR_MCUS)
6aea3c37 101 $(AWK) -f $< $< $(AVR_MCUS) > $@