2 # GCC makefile fragment for MeP
3 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
4 # Contributed by Red Hat Inc
6 # This file is part of GCC.
8 # GCC is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3, or (at your option)
13 # GCC is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 # License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GCC; see the file COPYING3. If not see
20 # <http://www.gnu.org/licenses/>. */
22 # Force genpreds to be rebuilt in case MeP-Integrator changed the predicates
24 GTM_H = tm.h $(tm_file_list) $(srcdir)/config/mep/mep-intrin.h insn-constants.h
28 mep-pragma.o: $(srcdir)/config/mep/mep-pragma.c $(CONFIG_H) $(SYSTEM_H) \
29 coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(C_PRAGMA_H) \
30 $(CPPLIB_H) hard-reg-set.h output.h $(srcdir)/config/mep/mep-protos.h \
31 function.h insn-config.h reload.h $(TARGET_H)
32 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
34 MULTILIB_OPTIONS = mel mall-opts mfar
35 MULTILIB_DIRNAMES = el allopt far
38 $(srcdir)/config/mep/intrinsics.md \
39 $(srcdir)/config/mep/predicates.md \
40 $(srcdir)/config/mep/constraints.md
42 mep.o : $(srcdir)/config/mep/mep-intrin.h dumpfile.h
46 MEP_COPRO = ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64
49 # To use this, you must have cgen and cgen/cpu in the same source tree as
52 S=`cd $(srcdir); pwd`; \
53 cd $$S/config/mep && \
54 guile -s $$S/../cgen/cgen-intrinsics.scm \
57 -a $$S/../cgen/cpu/mep.cpu \
59 -i mep,$(MEP_CORE),$(MEP_COPRO) \
60 -K mep,$(MEP_CORE),$(MEP_COPRO) \
66 EXTRA_HEADERS = $(srcdir)/config/mep/intrinsics.h \
67 $(srcdir)/config/mep/default.h