PR/56490
[official-gcc.git] / gcc / config / mep / t-mep
blobb877b950dea31b13023de87e621f906940d66c0f
1 # -*- makefile -*-
2 # GCC makefile fragment for MeP
3 # Copyright (C) 2001-2013 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)
11 # any later version.
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
26 TCFLAGS = -mlibrary
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
37 MD_INCLUDES = \
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
44 # begin-isas
45 MEP_CORE = ext_core1
46 MEP_COPRO = ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64
47 # end-isas
49 # To use this, you must have cgen and cgen/cpu in the same source tree as
50 # gcc.
51 cgen-maint :
52         S=`cd $(srcdir); pwd`; \
53         cd $$S/config/mep && \
54         guile -s $$S/../cgen/cgen-intrinsics.scm \
55                 -s $$S/../cgen \
56                 $(CGENFLAGS) \
57                 -a $$S/../cgen/cpu/mep.cpu \
58                 -m mep,c5 \
59                 -i mep,$(MEP_CORE),$(MEP_COPRO) \
60                 -K mep,$(MEP_CORE),$(MEP_COPRO) \
61                 -M intrinsics.md \
62                 -N mep-intrin.h \
63                 -P intrinsics.h
65 # start-extra-headers
66 EXTRA_HEADERS = $(srcdir)/config/mep/intrinsics.h \
67         $(srcdir)/config/mep/default.h
68 # end-extra-headers