]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/loongarch/t-loongarch
Update copyright years.
[thirdparty/gcc.git] / gcc / config / loongarch / t-loongarch
1 # Copyright (C) 2021-2023 Free Software Foundation, Inc.
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
19 # Canonical target triplet from config.gcc
20 LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
21 $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))
22
23 # String definition header
24 LA_STR_H = $(srcdir)/config/loongarch/loongarch-str.h
25
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
36
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
41
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
48
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) $<
52
53 loongarch-opts.o: $(srcdir)/config/loongarch/loongarch-opts.cc $(LA_STR_H)
54 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
55
56 loongarch-cpu.o: $(srcdir)/config/loongarch/loongarch-cpu.cc $(LA_STR_H)
57 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
58
59 loongarch-def.o: $(srcdir)/config/loongarch/loongarch-def.c $(LA_STR_H)
60 $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
61
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