]>
Commit | Line | Data |
---|---|---|
2f71a20a | 1 | # Rules common to all arm targets |
ad41bd84 | 2 | # |
aeee4812 | 3 | # Copyright (C) 2004-2023 Free Software Foundation, Inc. |
ad41bd84 JM |
4 | # |
5 | # This file is part of GCC. | |
6 | # | |
7 | # GCC is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 3, or (at your option) | |
10 | # any later version. | |
11 | # | |
12 | # GCC is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with GCC; see the file COPYING3. If not see | |
19 | # <http://www.gnu.org/licenses/>. | |
2f71a20a | 20 | |
bdb0828f | 21 | GTM_H += arm-cpu.h arm-isa.h |
01a454df | 22 | |
c819d921 MGD |
23 | # All md files - except for arm.md. |
24 | # This list should be kept in alphabetical order and updated whenever an md | |
25 | # file is added or removed. | |
26 | MD_INCLUDES= $(srcdir)/config/arm/arm1020e.md \ | |
2f71a20a RE |
27 | $(srcdir)/config/arm/arm1026ejs.md \ |
28 | $(srcdir)/config/arm/arm1136jfs.md \ | |
c819d921 MGD |
29 | $(srcdir)/config/arm/arm926ejs.md \ |
30 | $(srcdir)/config/arm/arm-fixed.md \ | |
31 | $(srcdir)/config/arm/arm-generic.md \ | |
32 | $(srcdir)/config/arm/arm-tune.md \ | |
c819d921 | 33 | $(srcdir)/config/arm/constraints.md \ |
ef578491 | 34 | $(srcdir)/config/arm/cortex-a15.md \ |
c819d921 | 35 | $(srcdir)/config/arm/cortex-a5.md \ |
ffeffdcb | 36 | $(srcdir)/config/arm/cortex-a7.md \ |
c819d921 MGD |
37 | $(srcdir)/config/arm/cortex-a8.md \ |
38 | $(srcdir)/config/arm/cortex-a8-neon.md \ | |
39 | $(srcdir)/config/arm/cortex-a9.md \ | |
40 | $(srcdir)/config/arm/cortex-a9-neon.md \ | |
d8c69a92 | 41 | $(srcdir)/config/arm/cortex-a53.md \ |
cd3246ea | 42 | $(srcdir)/config/arm/xgene1.md \ |
c819d921 MGD |
43 | $(srcdir)/config/arm/cortex-m4-fpu.md \ |
44 | $(srcdir)/config/arm/cortex-m4.md \ | |
45 | $(srcdir)/config/arm/cortex-r4f.md \ | |
46 | $(srcdir)/config/arm/cortex-r4.md \ | |
c02a5ccb SL |
47 | $(srcdir)/config/arm/fa526.md \ |
48 | $(srcdir)/config/arm/fa606te.md \ | |
49 | $(srcdir)/config/arm/fa626te.md \ | |
c02a5ccb | 50 | $(srcdir)/config/arm/fa726te.md \ |
c819d921 | 51 | $(srcdir)/config/arm/fmp626.md \ |
c819d921 | 52 | $(srcdir)/config/arm/iterators.md \ |
2f71a20a | 53 | $(srcdir)/config/arm/iwmmxt.md \ |
8fd03515 | 54 | $(srcdir)/config/arm/iwmmxt2.md \ |
c819d921 | 55 | $(srcdir)/config/arm/ldmstm.md \ |
4542a38a | 56 | $(srcdir)/config/arm/ldrdstrd.md \ |
8fd03515 | 57 | $(srcdir)/config/arm/marvell-f-iwmmxt.md \ |
63c8f7d6 | 58 | $(srcdir)/config/arm/mve.md \ |
88f77cba | 59 | $(srcdir)/config/arm/neon.md \ |
c819d921 MGD |
60 | $(srcdir)/config/arm/predicates.md \ |
61 | $(srcdir)/config/arm/sync.md \ | |
655b30bf | 62 | $(srcdir)/config/arm/thumb2.md \ |
c819d921 MGD |
63 | $(srcdir)/config/arm/vec-common.md \ |
64 | $(srcdir)/config/arm/vfp11.md \ | |
65 | $(srcdir)/config/arm/vfp.md | |
2f71a20a | 66 | |
a657c98a | 67 | s-config s-conditions s-flags s-codes s-constants s-emit s-recog s-preds \ |
2f71a20a RE |
68 | s-opinit s-extract s-peep s-attr s-attrtab s-output: $(MD_INCLUDES) |
69 | ||
a92ffb3e RE |
70 | $(srcdir)/config/arm/arm-tune.md: $(srcdir)/config/arm/parsecpu.awk \ |
71 | $(srcdir)/config/arm/arm-cpus.in | |
72 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=md \ | |
73 | $(srcdir)/config/arm/arm-cpus.in > arm-tune.new | |
492c63e5 RE |
74 | $(srcdir)/../move-if-change arm-tune.new \ |
75 | $(srcdir)/config/arm/arm-tune.md | |
b76c3c4b | 76 | |
a92ffb3e RE |
77 | $(srcdir)/config/arm/arm-tables.opt: $(srcdir)/config/arm/parsecpu.awk \ |
78 | $(srcdir)/config/arm/arm-cpus.in | |
79 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=opt \ | |
50061652 | 80 | $(srcdir)/config/arm/arm-cpus.in > arm-tables.new |
492c63e5 RE |
81 | $(srcdir)/../move-if-change arm-tables.new \ |
82 | $(srcdir)/config/arm/arm-tables.opt | |
ad7be009 | 83 | |
50061652 RE |
84 | arm-cpu.h: s-arm-cpu ; @true |
85 | s-arm-cpu: $(srcdir)/config/arm/parsecpu.awk \ | |
a92ffb3e RE |
86 | $(srcdir)/config/arm/arm-cpus.in |
87 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=headers \ | |
50061652 RE |
88 | $(srcdir)/config/arm/arm-cpus.in > tmp-arm-cpu.h |
89 | $(SHELL) $(srcdir)/../move-if-change tmp-arm-cpu.h arm-cpu.h | |
90 | $(STAMP) s-arm-cpu | |
a92ffb3e | 91 | |
bdb0828f RE |
92 | arm-isa.h: s-arm-isa ; @true |
93 | s-arm-isa: $(srcdir)/config/arm/parsecpu.awk \ | |
94 | $(srcdir)/config/arm/arm-cpus.in | |
95 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=isa \ | |
96 | $(srcdir)/config/arm/arm-cpus.in > tmp-arm-isa.h | |
97 | $(SHELL) $(srcdir)/../move-if-change tmp-arm-isa.h arm-isa.h | |
98 | $(STAMP) s-arm-isa | |
99 | ||
50061652 RE |
100 | arm-cpu-data.h: s-arm-data ; @true |
101 | s-arm-data: $(srcdir)/config/arm/parsecpu.awk \ | |
a92ffb3e RE |
102 | $(srcdir)/config/arm/arm-cpus.in |
103 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=data \ | |
50061652 RE |
104 | $(srcdir)/config/arm/arm-cpus.in > tmp-arm-cpu-data.h |
105 | $(SHELL) $(srcdir)/../move-if-change tmp-arm-cpu-data.h arm-cpu-data.h | |
106 | $(STAMP) s-arm-data | |
a92ffb3e | 107 | |
50061652 RE |
108 | arm-cpu-cdata.h: s-arm-cdata ; @true |
109 | s-arm-cdata: $(srcdir)/config/arm/parsecpu.awk \ | |
a92ffb3e RE |
110 | $(srcdir)/config/arm/arm-cpus.in |
111 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=common-data \ | |
50061652 RE |
112 | $(srcdir)/config/arm/arm-cpus.in > tmp-arm-cpu-cdata.h |
113 | $(SHELL) $(srcdir)/../move-if-change tmp-arm-cpu-cdata.h arm-cpu-cdata.h | |
114 | $(STAMP) s-arm-cdata | |
a92ffb3e | 115 | |
b02160e5 RE |
116 | arm-native.h: s-arm-native ; @true |
117 | s-arm-native: $(srcdir)/config/arm/parsecpu.awk \ | |
118 | $(srcdir)/config/arm/arm-cpus.in | |
119 | $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=native \ | |
120 | $(srcdir)/config/arm/arm-cpus.in > tmp-arm-native.h | |
121 | $(SHELL) $(srcdir)/../move-if-change tmp-arm-native.h arm-native.h | |
122 | $(STAMP) s-arm-native | |
123 | ||
e53b6e56 | 124 | aarch-common.o: $(srcdir)/config/arm/aarch-common.cc $(CONFIG_H) $(SYSTEM_H) \ |
c3f35647 SN |
125 | coretypes.h $(TM_H) $(TM_P_H) $(RTL_H) $(TREE_H) output.h $(C_COMMON_H) |
126 | $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ | |
e53b6e56 | 127 | $(srcdir)/config/arm/aarch-common.cc |
c3f35647 | 128 | |
e53b6e56 | 129 | arm.o: $(srcdir)/config/arm/arm.cc $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ |
3a4f280b | 130 | $(RTL_H) $(TREE_H) $(HASH_TABLE_H) $(OBSTACK_H) $(REGS_H) hard-reg-set.h \ |
7ee2468b | 131 | insn-config.h conditions.h output.h dumpfile.h \ |
ec3728ad | 132 | $(INSN_ATTR_H) $(FLAGS_H) reload.h $(FUNCTION_H) \ |
a803773f | 133 | $(EXPR_H) $(OPTABS_H) $(RECOG_H) $(CGRAPH_H) \ |
6399c0ab | 134 | $(GGC_H) except.h $(C_PRAGMA_H) $(TM_P_H) \ |
ec3728ad | 135 | $(TARGET_H) $(TARGET_DEF_H) debug.h langhooks.h $(DF_H) \ |
340c7904 | 136 | intl.h libfuncs.h $(PARAMS_H) $(OPTS_H) sched-int.h \ |
50061652 | 137 | arm-cpu-data.h \ |
a27d8d80 | 138 | $(srcdir)/config/arm/arm-protos.h \ |
66e31c3d | 139 | $(srcdir)/config/arm/arm_neon_builtins.def \ |
14782c81 SP |
140 | $(srcdir)/config/arm/arm_vfp_builtins.def \ |
141 | $(srcdir)/config/arm/arm_mve_builtins.def | |
ec3728ad | 142 | |
e53b6e56 | 143 | arm-builtins.o: $(srcdir)/config/arm/arm-builtins.cc $(CONFIG_H) \ |
33857df2 JG |
144 | $(SYSTEM_H) coretypes.h $(TM_H) \ |
145 | $(RTL_H) $(TREE_H) expr.h $(TM_P_H) $(RECOG_H) langhooks.h \ | |
146 | $(DIAGNOSTIC_CORE_H) $(OPTABS_H) \ | |
147 | $(srcdir)/config/arm/arm-protos.h \ | |
ba2b30dc | 148 | $(srcdir)/config/arm/arm_acle_builtins.def \ |
6276b630 | 149 | $(srcdir)/config/arm/arm_neon_builtins.def \ |
66e31c3d | 150 | $(srcdir)/config/arm/arm_vfp_builtins.def \ |
14782c81 | 151 | $(srcdir)/config/arm/arm_mve_builtins.def \ |
6276b630 | 152 | $(srcdir)/config/arm/arm-simd-builtin-types.def |
33857df2 | 153 | $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
e53b6e56 | 154 | $(srcdir)/config/arm/arm-builtins.cc |
33857df2 | 155 | |
9c1ce17b MS |
156 | arm-mve-builtins.o: $(srcdir)/config/arm/arm-mve-builtins.cc $(CONFIG_H) \ |
157 | $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \ | |
158 | fold-const.h langhooks.h stringpool.h attribs.h diagnostic.h \ | |
159 | $(srcdir)/config/arm/arm-protos.h \ | |
160 | $(srcdir)/config/arm/arm-builtins.h \ | |
161 | $(srcdir)/config/arm/arm-mve-builtins.h \ | |
162 | $(srcdir)/config/arm/arm-mve-builtins.def | |
163 | $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ | |
164 | $(srcdir)/config/arm/arm-mve-builtins.cc | |
165 | ||
e53b6e56 | 166 | arm-c.o: $(srcdir)/config/arm/arm-c.cc $(CONFIG_H) $(SYSTEM_H) \ |
e980df8e | 167 | coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H) |
7980bfb8 | 168 | $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
e53b6e56 | 169 | $(srcdir)/config/arm/arm-c.cc |
a92ffb3e | 170 | |
e53b6e56 | 171 | arm-d.o: $(srcdir)/config/arm/arm-d.cc |
b4c522fa IB |
172 | $(COMPILE) $< |
173 | $(POSTCOMPILE) | |
174 | ||
50061652 | 175 | arm-common.o: arm-cpu-cdata.h |
b02160e5 RE |
176 | |
177 | driver-arm.o: arm-native.h |