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