]>
Commit | Line | Data |
---|---|---|
f6a83b4a DD |
1 | # Makefile fragment for building GCC for the TI MSP430 target. |
2 | # Copyright (C) 2012-2013 Free Software Foundation, Inc. | |
3 | # Contributed by Red Hat. | |
4 | # | |
5 | # This file is part of GCC. | |
6 | # | |
7 | # GCC is free software; you can redistribute it and/or modify it | |
8 | # under the terms of the GNU General Public License as published | |
9 | # by the Free Software Foundation; either version 3, or (at your | |
10 | # option) any later version. | |
11 | # | |
12 | # GCC is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | |
15 | # the GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public | |
18 | # License along with GCC; see the file COPYING3. If not see | |
19 | # <http://www.gnu.org/licenses/>. | |
20 | ||
21 | # Enable multilibs: | |
22 | ||
23 | MULTILIB_OPTIONS = mmcu=msp430x mlarge | |
24 | MULTILIB_DIRNAMES = 430x large | |
25 | ||
26 | # Match msp430X with msp430x. | |
27 | MULTILIB_MATCHES = mmcu?msp430x=mmcu?msp430X | |
28 | ||
29 | # each supported MCU needs a line like this: | |
30 | # MULTILIB_MATCHES += mmcu?msp430x123=mmcu?msp430x | |
31 | ||
32 | # The only way I figured this out was to hack the script to SHOW me | |
33 | # what it's doing. It's non-obvious, but it matches the directory | |
34 | # structure of the multilib tree, but using the options, not the | |
35 | # directory names. A shell CASE statement is generated from these, so | |
36 | # the usual CASE wildcards are supported. | |
37 | ||
38 | MULTILIB_EXCEPTIONS = mlarge | |
39 | ||
40 | MULTILIB_EXTRA_OPTS = | |
41 | ||
42 | msp430-c.o: $(srcdir)/config/msp430/msp430-c.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_H) | |
43 | $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< |