1 |
282 |
jeremybenn |
# Support for NetBSD PowerPC ELF targets (SVR4 ABI).
|
2 |
|
|
#
|
3 |
|
|
# Copyright (C) 2002, 2008 Free Software Foundation, Inc.
|
4 |
|
|
#
|
5 |
|
|
# This file is part of GCC.
|
6 |
|
|
#
|
7 |
|
|
# GCC is free software; you can redistribute it and/or modify
|
8 |
|
|
# it under the terms of the GNU General Public License as published by
|
9 |
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
10 |
|
|
# any later version.
|
11 |
|
|
#
|
12 |
|
|
# GCC is distributed in the hope that it will be useful,
|
13 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
# GNU General Public License for more details.
|
16 |
|
|
#
|
17 |
|
|
# You should have received a copy of the GNU General Public License
|
18 |
|
|
# along with GCC; see the file COPYING3. If not see
|
19 |
|
|
# .
|
20 |
|
|
|
21 |
|
|
LIB2FUNCS_EXTRA = tramp.S
|
22 |
|
|
|
23 |
|
|
LIB2FUNCS_STATIC_EXTRA = crtsavfpr.S crtresfpr.S \
|
24 |
|
|
crtsavgpr.S crtresgpr.S \
|
25 |
|
|
crtresxfpr.S crtresxgpr.S
|
26 |
|
|
|
27 |
|
|
tramp.S: $(srcdir)/config/rs6000/tramp.asm
|
28 |
|
|
cat $(srcdir)/config/rs6000/tramp.asm > tramp.S
|
29 |
|
|
|
30 |
|
|
crtsavfpr.S: $(srcdir)/config/rs6000/crtsavfpr.asm
|
31 |
|
|
cat $(srcdir)/config/rs6000/crtsavfpr.asm >crtsavfpr.S
|
32 |
|
|
|
33 |
|
|
crtresfpr.S: $(srcdir)/config/rs6000/crtresfpr.asm
|
34 |
|
|
cat $(srcdir)/config/rs6000/crtresfpr.asm >crtresfpr.S
|
35 |
|
|
|
36 |
|
|
crtsavgpr.S: $(srcdir)/config/rs6000/crtsavgpr.asm
|
37 |
|
|
cat $(srcdir)/config/rs6000/crtsavgpr.asm >crtsavgpr.S
|
38 |
|
|
|
39 |
|
|
crtresgpr.S: $(srcdir)/config/rs6000/crtresgpr.asm
|
40 |
|
|
cat $(srcdir)/config/rs6000/crtresgpr.asm >crtresgpr.S
|
41 |
|
|
|
42 |
|
|
crtresxfpr.S: $(srcdir)/config/rs6000/crtresxfpr.asm
|
43 |
|
|
cat $(srcdir)/config/rs6000/crtresxfpr.asm >crtresxfpr.S
|
44 |
|
|
|
45 |
|
|
crtresxgpr.S: $(srcdir)/config/rs6000/crtresxgpr.asm
|
46 |
|
|
cat $(srcdir)/config/rs6000/crtresxgpr.asm >crtresxgpr.S
|
47 |
|
|
|
48 |
|
|
# It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
|
49 |
|
|
CRTSTUFF_T_CFLAGS += -msdata=none
|
50 |
|
|
CRTSTUFF_T_CFLAGS_S += -msdata=none
|
51 |
|
|
|
52 |
|
|
# Switch synonyms
|
53 |
|
|
MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \
|
54 |
|
|
msoft-float=mcpu?403 \
|
55 |
|
|
msoft-float=mcpu?405 \
|
56 |
|
|
msoft-float=mcpu?ec603e \
|
57 |
|
|
msoft-float=mcpu?801 \
|
58 |
|
|
msoft-float=mcpu?821 \
|
59 |
|
|
msoft-float=mcpu?823 \
|
60 |
|
|
msoft-float=mcpu?860
|
61 |
|
|
|
62 |
|
|
MULTILIB_OPTIONS = msoft-float
|
63 |
|
|
MULTILIB_DIRNAMES = soft-float
|
64 |
|
|
MULTILIB_EXTRA_OPTS = fPIC mstrict-align
|
65 |
|
|
MULTILIB_EXCEPTIONS =
|
66 |
|
|
|
67 |
|
|
MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT}
|
68 |
|
|
|
69 |
|
|
LIBGCC = stmp-multilib
|
70 |
|
|
INSTALL_LIBGCC = install-multilib
|
71 |
|
|
EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \
|
72 |
|
|
crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext)
|
73 |
|
|
|
74 |
|
|
$(T)crtsavfpr$(objext): crtsavfpr.S
|
75 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavfpr.S -o $(T)crtsavfpr$(objext)
|
76 |
|
|
|
77 |
|
|
$(T)crtresfpr$(objext): crtresfpr.S
|
78 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresfpr.S -o $(T)crtresfpr$(objext)
|
79 |
|
|
|
80 |
|
|
$(T)crtsavgpr$(objext): crtsavgpr.S
|
81 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavgpr.S -o $(T)crtsavgpr$(objext)
|
82 |
|
|
|
83 |
|
|
$(T)crtresgpr$(objext): crtresgpr.S
|
84 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresgpr.S -o $(T)crtresgpr$(objext)
|
85 |
|
|
|
86 |
|
|
$(T)crtresxfpr$(objext): crtresxfpr.S
|
87 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresxfpr.S -o $(T)crtresxfpr$(objext)
|
88 |
|
|
|
89 |
|
|
$(T)crtresxgpr$(objext): crtresxgpr.S
|
90 |
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresxgpr.S -o $(T)crtresxgpr$(objext)
|