1 # GCC Makefile fragment for Synopsys DesignWare ARC.
3 # Copyright (C) 2016-2018 Free Software Foundation, Inc.
5 # This file is part of GCC.
7 # GCC is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3, or (at your option) any later version.
11 # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 # You should have received a copy of the GNU General Public License along
17 # with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>.
20 TM_H += $(srcdir)/config/arc/arc-c.def
22 driver-arc.o: $(srcdir)/config/arc/driver-arc.c \
23 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
24 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
26 arc-c.o: $(srcdir)/config/arc/arc-c.c $(CONFIG_H) $(SYSTEM_H) \
27 $(TREE_H) $(TM_H) $(TM_P_H) coretypes.h
28 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
29 $(srcdir)/config/arc/arc-c.c
31 #Run `arc-cpus` if you changed something in arc-cpus.def
35 arc-cpus: $(srcdir)/config/arc/t-multilib \
36 $(srcdir)/config/arc/arc-tables.opt
38 $(srcdir)/config/arc/t-multilib: $(srcdir)/config/arc/genmultilib.awk \
39 $(srcdir)/config/arc/arc-cpus.def
40 $(AWK) -f $< -v FORMAT=Makefile $< $(srcdir)/config/arc/arc-cpus.def > $@
42 $(srcdir)/config/arc/arc-tables.opt: $(srcdir)/config/arc/genoptions.awk \
43 $(srcdir)/config/arc/arc-cpus.def
44 $(AWK) -f $< -v FORMAT=Makefile $< $(srcdir)/config/arc/arc-cpus.def > $@