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