[Ada] Fix proof of runtime units
[official-gcc.git] / gcc / config / loongarch / t-loongarch
blob6d6e3435d5959b605d1750311106b1c9a30d8a48
1 # Copyright (C) 2021-2022 Free Software Foundation, Inc.
3 # This file is part of GCC.
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.
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.
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/>.
19 # Canonical target triplet from config.gcc
20 LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
21 $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))
23 # String definition header
24 LA_STR_H = $(srcdir)/config/loongarch/loongarch-str.h
26 # String definition header
27 $(LA_STR_H): s-loongarch-str ; @true
28 s-loongarch-str: $(srcdir)/config/loongarch/genopts/genstr.sh \
29         $(srcdir)/config/loongarch/genopts/loongarch-strings
30         $(SHELL) $(srcdir)/config/loongarch/genopts/genstr.sh header \
31     $(srcdir)/config/loongarch/genopts/loongarch-strings > \
32     tmp-loongarch-str.h
33         $(SHELL) $(srcdir)/../move-if-change tmp-loongarch-str.h \
34                 $(LA_STR_H)
35         $(STAMP) s-loongarch-str
37 loongarch-c.o: $(srcdir)/config/loongarch/loongarch-c.cc $(CONFIG_H) $(SYSTEM_H) \
38         coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H) $(TARGET_H)
39         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
40         $(srcdir)/config/loongarch/loongarch-c.cc
42 loongarch-builtins.o: $(srcdir)/config/loongarch/loongarch-builtins.cc $(CONFIG_H) \
43         $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) $(RECOG_H) langhooks.h \
44         $(DIAGNOSTIC_CORE_H) $(OPTABS_H) $(srcdir)/config/loongarch/loongarch-ftypes.def \
45         $(srcdir)/config/loongarch/loongarch-modes.def
46         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
47         $(srcdir)/config/loongarch/loongarch-builtins.cc
49 loongarch-driver.o : $(srcdir)/config/loongarch/loongarch-driver.cc $(LA_STR_H) \
50         $(CONFIG_H) $(SYSTEM_H)
51         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
53 loongarch-opts.o: $(srcdir)/config/loongarch/loongarch-opts.cc $(LA_STR_H)
54         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
56 loongarch-cpu.o: $(srcdir)/config/loongarch/loongarch-cpu.cc $(LA_STR_H)
57         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
59 loongarch-def.o: $(srcdir)/config/loongarch/loongarch-def.c $(LA_STR_H)
60         $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
62 $(srcdir)/config/loongarch/loongarch.opt: s-loongarch-opt ; @true
63 s-loongarch-opt: $(srcdir)/config/loongarch/genopts/genstr.sh \
64         $(srcdir)/config/loongarch/genopts/loongarch.opt.in \
65         $(srcdir)/config/loongarch/genopts/loongarch-strings $(LA_STR_H)
66         $(SHELL) $(srcdir)/config/loongarch/genopts/genstr.sh opt \
67     $(srcdir)/config/loongarch/genopts/loongarch.opt.in \
68     > tmp-loongarch.opt
69         $(SHELL) $(srcdir)/../move-if-change tmp-loongarch.opt \
70     $(srcdir)/config/loongarch/loongarch.opt
71         $(STAMP) s-loongarch-opt