xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/i386/t-i386 (revision 23f5f46327e37e7811da3520f4bb933f9489322f)
1# Copyright (C) 2008-2020 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
19OPTIONS_H_EXTRA += $(srcdir)/config/i386/stringop.def
20TM_H += $(srcdir)/config/i386/x86-tune.def \
21	$(srcdir)/common/config/i386/i386-cpuinfo.h
22PASSES_EXTRA += $(srcdir)/config/i386/i386-passes.def
23
24i386-c.o: $(srcdir)/config/i386/i386-c.c
25	  $(COMPILE) $<
26	  $(POSTCOMPILE)
27
28x86-tune-sched.o: $(srcdir)/config/i386/x86-tune-sched.c
29	  $(COMPILE) $<
30	  $(POSTCOMPILE)
31
32x86-tune-sched-bd.o: $(srcdir)/config/i386/x86-tune-sched-bd.c
33	  $(COMPILE) $<
34	  $(POSTCOMPILE)
35
36x86-tune-sched-atom.o: $(srcdir)/config/i386/x86-tune-sched-atom.c
37	  $(COMPILE) $<
38	  $(POSTCOMPILE)
39
40x86-tune-sched-core.o: $(srcdir)/config/i386/x86-tune-sched-core.c
41	  $(COMPILE) $<
42	  $(POSTCOMPILE)
43
44i386-d.o: $(srcdir)/config/i386/i386-d.c
45	$(COMPILE) $<
46	$(POSTCOMPILE)
47
48i386-options.o: $(srcdir)/config/i386/i386-options.c
49	$(COMPILE) $<
50	$(POSTCOMPILE)
51
52i386-builtins.o: $(srcdir)/config/i386/i386-builtins.c
53	$(COMPILE) $<
54	$(POSTCOMPILE)
55
56i386-expand.o: $(srcdir)/config/i386/i386-expand.c
57	$(COMPILE) $<
58	$(POSTCOMPILE)
59
60i386-features.o: $(srcdir)/config/i386/i386-features.c
61	$(COMPILE) $<
62	$(POSTCOMPILE)
63
64# i386-builtin-types.inc is included into i386-builtins.h.
65# Below are direct users of i386-builtins.h:
66i386.o: i386-builtin-types.inc
67i386-builtins.o: i386-builtin-types.inc
68i386-expand.o: i386-builtin-types.inc
69i386-features.o: i386-builtin-types.inc
70
71i386-builtin-types.inc: s-i386-bt ; @true
72s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \
73  $(srcdir)/config/i386/i386-builtin-types.def
74	$(AWK) -f $^ > tmp-bt.inc
75	$(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc
76	$(STAMP) $@
77