Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/avr/t-avr @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
131 | 1 # Copyright (C) 2000-2018 Free Software Foundation, Inc. |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 # This file is part of GCC. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
5 # GCC is free software; you can redistribute it and/or modify |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 # it under the terms of the GNU General Public License as published by |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
7 # the Free Software Foundation; either version 3, or (at your option) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
8 # any later version. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
9 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
10 # GCC is distributed in the hope that it will be useful, |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
13 # GNU General Public License for more details. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
14 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
15 # You should have received a copy of the GNU General Public License |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
16 # along with GCC; see the file COPYING3. If not see |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
17 # <http://www.gnu.org/licenses/>. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
18 |
111 | 19 PASSES_EXTRA += $(srcdir)/config/avr/avr-passes.def |
20 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
21 driver-avr.o: $(srcdir)/config/avr/driver-avr.c \ |
111 | 22 $(CONFIG_H) $(SYSTEM_H) coretypes.h \ |
23 $(srcdir)/config/avr/avr-arch.h $(TM_H) | |
24 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
26 avr-devices.o: $(srcdir)/config/avr/avr-devices.c \ |
111 | 27 $(srcdir)/config/avr/avr-mcus.def \ |
28 $(srcdir)/config/avr/avr-arch.h \ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
29 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) |
111 | 30 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
31 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 avr-c.o: $(srcdir)/config/avr/avr-c.c \ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
33 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H) |
111 | 34 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< |
35 | |
36 avr-log.o: $(srcdir)/config/avr/avr-log.c \ | |
37 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(INPUT_H) dumpfile.h | |
38 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< | |
39 | |
40 avr.o avr-c.o: $(srcdir)/config/avr/builtins.def | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
41 |
111 | 42 # This overrides stdfix.h from USER_H which we supply and include |
43 # in our own stdfix.h as stdfix-gcc.h. | |
44 | |
45 EXTRA_HEADERS = $(srcdir)/config/avr/stdfix.h \ | |
46 stdfix-gcc.h | |
47 | |
48 stdfix-gcc.h: $(srcdir)/ginclude/stdfix.h | |
49 -cp $< $@ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
50 |
111 | 51 # Files and Variables auto-generated from avr-mcus.def |
52 | |
53 AVR_MCUS = $(srcdir)/config/avr/avr-mcus.def | |
54 | |
55 # Run `avr-mcus' after you changed or added devices in avr-mcus.def | |
56 | |
57 .PHONY: avr-mcus | |
0 | 58 |
111 | 59 avr-mcus: $(srcdir)/config/avr/t-multilib \ |
60 $(srcdir)/doc/avr-mmcu.texi ; @true | |
0 | 61 |
111 | 62 # Make sure that native -mmcu= support is in sync with -mmcu= documentation. |
63 gen-avr-mmcu-texi$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-texi.c \ | |
64 $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \ | |
65 $(srcdir)/config/avr/avr-arch.h | |
66 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@ | |
0 | 67 |
111 | 68 gen-avr-mmcu-specs$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-specs.c \ |
69 $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c \ | |
70 $(srcdir)/config/avr/avr-arch.h $(TM_H) | |
71 $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $< -o $@ $(INCLUDES) | |
72 | |
73 $(srcdir)/doc/avr-mmcu.texi: gen-avr-mmcu-texi$(build_exeext) | |
74 $(RUN_GEN) ./$< > $@ | |
75 | |
76 s-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 | |
81 GCC_PASSES+=s-device-specs | |
82 | |
83 install-driver: install-device-specs | |
0 | 84 |
111 | 85 install-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 \ | |
89 $(INSTALL_DATA) $${file} $(DESTDIR)$(libsubdir)/$${file}; \ | |
90 done | |
0 | 91 |
111 | 92 # Get multilib layout |
93 # MULTILIB_OPTIONS | |
94 # MULTILIB_DIRNAMES | |
95 # MULTILIB_REQUIRED | |
96 | |
97 s-mlib: $(srcdir)/config/avr/t-multilib | |
98 | |
99 $(srcdir)/config/avr/t-multilib: $(srcdir)/config/avr/genmultilib.awk \ | |
100 $(AVR_MCUS) | |
101 $(AWK) -f $< $< $(AVR_MCUS) > $@ |