]>
Commit | Line | Data |
---|---|---|
7acf4da6 DD |
1 | # -*- makefile -*- |
2 | # GCC makefile fragment for MeP | |
569dc494 | 3 | # Copyright (C) 2001, 2002, 2003, 2005, 2007, 2009, 2010, 2011 |
7acf4da6 DD |
4 | # Free Software Foundation, Inc. |
5 | # Contributed by Red Hat Inc | |
6 | # | |
7 | # This file is part of GCC. | |
8 | # | |
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) | |
12 | # any later version. | |
13 | # | |
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. | |
18 | # | |
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/>. */ | |
22 | ||
23 | # Force genpreds to be rebuilt in case MeP-Integrator changed the predicates | |
24 | ||
ce959463 | 25 | GTM_H = tm.h $(tm_file_list) $(srcdir)/config/mep/mep-intrin.h insn-constants.h |
7acf4da6 | 26 | |
7acf4da6 DD |
27 | TCFLAGS = -mlibrary |
28 | ||
29 | mep-pragma.o: $(srcdir)/config/mep/mep-pragma.c $(CONFIG_H) $(SYSTEM_H) \ | |
7c475d11 | 30 | coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(C_PRAGMA_H) \ |
7acf4da6 DD |
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 | $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< | |
34 | ||
7acf4da6 DD |
35 | # multiply and divide routines |
36 | ||
37 | LIB2FUNCS_EXTRA = \ | |
38 | $(srcdir)/config/mep/mep-lib2.c \ | |
39 | $(srcdir)/config/mep/mep-tramp.c | |
40 | ||
7acf4da6 DD |
41 | MULTILIB_OPTIONS = mel mall-opts mfar |
42 | MULTILIB_DIRNAMES = el allopt far | |
43 | ||
7acf4da6 DD |
44 | MD_INCLUDES = \ |
45 | $(srcdir)/config/mep/intrinsics.md \ | |
46 | $(srcdir)/config/mep/predicates.md \ | |
47 | $(srcdir)/config/mep/constraints.md | |
48 | ||
49 | mep.o : $(srcdir)/config/mep/mep-intrin.h | |
50 | ||
51 | # begin-isas | |
52 | MEP_CORE = ext_core1 | |
53 | MEP_COPRO = ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64 | |
54 | # end-isas | |
55 | ||
56 | # To use this, you must have cgen and cgen/cpu in the same source tree as | |
57 | # gcc. | |
58 | cgen-maint : | |
59 | S=`cd $(srcdir); pwd`; \ | |
60 | cd $$S/config/mep && \ | |
61 | guile -s $$S/../cgen/cgen-intrinsics.scm \ | |
62 | -s $$S/../cgen \ | |
63 | $(CGENFLAGS) \ | |
64 | -a $$S/../cgen/cpu/mep.cpu \ | |
65 | -m mep,c5 \ | |
66 | -i mep,$(MEP_CORE),$(MEP_COPRO) \ | |
67 | -K mep,$(MEP_CORE),$(MEP_COPRO) \ | |
68 | -M intrinsics.md \ | |
69 | -N mep-intrin.h \ | |
70 | -P intrinsics.h | |
71 | ||
72 | # start-extra-headers | |
73 | EXTRA_HEADERS = $(srcdir)/config/mep/intrinsics.h \ | |
74 | $(srcdir)/config/mep/default.h | |
75 | # end-extra-headers |