annotate libgcc/Makefile.in @ 120:f93fa5091070

fix conv1.c
author mir3636
date Thu, 08 Mar 2018 14:53:42 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Makefile.in
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
111
kono
parents: 67
diff changeset
3 # Copyright (C) 2005-2017 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 # This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 # GCC is free software; you can redistribute it and/or modify it under the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 # terms of the GNU Library General Public License as published by the Free
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 # Software Foundation; either version 3 of the License, or (at your option)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 # any later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 # more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License along
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 # with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 # <http://www.gnu.org/licenses/>.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 libgcc_topdir = @libgcc_topdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 host_subdir = @host_subdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 gcc_objdir = $(MULTIBUILDTOP)../../$(host_subdir)/gcc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 srcdir = @srcdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 prefix = @prefix@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 exec_prefix = @exec_prefix@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 libdir = @libdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 shlib_slibdir = @slibdir@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 SHELL = @SHELL@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
111
kono
parents: 67
diff changeset
37 cpu_type = @cpu_type@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 enable_shared = @enable_shared@
111
kono
parents: 67
diff changeset
39 double_type_size = @double_type_size@
kono
parents: 67
diff changeset
40 long_double_type_size = @long_double_type_size@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 decimal_float = @decimal_float@
111
kono
parents: 67
diff changeset
42 enable_vtable_verify = @enable_vtable_verify@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 enable_decimal_float = @enable_decimal_float@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 fixed_point = @fixed_point@
111
kono
parents: 67
diff changeset
45 with_aix_soname = @with_aix_soname@
kono
parents: 67
diff changeset
46 enable_execute_stack = @enable_execute_stack@
kono
parents: 67
diff changeset
47 unwind_header = @unwind_header@
kono
parents: 67
diff changeset
48 md_unwind_header = @md_unwind_header@
kono
parents: 67
diff changeset
49 sfp_machine_header = @sfp_machine_header@
kono
parents: 67
diff changeset
50 thread_header = @thread_header@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 host_noncanonical = @host_noncanonical@
111
kono
parents: 67
diff changeset
53 real_host_noncanonical = @real_host_noncanonical@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
54 target_noncanonical = @target_noncanonical@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 # List of extra object files that should be compiled for this target machine.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 # The rules for compiling them should be in the t-* file for the machine.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 EXTRA_PARTS = @extra_parts@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59
111
kono
parents: 67
diff changeset
60 FORCE_EXPLICIT_EH_REGISTRY = @force_explicit_eh_registry@
kono
parents: 67
diff changeset
61
kono
parents: 67
diff changeset
62 extra-parts = libgcc-extra-parts
kono
parents: 67
diff changeset
63
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 # Multilib support variables.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 MULTISRCTOP =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 MULTIBUILDTOP =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 MULTIDIRS =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 MULTISUBDIR =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 MULTIDO = true
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 MULTICLEAN = true
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 INSTALL = @INSTALL@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 INSTALL_PROGRAM = @INSTALL_PROGRAM@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 INSTALL_DATA = @INSTALL_DATA@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 mkinstalldirs = $(SHELL) $(libgcc_topdir)/mkinstalldirs
111
kono
parents: 67
diff changeset
76 INSTALL_PARTS = $(EXTRA_PARTS)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 objext = .o
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 AR = @AR@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 AR_FLAGS = rc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 CC = @CC@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 CFLAGS = @CFLAGS@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 RANLIB = @RANLIB@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 LN_S = @LN_S@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 PWD_COMMAND = $${PWDCMD-pwd}
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 # Flags to pass to a recursive make.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 FLAGS_TO_PASS = \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 "AR=$(AR)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 "AR_FLAGS=$(AR_FLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 "CC=$(CC)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 "CFLAGS=$(CFLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 "DESTDIR=$(DESTDIR)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 "EXTRA_OFILES=$(EXTRA_OFILES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 "HDEFINES=$(HDEFINES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 "INSTALL=$(INSTALL)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 "INSTALL_DATA=$(INSTALL_DATA)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 "LDFLAGS=$(LDFLAGS)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 "LOADLIBES=$(LOADLIBES)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 "RANLIB=$(RANLIB)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 "SHELL=$(SHELL)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 "prefix=$(prefix)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 "exec_prefix=$(exec_prefix)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 "libdir=$(libdir)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 "libsubdir=$(libsubdir)" \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 "tooldir=$(tooldir)"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 # Dependencies for "all" are set later in the file.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 all: all-multi
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 # Now that we have built all the objects, we need to copy
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 # them back to the GCC directory. Too many things (other
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 # in-tree libraries, and DejaGNU) know about the layout
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 # of the build tree, for now.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 $(MAKE) install-leaf DESTDIR=$(gcc_objdir) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 slibdir= libsubdir= MULTIOSDIR=$(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 .PHONY: all-multi
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 all-multi:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 # If this is the top-level multilib, build all the other
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 # multilibs.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 .PHONY: check installcheck
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
128 check:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 installcheck:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
130
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 .PHONY: all clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 clean:
111
kono
parents: 67
diff changeset
134 -rm -f libgcc_tm.h libgcc.map
kono
parents: 67
diff changeset
135 -rm -f libgcc_tm.stamp stmp-ldirs
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 -rm -f *$(objext)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
137 -rm -f *.dep
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
138 -rm -f *.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
139 -rm -f libunwind$(SHLIB_EXT)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140 -rm -f libgcc_s*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 @$(MULTICLEAN) multi-clean DO=clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 distclean: clean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 @$(MULTICLEAN) multi-clean DO=distclean
111
kono
parents: 67
diff changeset
144 -rm -f auto-target.h
kono
parents: 67
diff changeset
145 -rm -f stamp-h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 -rm -f *~ Makefile config.cache config.status multilib.out
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 -rm -f config.log
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 maintainer-clean realclean: distclean
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 Makefile: $(srcdir)/Makefile.in config.status
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 # Depending on Makefile makes sure that config.status has been re-run
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 # if needed. This prevents problems with parallel builds.
111
kono
parents: 67
diff changeset
155 auto-target.h: stamp-h ; @true
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 stamp-h: $(srcdir)/config.in config.status Makefile
111
kono
parents: 67
diff changeset
157 CONFIG_FILES= CONFIG_HEADERS=auto-target.h:$(srcdir)/config.in $(SHELL) ./config.status
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 config.status: $(srcdir)/configure $(srcdir)/config.host
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 $(SHELL) ./config.status --recheck
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
162 AUTOCONF = autoconf
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
163 configure_deps = \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
164 $(srcdir)/../config/enable.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
165 $(srcdir)/../config/tls.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
166 $(srcdir)/../config/acx.m4 \
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
167 $(srcdir)/../config/no-executables.m4 \
111
kono
parents: 67
diff changeset
168 $(srcdir)/../config/lib-ld.m4 \
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
169 $(srcdir)/../config/override.m4 \
111
kono
parents: 67
diff changeset
170 $(srcdir)/../config/picflag.m4 \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
171 $(srcdir)/../config/dfp.m4 \
111
kono
parents: 67
diff changeset
172 $(srcdir)/../config/unwind_ipinfo.m4 \
kono
parents: 67
diff changeset
173 $(srcdir)/../config/gthr.m4 \
kono
parents: 67
diff changeset
174 $(srcdir)/../config/sjlj.m4
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
175
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
176 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
177 cd $(srcdir) && $(AUTOCONF)
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
178
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 include $(gcc_objdir)/libgcc.mvars
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
180
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 # Flags to pass to recursive makes.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 AR_FOR_TARGET = $(AR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 AR_FLAGS_FOR_TARGET =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 AWK = @AWK@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 GCC_FOR_TARGET = $(CC)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 LIPO = @LIPO@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 LIPO_FOR_TARGET = $(LIPO)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 MACHMODE_H = machmode.h mode-classes.def insn-modes.h
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 NM = @NM@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 NM_FOR_TARGET = $(NM)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 RANLIB_FOR_TARGET = $(RANLIB)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 STRIP = @STRIP@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 STRIP_FOR_TARGET = $(STRIP)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 # Directory in which the compiler finds libraries etc.
111
kono
parents: 67
diff changeset
199 libsubdir = $(libdir)/gcc/$(real_host_noncanonical)/$(version)@accel_dir_suffix@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 # Used to install the shared libgcc.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 slibdir = @slibdir@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
202 # Maybe used for DLLs on Windows targets.
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
203 toolexecdir = @toolexecdir@
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
204 toolexeclibdir = @toolexeclibdir@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
205
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 export AR_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 export AR_CREATE_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 export AR_FLAGS_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 export AR_EXTRACT_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 export AWK
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 export DESTDIR
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 export GCC_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 export INCLUDES
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 export INSTALL_DATA
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 export LIB1ASMSRC
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 export LIBGCC2_CFLAGS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 export LIPO_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 export MACHMODE_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 export NM_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 export STRIP_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 export RANLIB_FOR_TARGET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 export libsubdir
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 export slibdir
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
224 export toolexecdir
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
225 export toolexeclibdir
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226
111
kono
parents: 67
diff changeset
227 version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
228
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229 ifeq ($(decimal_float),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 DECNUMINC = -I$(srcdir)/config/libbid -DENABLE_DECIMAL_BID_FORMAT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 DECNUMINC = -I$(srcdir)/../libdecnumber/$(enable_decimal_float) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 -I$(srcdir)/../libdecnumber
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
235 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 DECNUMINC =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239
111
kono
parents: 67
diff changeset
240 # Options to use when compiling libgcc2.a.
kono
parents: 67
diff changeset
241 #
kono
parents: 67
diff changeset
242 LIBGCC2_DEBUG_CFLAGS = -g
kono
parents: 67
diff changeset
243 LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
kono
parents: 67
diff changeset
244 $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
kono
parents: 67
diff changeset
245 -fbuilding-libgcc -fno-stack-protector \
kono
parents: 67
diff changeset
246 $(INHIBIT_LIBC_CFLAGS)
kono
parents: 67
diff changeset
247
kono
parents: 67
diff changeset
248 # Additional options to use when compiling libgcc2.a.
kono
parents: 67
diff changeset
249 # Some targets override this to -isystem include
kono
parents: 67
diff changeset
250 LIBGCC2_INCLUDES =
kono
parents: 67
diff changeset
251
kono
parents: 67
diff changeset
252 # Additional target-dependent options for compiling libgcc2.a.
kono
parents: 67
diff changeset
253 HOST_LIBGCC2_CFLAGS =
kono
parents: 67
diff changeset
254
kono
parents: 67
diff changeset
255 PICFLAG = @PICFLAG@
kono
parents: 67
diff changeset
256
kono
parents: 67
diff changeset
257 # Defined in libgcc2.c, included only in the static library.
kono
parents: 67
diff changeset
258 LIB2FUNCS_ST = _eprintf __gcc_bcmp
kono
parents: 67
diff changeset
259
kono
parents: 67
diff changeset
260 # List of functions not to build from libgcc2.c.
kono
parents: 67
diff changeset
261 LIB2FUNCS_EXCLUDE =
kono
parents: 67
diff changeset
262
kono
parents: 67
diff changeset
263 # List of extra C and assembler files to add to static and shared libgcc2.
kono
parents: 67
diff changeset
264 # Assembler files should have names ending in `.S'.
kono
parents: 67
diff changeset
265 LIB2ADD =
kono
parents: 67
diff changeset
266
kono
parents: 67
diff changeset
267 # List of extra C and assembler files to add to static libgcc2.
kono
parents: 67
diff changeset
268 # Assembler files should have names ending in `.S'.
kono
parents: 67
diff changeset
269 LIB2ADD_ST =
kono
parents: 67
diff changeset
270
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
271 # Specify the directories to be searched for header files.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 # Both . and srcdir are used, in that order,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 # so that *config.h will be found in the compilation
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
274 # subdirectory rather than in the source directory.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 # -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 # currently being compiled, in both source trees, to be examined as well.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 INCLUDES = -I. -I$(@D) -I$(gcc_objdir) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 -I$(srcdir) -I$(srcdir)/$(@D) -I$(srcdir)/../gcc \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 -I$(srcdir)/../include $(DECNUMINC)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 # Forcibly remove any profiling-related flags. There is no point
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
282 # in supporting profiled bootstrap in this library.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 override CFLAGS := $(filter-out -fprofile-generate -fprofile-use,$(CFLAGS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 # CFLAGS first is not perfect; normally setting CFLAGS should override any
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 # options in LIBGCC2_CFLAGS. But LIBGCC2_CFLAGS may contain -g0, and CFLAGS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 # will usually contain -g, so for the moment CFLAGS goes first. We must
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
288 # include CFLAGS - that's where multilib options live.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
289 INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
290 $(INCLUDES) @set_have_cc_tls@ @set_use_emutls@
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291
111
kono
parents: 67
diff changeset
292 # Options to use when compiling crtbegin/end.
kono
parents: 67
diff changeset
293 CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
kono
parents: 67
diff changeset
294 $(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \
kono
parents: 67
diff changeset
295 -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
kono
parents: 67
diff changeset
296 -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
kono
parents: 67
diff changeset
297 $(INHIBIT_LIBC_CFLAGS)
kono
parents: 67
diff changeset
298
kono
parents: 67
diff changeset
299 # Extra flags to use when compiling crt{begin,end}.o.
kono
parents: 67
diff changeset
300 CRTSTUFF_T_CFLAGS =
kono
parents: 67
diff changeset
301
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
302 MULTIDIR := $(shell $(CC) $(CFLAGS) -print-multi-directory)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
303 MULTIOSDIR := $(shell $(CC) $(CFLAGS) -print-multi-os-directory)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
304
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
305 MULTIOSSUBDIR := $(shell if test $(MULTIOSDIR) != .; then echo /$(MULTIOSDIR); fi)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
306 inst_libdir = $(libsubdir)$(MULTISUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
307 inst_slibdir = $(slibdir)$(MULTIOSSUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
308
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
309 gcc_compile_bare = $(CC) $(INTERNAL_CFLAGS)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
310 compile_deps = -MT $@ -MD -MP -MF $(basename $@).dep
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 gcc_compile = $(gcc_compile_bare) -o $@ $(compile_deps)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 gcc_s_compile = $(gcc_compile) -DSHARED
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
314 objects = $(filter %$(objext),$^)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
315
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
316 # Collect any host-specific information from Makefile fragments.
111
kono
parents: 67
diff changeset
317
kono
parents: 67
diff changeset
318 LIBGCC_VER_GNU_PREFIX = __
kono
parents: 67
diff changeset
319 LIBGCC_VER_FIXEDPOINT_GNU_PREFIX = __
kono
parents: 67
diff changeset
320 LIBGCC_VER_SYMBOLS_PREFIX =
kono
parents: 67
diff changeset
321
kono
parents: 67
diff changeset
322 FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
kono
parents: 67
diff changeset
323 _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
kono
parents: 67
diff changeset
324 _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
kono
parents: 67
diff changeset
325 _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi _usi_to_sf
kono
parents: 67
diff changeset
326
kono
parents: 67
diff changeset
327 DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \
kono
parents: 67
diff changeset
328 _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
kono
parents: 67
diff changeset
329 _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
kono
parents: 67
diff changeset
330 _df_to_sf _df_to_tf _thenan_df _df_to_usi _usi_to_df
kono
parents: 67
diff changeset
331
kono
parents: 67
diff changeset
332 TPBIT_FUNCS = _pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf \
kono
parents: 67
diff changeset
333 _fpcmp_parts_tf _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf \
kono
parents: 67
diff changeset
334 _lt_tf _le_tf _unord_tf _si_to_tf _tf_to_si _negate_tf _make_tf \
kono
parents: 67
diff changeset
335 _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi _usi_to_tf
kono
parents: 67
diff changeset
336
kono
parents: 67
diff changeset
337 # Additional sources to handle exceptions; overridden by targets as needed.
kono
parents: 67
diff changeset
338 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
kono
parents: 67
diff changeset
339 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
kono
parents: 67
diff changeset
340 LIB2ADDEHSTATIC = $(LIB2ADDEH)
kono
parents: 67
diff changeset
341 LIB2ADDEHSHARED = $(LIB2ADDEH)
kono
parents: 67
diff changeset
342
kono
parents: 67
diff changeset
343 # nm flags to list global symbols in libgcc object files.
kono
parents: 67
diff changeset
344 SHLIB_NM_FLAGS = -pg
kono
parents: 67
diff changeset
345
kono
parents: 67
diff changeset
346 # Don't build libunwind by default.
kono
parents: 67
diff changeset
347 LIBUNWIND =
kono
parents: 67
diff changeset
348 SHLIBUNWIND_LINK =
kono
parents: 67
diff changeset
349 SHLIBUNWIND_INSTALL =
kono
parents: 67
diff changeset
350
kono
parents: 67
diff changeset
351
kono
parents: 67
diff changeset
352 # Create links to files specified in config.host.
kono
parents: 67
diff changeset
353 LIBGCC_LINKS = enable-execute-stack.c unwind.h md-unwind-support.h \
kono
parents: 67
diff changeset
354 sfp-machine.h gthr-default.h
kono
parents: 67
diff changeset
355
kono
parents: 67
diff changeset
356 enable-execute-stack.c: $(srcdir)/$(enable_execute_stack)
kono
parents: 67
diff changeset
357 -$(LN_S) $< $@
kono
parents: 67
diff changeset
358 unwind.h: $(srcdir)/$(unwind_header)
kono
parents: 67
diff changeset
359 -$(LN_S) $< $@
kono
parents: 67
diff changeset
360 md-unwind-support.h: $(srcdir)/config/$(md_unwind_header)
kono
parents: 67
diff changeset
361 -$(LN_S) $< $@
kono
parents: 67
diff changeset
362 sfp-machine.h: $(srcdir)/config/$(sfp_machine_header)
kono
parents: 67
diff changeset
363 -$(LN_S) $< $@
kono
parents: 67
diff changeset
364 gthr-default.h: $(srcdir)/$(thread_header)
kono
parents: 67
diff changeset
365 -$(LN_S) $< $@
kono
parents: 67
diff changeset
366
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367 tmake_file = @tmake_file@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
368 include $(srcdir)/empty.mk $(tmake_file)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369
111
kono
parents: 67
diff changeset
370 # Collect target defines and headers from config.host.
kono
parents: 67
diff changeset
371 libgcc_tm_defines = @tm_defines@
kono
parents: 67
diff changeset
372 libgcc_tm_file = @tm_file@
kono
parents: 67
diff changeset
373 libgcc_tm.h: libgcc_tm.stamp; @true
kono
parents: 67
diff changeset
374 libgcc_tm.stamp:
kono
parents: 67
diff changeset
375 DEFINES='$(libgcc_tm_defines)' HEADERS='$(libgcc_tm_file)' \
kono
parents: 67
diff changeset
376 $(srcdir)/mkheader.sh > tmp-libgcc_tm.h
kono
parents: 67
diff changeset
377 $(SHELL) $(srcdir)/../move-if-change tmp-libgcc_tm.h libgcc_tm.h
kono
parents: 67
diff changeset
378 echo timestamp > $@
kono
parents: 67
diff changeset
379
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
380 # Only handle shared libraries if both:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
381 # - the user requested them
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
382 # - we know how to build them
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
383 ifeq ($(SHLIB_LINK),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
384 enable_shared := no
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/shared-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 install-shared = install-shared
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
391
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
392 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
393 install-libunwind = install-libunwind
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
394 endif
111
kono
parents: 67
diff changeset
395 endif
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
396
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
397 # For -fvisibility=hidden. We need both a -fvisibility=hidden on
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
398 # the command line, and a #define to prevent libgcc2.h etc from
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
399 # overriding that with #pragmas.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
400 vis_hide = @vis_hide@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
401
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
402 ifneq (,$(vis_hide))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
403
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
404 # If we have -fvisibility=hidden, then we need to generate hide
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
405 # lists for object files implemented in assembly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
406 ASM_HIDDEN_OP = @asm_hidden_op@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
408 define gen-hide-list
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
409 $(NM) -pg $< | \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
410 $(AWK) 'NF == 3 && $$2 !~ /^[UN]$$/ && $$3 !~ /.*_compat/ \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
411 && $$3 !~ /.*@.*/ \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
412 { print "\t$(ASM_HIDDEN_OP)", $$3 }' > $@T
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
413 mv -f $@T $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
414 endef
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
415 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
416 gen-hide-list = echo > $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
417 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
418
111
kono
parents: 67
diff changeset
419 ifneq ($(enable_shared),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
420 iterator = $(srcdir)/empty.mk $(patsubst %,$(srcdir)/static-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
421 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
422
111
kono
parents: 67
diff changeset
423 LIB2ADD += enable-execute-stack.c
kono
parents: 67
diff changeset
424
kono
parents: 67
diff changeset
425 # While emutls.c has nothing to do with EH, it is in LIB2ADDEH*
kono
parents: 67
diff changeset
426 # instead of LIB2ADD because that's the way to be sure on some targets
kono
parents: 67
diff changeset
427 # (e.g. *-*-darwin*) only one copy of it is linked.
kono
parents: 67
diff changeset
428 LIB2ADDEH += $(srcdir)/emutls.c
kono
parents: 67
diff changeset
429 LIB2ADDEHSTATIC += $(srcdir)/emutls.c
kono
parents: 67
diff changeset
430 LIB2ADDEHSHARED += $(srcdir)/emutls.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
431
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
432 # Library members defined in libgcc2.c.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
433 lib2funcs = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2 \
111
kono
parents: 67
diff changeset
434 _clear_cache _trampoline __main _absvsi2 \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
435 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
436 _negvsi2 _negvdi2 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
437 _ctzsi2 _ctzdi2 _popcount_tab _popcountsi2 _popcountdi2 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
438 _paritysi2 _paritydi2 _powisf2 _powidf2 _powixf2 _powitf2 \
111
kono
parents: 67
diff changeset
439 _mulhc3 _mulsc3 _muldc3 _mulxc3 _multc3 _divhc3 _divsc3 \
kono
parents: 67
diff changeset
440 _divdc3 _divxc3 _divtc3 _bswapsi2 _bswapdi2 _clrsbsi2 \
kono
parents: 67
diff changeset
441 _clrsbdi2
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
442
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
443 # The floating-point conversion routines that involve a single-word integer.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
444 # XX stands for the integer mode.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
445 swfloatfuncs = $(patsubst %,_fixuns%XX,sf df xf)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
446
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
447 # Likewise double-word routines.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
448 dwfloatfuncs = $(patsubst %,_fix%XX,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
449 $(patsubst %,_fixuns%XX,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
450 $(patsubst %,_floatXX%,sf df xf tf) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
451 $(patsubst %,_floatunXX%,sf df xf tf)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
452
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
453 ifeq ($(LIB2_SIDITI_CONV_FUNCS),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
454 lib2funcs += $(subst XX,si,$(swfloatfuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455 lib2funcs += $(subst XX,di,$(dwfloatfuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
456 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
457
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
458 # These might cause a divide overflow trap and so are compiled with
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459 # unwinder info.
111
kono
parents: 67
diff changeset
460 LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _divmoddi4 \
kono
parents: 67
diff changeset
461 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
462
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
463 # Remove any objects from lib2funcs and LIB2_DIVMOD_FUNCS that are
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
464 # defined as optimized assembly code in LIB1ASMFUNCS or as C code
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
465 # in LIB2FUNCS_EXCLUDE.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
466 lib2funcs := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS),$(lib2funcs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
467 LIB2_DIVMOD_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE) $(LIB1ASMFUNCS), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
468 $(LIB2_DIVMOD_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
469
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
470 # Build "libgcc1" (assembly) components.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
472 lib1asmfuncs-o = $(patsubst %,%$(objext),$(LIB1ASMFUNCS))
111
kono
parents: 67
diff changeset
473 $(lib1asmfuncs-o): %$(objext): $(srcdir)/config/$(LIB1ASMSRC) %.vis
kono
parents: 67
diff changeset
474 $(gcc_compile) -DL$* -xassembler-with-cpp -c $< -include $*.vis
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
475 $(patsubst %,%.vis,$(LIB1ASMFUNCS)): %.vis: %_s$(objext)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
476 $(gen-hide-list)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 libgcc-objects += $(lib1asmfuncs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
478
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 lib1asmfuncs-s-o = $(patsubst %,%_s$(objext),$(LIB1ASMFUNCS))
111
kono
parents: 67
diff changeset
480 $(lib1asmfuncs-s-o): %_s$(objext): $(srcdir)/config/$(LIB1ASMSRC)
kono
parents: 67
diff changeset
481 $(gcc_s_compile) -DL$* -xassembler-with-cpp -c $<
kono
parents: 67
diff changeset
482 ifeq ($(enable_shared),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
483
111
kono
parents: 67
diff changeset
484 libgcc-s-objects += $(lib1asmfuncs-s-o)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
485
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
486 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
487
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
488 # Build lib2funcs. For the static library also include LIB2FUNCS_ST.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
489 lib2funcs-o = $(patsubst %,%$(objext),$(lib2funcs) $(LIB2FUNCS_ST))
111
kono
parents: 67
diff changeset
490 $(lib2funcs-o): %$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
491 $(gcc_compile) -DL$* -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
492 libgcc-objects += $(lib2funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
493
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
494 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
495 lib2funcs-s-o = $(patsubst %,%_s$(objext),$(lib2funcs))
111
kono
parents: 67
diff changeset
496 $(lib2funcs-s-o): %_s$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
497 $(gcc_s_compile) -DL$* -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
498 libgcc-s-objects += $(lib2funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
499 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
500
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
501 ifneq ($(LIB2_SIDITI_CONV_FUNCS),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
502 # Build libgcc2.c for each conversion function, with a specific
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
503 # L<func> definition and LIBGCC2_UNITS_PER_WORD setting. The DImode
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
504 # functions are built with a wordsize of 4; the TImode functions are
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
505 # built with the same labels, but a wordsize of 8.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
506
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
507 sifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,si,$(swfloatfuncs)))
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
508 difuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,di,$(dwfloatfuncs)))
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
509 tifuncs := $(filter-out $(LIB2FUNCS_EXCLUDE),$(subst XX,ti,$(dwfloatfuncs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
510
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
511 iter-items := $(sifuncs) $(difuncs) $(tifuncs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
512 iter-labels := $(sifuncs) $(difuncs) $(difuncs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
513 iter-sizes := $(patsubst %,4,$(sifuncs) $(difuncs)) $(patsubst %,8,$(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
514
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
515 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/siditi-object.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
516
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
517 libgcc-objects += $(patsubst %,%$(objext),$(sifuncs) $(difuncs) $(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
518 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
519 libgcc-s-objects += $(patsubst %,%_s$(objext),$(sifuncs) $(difuncs) $(tifuncs))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
520 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
521 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
522
111
kono
parents: 67
diff changeset
523 ifeq ($(LIB2_DIVMOD_EXCEPTION_FLAGS),)
kono
parents: 67
diff changeset
524 # Provide default flags for compiling divmod functions, if they haven't been
kono
parents: 67
diff changeset
525 # set already by a target-specific Makefile fragment.
kono
parents: 67
diff changeset
526 LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions -fnon-call-exceptions
kono
parents: 67
diff changeset
527 endif
kono
parents: 67
diff changeset
528
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
529 # Build LIB2_DIVMOD_FUNCS.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
530 lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS))
111
kono
parents: 67
diff changeset
531 $(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
532 $(gcc_compile) -DL$* -c $< \
kono
parents: 67
diff changeset
533 $(LIB2_DIVMOD_EXCEPTION_FLAGS) $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
534 libgcc-objects += $(lib2-divmod-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
535
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
536 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
537 lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS))
111
kono
parents: 67
diff changeset
538 $(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c
kono
parents: 67
diff changeset
539 $(gcc_s_compile) -DL$* -c $< \
kono
parents: 67
diff changeset
540 $(LIB2_DIVMOD_EXCEPTION_FLAGS)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
541 libgcc-s-objects += $(lib2-divmod-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
542 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544 ifeq ($(TPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
545 # _sf_to_tf and _df_to_tf require tp-bit.c being compiled in.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
546 FPBIT_FUNCS := $(filter-out _sf_to_tf,$(FPBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
547 DPBIT_FUNCS := $(filter-out _df_to_tf,$(DPBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549
111
kono
parents: 67
diff changeset
550 FPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(FPBIT_FUNCS))
kono
parents: 67
diff changeset
551 DPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(DPBIT_FUNCS))
kono
parents: 67
diff changeset
552 TPBIT_FUNCS := $(filter-out $(LIB2FUNCS_EXCLUDE),$(TPBIT_FUNCS))
kono
parents: 67
diff changeset
553
kono
parents: 67
diff changeset
554 fpbit-src := $(srcdir)/fp-bit.c
kono
parents: 67
diff changeset
555
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
556 # Build FPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
557 ifneq ($(FPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
558 fpbit-o = $(patsubst %,%$(objext),$(FPBIT_FUNCS))
111
kono
parents: 67
diff changeset
559 $(fpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
560 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DFLOAT $(FPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
561 libgcc-objects += $(fpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
562
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
563 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
564 fpbit-s-o = $(patsubst %,%_s$(objext),$(FPBIT_FUNCS))
111
kono
parents: 67
diff changeset
565 $(fpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
566 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DFLOAT $(FPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
567 libgcc-s-objects += $(fpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
568 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
569 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
570
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
571 # Build DPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
572 ifneq ($(DPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
573 dpbit-o = $(patsubst %,%$(objext),$(DPBIT_FUNCS))
111
kono
parents: 67
diff changeset
574 $(dpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
575 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* $(DPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
576 libgcc-objects += $(dpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
577
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
578 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
579 dpbit-s-o = $(patsubst %,%_s$(objext),$(DPBIT_FUNCS))
111
kono
parents: 67
diff changeset
580 $(dpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
581 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* $(DPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
582 libgcc-s-objects += $(dpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
583 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
584 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
585
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
586 # Build TPBIT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
587 ifneq ($(TPBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
588 tpbit-o = $(patsubst %,%$(objext),$(TPBIT_FUNCS))
111
kono
parents: 67
diff changeset
589 $(tpbit-o): %$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
590 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DTFLOAT $(TPBIT_CFLAGS) -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
591 libgcc-objects += $(tpbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
592
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
593 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
594 tpbit-s-o = $(patsubst %,%_s$(objext),$(TPBIT_FUNCS))
111
kono
parents: 67
diff changeset
595 $(tpbit-s-o): %_s$(objext): $(fpbit-src)
kono
parents: 67
diff changeset
596 $(gcc_s_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DTFLOAT $(TPBIT_CFLAGS) -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
597 libgcc-s-objects += $(tpbit-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
598 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
599 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
600
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
601 # Build decimal floating point support.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
602 ifeq ($(decimal_float),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
603
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
604 # If $DFP_ENABLE is set, then we want all data type sizes.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
605 ifneq ($(DFP_ENABLE),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
606 D32PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
607 D64PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
608 D128PBIT = 1
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
609 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
610
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
611 dfp-filenames =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
612 ifneq ($(D32PBIT)$(D64PBIT)$(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
613 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
614 dfp-filenames += bid_decimal_globals bid_decimal_data \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
615 bid_binarydecimal bid_convert_data \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
616 _isinfd32 _isinfd64 _isinfd128 bid64_noncomp \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
617 bid128_noncomp bid128_fma bid_round bid_from_int \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
618 bid64_add bid128_add bid64_div bid128_div \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
619 bid64_mul bid128_mul bid64_compare bid128_compare \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
620 bid128 bid32_to_bid64 bid32_to_bid128 bid64_to_bid128 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
621 bid64_to_int32 bid64_to_int64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
622 bid64_to_uint32 bid64_to_uint64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
623 bid128_to_int32 bid128_to_int64 \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
624 bid128_to_uint32 bid128_to_uint64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
625 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
626 dfp-filenames += decContext decNumber decExcept decRound decLibrary decDouble decPacked decQuad decSingle
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
627 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
628 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
629
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
630 dfp-objects = $(patsubst %,%$(objext),$(dfp-filenames))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
631 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
632 $(dfp-objects): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
633 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
634 $(dfp-objects): %$(objext): $(srcdir)/../libdecnumber/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
635 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
636 $(gcc_compile) -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
637 libgcc-objects += $(dfp-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
638
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
639 decbits-filenames =
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
640 ifneq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
641 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
642 decbits-filenames += decimal32
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
643 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
644
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
645 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
646 decbits-filenames += decimal64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
647 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
648
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
649 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
650 decbits-filenames += decimal128
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
651 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
652 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
653
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
654 decbits-objects = $(patsubst %,%$(objext),$(decbits-filenames))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
655 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
656 $(decbits-objects): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
657 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
658 $(decbits-objects): %$(objext): $(srcdir)/../libdecnumber/$(enable_decimal_float)/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
659 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
660 $(gcc_compile) -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
661 libgcc-objects += $(decbits-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
662
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
663 # Next build individual support functions.
111
kono
parents: 67
diff changeset
664 D32PBIT_FUNCS = _addsub_sd _div_sd _mul_sd _plus_sd _minus_sd \
kono
parents: 67
diff changeset
665 _eq_sd _ne_sd _lt_sd _gt_sd _le_sd _ge_sd \
kono
parents: 67
diff changeset
666 _sd_to_si _sd_to_di _sd_to_usi _sd_to_udi \
kono
parents: 67
diff changeset
667 _si_to_sd _di_to_sd _usi_to_sd _udi_to_sd \
kono
parents: 67
diff changeset
668 _sd_to_sf _sd_to_df _sd_to_xf _sd_to_tf \
kono
parents: 67
diff changeset
669 _sf_to_sd _df_to_sd _xf_to_sd _tf_to_sd \
kono
parents: 67
diff changeset
670 _sd_to_dd _sd_to_td _unord_sd _conv_sd
kono
parents: 67
diff changeset
671
kono
parents: 67
diff changeset
672 D64PBIT_FUNCS = _addsub_dd _div_dd _mul_dd _plus_dd _minus_dd \
kono
parents: 67
diff changeset
673 _eq_dd _ne_dd _lt_dd _gt_dd _le_dd _ge_dd \
kono
parents: 67
diff changeset
674 _dd_to_si _dd_to_di _dd_to_usi _dd_to_udi \
kono
parents: 67
diff changeset
675 _si_to_dd _di_to_dd _usi_to_dd _udi_to_dd \
kono
parents: 67
diff changeset
676 _dd_to_sf _dd_to_df _dd_to_xf _dd_to_tf \
kono
parents: 67
diff changeset
677 _sf_to_dd _df_to_dd _xf_to_dd _tf_to_dd \
kono
parents: 67
diff changeset
678 _dd_to_sd _dd_to_td _unord_dd _conv_dd
kono
parents: 67
diff changeset
679
kono
parents: 67
diff changeset
680 D128PBIT_FUNCS = _addsub_td _div_td _mul_td _plus_td _minus_td \
kono
parents: 67
diff changeset
681 _eq_td _ne_td _lt_td _gt_td _le_td _ge_td \
kono
parents: 67
diff changeset
682 _td_to_si _td_to_di _td_to_usi _td_to_udi \
kono
parents: 67
diff changeset
683 _si_to_td _di_to_td _usi_to_td _udi_to_td \
kono
parents: 67
diff changeset
684 _td_to_sf _td_to_df _td_to_xf _td_to_tf \
kono
parents: 67
diff changeset
685 _sf_to_td _df_to_td _xf_to_td _tf_to_td \
kono
parents: 67
diff changeset
686 _td_to_sd _td_to_dd _unord_td _conv_td
kono
parents: 67
diff changeset
687
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
688 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
689 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
690 D32PBIT_FUNCS:=$(filter-out _plus_sd _minus_sd _conv_sd, $(D32PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
691 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
692
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
693 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
694 D64PBIT_FUNCS:=$(filter-out _plus_dd _minus_dd _conv_dd, $(D64PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
695 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
696
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
697 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
698 D128PBIT_FUNCS:=$(filter-out _plus_td _minus_td _conv_td, $(D128PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
699 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
700 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
701
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
702 ifneq ($(D32PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
703 d32pbit-o = $(patsubst %,%$(objext),$(D32PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
704 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
705 $(d32pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
706 else
111
kono
parents: 67
diff changeset
707 $(d32pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
708 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
709 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=32 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
710 libgcc-objects += $(d32pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
711 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
712
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
713 ifneq ($(D64PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
714 d64pbit-o = $(patsubst %,%$(objext),$(D64PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
715 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
716 $(d64pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
717 else
111
kono
parents: 67
diff changeset
718 $(d64pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
719 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
720 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=64 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
721 libgcc-objects += $(d64pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
722 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
723
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
724 ifneq ($(D128PBIT),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
725 d128pbit-o = $(patsubst %,%$(objext),$(D128PBIT_FUNCS))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
726 ifeq ($(enable_decimal_float),bid)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
727 $(d128pbit-o): %$(objext): $(srcdir)/config/libbid/%.c
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
728 else
111
kono
parents: 67
diff changeset
729 $(d128pbit-o): %$(objext): $(srcdir)/dfp-bit.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
730 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
731 $(gcc_compile) -DFINE_GRAINED_LIBRARIES -DL$* -DWIDTH=128 -c $<
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
732 libgcc-objects += $(d128pbit-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
733 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
734
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
735 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
736
111
kono
parents: 67
diff changeset
737 ifeq ($(SYNC),yes)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
738 libgcc-sync-size-funcs := $(foreach op, add sub or and xor nand, \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
739 sync_fetch_and_$(op) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
740 sync_$(op)_and_fetch) \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
741 sync_bool_compare_and_swap \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
742 sync_val_compare_and_swap \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
743 sync_lock_test_and_set
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
744
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
745 libgcc-sync-size-funcs := $(foreach prefix, $(libgcc-sync-size-funcs), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
746 $(foreach suffix, 1 2 4 8 16, \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
747 $(prefix)_$(suffix)))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
748
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
749 libgcc-sync-size-funcs-o = $(patsubst %,%$(objext),$(libgcc-sync-size-funcs))
111
kono
parents: 67
diff changeset
750 $(libgcc-sync-size-funcs-o): %$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
751 $(gcc_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
752 -DFN=`echo "$*" | sed 's/_[^_]*$$//'` \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
753 -DSIZE=`echo "$*" | sed 's/.*_//'` \
111
kono
parents: 67
diff changeset
754 -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
755 libgcc-objects += $(libgcc-sync-size-funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
756
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
757 libgcc-sync-funcs := sync_synchronize
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
758
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
759 libgcc-sync-funcs-o = $(patsubst %,%$(objext),$(libgcc-sync-funcs))
111
kono
parents: 67
diff changeset
760 $(libgcc-sync-funcs-o): %$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
761 $(gcc_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
762 -DL$* \
111
kono
parents: 67
diff changeset
763 -c $< $(vis_hide)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
764 libgcc-objects += $(libgcc-sync-funcs-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
765
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
766 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
767 libgcc-sync-size-funcs-s-o = $(patsubst %,%_s$(objext), \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
768 $(libgcc-sync-size-funcs))
111
kono
parents: 67
diff changeset
769 $(libgcc-sync-size-funcs-s-o): %_s$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
770 $(gcc_s_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
771 -DFN=`echo "$*" | sed 's/_[^_]*$$//'` \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
772 -DSIZE=`echo "$*" | sed 's/.*_//'` \
111
kono
parents: 67
diff changeset
773 -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
774 libgcc-s-objects += $(libgcc-sync-size-funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
775
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
776 libgcc-sync-funcs-s-o = $(patsubst %,%_s$(objext),$(libgcc-sync-funcs))
111
kono
parents: 67
diff changeset
777 $(libgcc-sync-funcs-s-o): %_s$(objext): $(srcdir)/sync.c
kono
parents: 67
diff changeset
778 $(gcc_s_compile) $(SYNC_CFLAGS) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
779 -DL$* \
111
kono
parents: 67
diff changeset
780 -c $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
781 libgcc-s-objects += $(libgcc-sync-funcs-s-o)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
782 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
783 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
784
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
785 # Build fixed-point support.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
786 ifeq ($(fixed_point),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
787
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
788 # Generate permutations of function name and mode
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
789 fixed-labels := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
790 fixed-funcs := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
791 fixed-modes := $(shell $(SHELL) $(srcdir)/gen-fixed.sh arith modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
792
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
793 # Generate the rules for each arithmetic function
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
794 iter-items := $(fixed-funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
795 iter-labels := $(fixed-labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
796 iter-from := $(fixed-modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
797 iter-to := $(fixed-modes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
798 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
799
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
800 # Add arithmetic functions to list of objects to be built
111
kono
parents: 67
diff changeset
801 libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
802 ifeq ($(enable_shared),yes)
111
kono
parents: 67
diff changeset
803 libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
804 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
805
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
806 # Convert from or to fractional
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
807 fixed-conv-funcs := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
808 fixed-conv-labels := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
809 fixed-conv-from := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv from)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
810 fixed-conv-to := $(shell $(SHELL) $(srcdir)/gen-fixed.sh conv to)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
811
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
812 # Generate the make rules for each conversion function
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
813 iter-items := $(fixed-conv-funcs)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
814 iter-labels := $(fixed-conv-labels)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
815 iter-from := $(fixed-conv-from)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
816 iter-to := $(fixed-conv-to)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
817 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
818
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
819 # Add conversion functions to list of objects to be built
111
kono
parents: 67
diff changeset
820 libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
821 ifeq ($(enable_shared),yes)
111
kono
parents: 67
diff changeset
822 libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
823 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
824
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
825 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
826
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
827 # Build LIB2ADD and LIB2ADD_ST.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
828 ifneq ($(filter-out %.c %.S %.asm,$(LIB2ADD) $(LIB2ADD_ST)),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
829 $(error Unsupported files in LIB2ADD or LIB2ADD_ST.)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
830 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
831
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
832 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
833 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADD_ST))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
834
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
835 c_flags :=
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
836 iter-items := $(LIB2ADD) $(LIB2ADD_ST)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
837 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
838
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
839 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
840 libgcc-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIB2ADD))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
841 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
842
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
843 # Build LIB2ADDEH, LIB2ADDEHSTATIC, and LIB2ADDEHSHARED. If we don't have
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
844 # libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
845 # LIB2ADDEHSHARED matter. (Usually all three are identical.)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
846
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
847 c_flags := -fexceptions
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
848
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
849 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
850
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
851 libgcc-eh-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADDEHSTATIC))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
852 libgcc-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIB2ADDEHSHARED))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
853
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
854 iter-items := $(sort $(LIB2ADDEHSTATIC) $(LIB2ADDEHSHARED))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
855 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
856
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
857 else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
858 # Not shared. LIB2ADDEH are added to libgcc.a.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
859
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
860 libgcc-objects += $(addsuffix $(objext),$(basename $(notdir $(LIB2ADDEH))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
861
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
862 iter-items := $(LIB2ADDEH)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
863 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
864
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
865 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
866
111
kono
parents: 67
diff changeset
867 # Build LIBUNWIND. Use -fno-exceptions so that the unwind library does
kono
parents: 67
diff changeset
868 # not generate calls to __gcc_personality_v0.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
869
111
kono
parents: 67
diff changeset
870 c_flags := -fno-exceptions
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
871
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
872 libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
873
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
874 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
875 libunwind-s-objects += $(addsuffix _s$(objext),$(basename $(notdir $(LIBUNWIND))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
876 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
877
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
878 iter-items := $(LIBUNWIND)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
879 include $(iterator)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
880
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
881 # Build libgcov components.
111
kono
parents: 67
diff changeset
882
kono
parents: 67
diff changeset
883 LIBGCOV_MERGE = _gcov_merge_add _gcov_merge_single \
kono
parents: 67
diff changeset
884 _gcov_merge_ior _gcov_merge_time_profile _gcov_merge_icall_topn
kono
parents: 67
diff changeset
885 LIBGCOV_PROFILER = _gcov_interval_profiler \
kono
parents: 67
diff changeset
886 _gcov_interval_profiler_atomic \
kono
parents: 67
diff changeset
887 _gcov_pow2_profiler \
kono
parents: 67
diff changeset
888 _gcov_pow2_profiler_atomic \
kono
parents: 67
diff changeset
889 _gcov_one_value_profiler \
kono
parents: 67
diff changeset
890 _gcov_one_value_profiler_atomic \
kono
parents: 67
diff changeset
891 _gcov_average_profiler \
kono
parents: 67
diff changeset
892 _gcov_average_profiler_atomic \
kono
parents: 67
diff changeset
893 _gcov_ior_profiler \
kono
parents: 67
diff changeset
894 _gcov_ior_profiler_atomic \
kono
parents: 67
diff changeset
895 _gcov_indirect_call_profiler_v2 \
kono
parents: 67
diff changeset
896 _gcov_time_profiler \
kono
parents: 67
diff changeset
897 _gcov_indirect_call_topn_profiler
kono
parents: 67
diff changeset
898 LIBGCOV_INTERFACE = _gcov_dump _gcov_flush _gcov_fork \
kono
parents: 67
diff changeset
899 _gcov_execl _gcov_execlp \
kono
parents: 67
diff changeset
900 _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset
kono
parents: 67
diff changeset
901 LIBGCOV_DRIVER = _gcov
kono
parents: 67
diff changeset
902
kono
parents: 67
diff changeset
903 libgcov-merge-objects = $(patsubst %,%$(objext),$(LIBGCOV_MERGE))
kono
parents: 67
diff changeset
904 libgcov-profiler-objects = $(patsubst %,%$(objext),$(LIBGCOV_PROFILER))
kono
parents: 67
diff changeset
905 libgcov-interface-objects = $(patsubst %,%$(objext),$(LIBGCOV_INTERFACE))
kono
parents: 67
diff changeset
906 libgcov-driver-objects = $(patsubst %,%$(objext),$(LIBGCOV_DRIVER))
kono
parents: 67
diff changeset
907 libgcov-objects = $(libgcov-merge-objects) $(libgcov-profiler-objects) \
kono
parents: 67
diff changeset
908 $(libgcov-interface-objects) $(libgcov-driver-objects)
kono
parents: 67
diff changeset
909
kono
parents: 67
diff changeset
910 $(libgcov-merge-objects): %$(objext): $(srcdir)/libgcov-merge.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
911 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-merge.c
kono
parents: 67
diff changeset
912 $(libgcov-profiler-objects): %$(objext): $(srcdir)/libgcov-profiler.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
913 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-profiler.c
kono
parents: 67
diff changeset
914 $(libgcov-interface-objects): %$(objext): $(srcdir)/libgcov-interface.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
915 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-interface.c
kono
parents: 67
diff changeset
916 $(libgcov-driver-objects): %$(objext): $(srcdir)/libgcov-driver.c \
kono
parents: 67
diff changeset
917 $(srcdir)/libgcov-driver-system.c $(srcdir)/gcov.h $(srcdir)/libgcov.h
kono
parents: 67
diff changeset
918 $(gcc_compile) -DL$* -c $(srcdir)/libgcov-driver.c
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
919
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
920
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
921 # Static libraries.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
922 libgcc.a: $(libgcc-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
923 libgcov.a: $(libgcov-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
924 libunwind.a: $(libunwind-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
925 libgcc_eh.a: $(libgcc-eh-objects)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
926
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
927 libgcc.a libgcov.a libunwind.a libgcc_eh.a:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
928 -rm -f $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
929
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
930 objects="$(objects)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
931 if test -z "$$objects"; then \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
932 echo 'int __libgcc_eh_dummy;' > eh_dummy.c; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
933 $(gcc_compile_bare) $(vis_hide) -c eh_dummy.c \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
934 -o eh_dummy$(objext); \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
935 objects=eh_dummy$(objext); \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
936 fi; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
937 $(AR_CREATE_FOR_TARGET) $@ $$objects
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
938
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
939 $(RANLIB) $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
940
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
941 all: libgcc.a libgcov.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
942
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
943 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
944 all: libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
945 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
946
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
947 ifeq ($(enable_shared),yes)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
948 all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
949 ifneq ($(LIBUNWIND),)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
950 all: libunwind$(SHLIB_EXT)
111
kono
parents: 67
diff changeset
951 libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
952 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
953
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
954 # Map-file generation.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
955 ifneq ($(SHLIB_MKMAP),)
111
kono
parents: 67
diff changeset
956 libgcc.map.in: $(SHLIB_MAPFILES)
kono
parents: 67
diff changeset
957 { cat $(SHLIB_MAPFILES) \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
958 | sed -e '/^[ ]*#/d' \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
959 -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
960 | $(gcc_compile_bare) -E -xassembler-with-cpp -; \
111
kono
parents: 67
diff changeset
961 } > tmp-$@
kono
parents: 67
diff changeset
962 mv tmp-$@ $@
kono
parents: 67
diff changeset
963 libgcc.map: $(SHLIB_MKMAP) libgcc.map.in $(libgcc-s-objects)
kono
parents: 67
diff changeset
964 { $(NM) $(SHLIB_NM_FLAGS) $(libgcc-s-objects); echo %%; \
kono
parents: 67
diff changeset
965 cat libgcc.map.in; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
966 } | $(AWK) -f $(SHLIB_MKMAP) $(SHLIB_MKMAP_OPTS) > tmp-$@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
967 mv tmp-$@ $@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
968 libgcc_s$(SHLIB_EXT): libgcc.map
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
969 mapfile = libgcc.map
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
970 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
971
111
kono
parents: 67
diff changeset
972 libgcc-std.ver: $(srcdir)/libgcc-std.ver.in
kono
parents: 67
diff changeset
973 sed -e 's/__PFX__/$(LIBGCC_VER_GNU_PREFIX)/g' \
kono
parents: 67
diff changeset
974 -e 's/__FIXPTPFX__/$(LIBGCC_VER_FIXEDPOINT_GNU_PREFIX)/g' < $< > $@
kono
parents: 67
diff changeset
975
kono
parents: 67
diff changeset
976 libgcc_s$(SHLIB_EXT): $(libgcc-s-objects) $(extra-parts) libgcc.a
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
977 # @multilib_flags@ is still needed because this may use
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
978 # $(GCC_FOR_TARGET) and $(LIBGCC2_CFLAGS) directly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
979 # @multilib_dir@ is not really necessary, but sometimes it has
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
980 # more uses than just a directory name.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
981 $(mkinstalldirs) $(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
982 $(subst @multilib_flags@,$(CFLAGS) -B./,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
983 @multilib_dir@,$(MULTIDIR),$(subst \
111
kono
parents: 67
diff changeset
984 @shlib_objs@,$(objects) libgcc.a,$(subst \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
985 @shlib_base_name@,libgcc_s,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
986 @shlib_map_file@,$(mapfile),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
987 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
988 @shlib_slibdir@,$(shlib_slibdir),$(SHLIB_LINK))))))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
989
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
990 libunwind$(SHLIB_EXT): $(libunwind-s-objects) $(extra-parts)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
991 # @multilib_flags@ is still needed because this may use
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
992 # $(GCC_FOR_TARGET) and $(LIBGCC2_CFLAGS) directly.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
993 # @multilib_dir@ is not really necessary, but sometimes it has
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
994 # more uses than just a directory name.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
995 $(mkinstalldirs) $(MULTIDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
996 $(subst @multilib_flags@,$(CFLAGS) -B./,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
997 @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
998 @shlib_objs@,$(objects),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
999 @shlib_base_name@,libunwind,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1000 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIBUNWIND_LINK))))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1001
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1002 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1003
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1004 # Build the standard GCC startfiles and endfiles.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1005 ALL_CRT_CFLAGS = $(CFLAGS) $(CRTSTUFF_CFLAGS) $(INCLUDES)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1006 crt_compile = $(CC) $(ALL_CRT_CFLAGS) -o $@ $(compile_deps)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1007
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1008 ifeq ($(CUSTOM_CRTSTUFF),)
111
kono
parents: 67
diff changeset
1009 # Compile two additional files that are linked with every program
kono
parents: 67
diff changeset
1010 # linked using GCC on systems using COFF or ELF, for the sake of C++
kono
parents: 67
diff changeset
1011 # constructors.
kono
parents: 67
diff changeset
1012 crtbegin$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1013 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1014
111
kono
parents: 67
diff changeset
1015 crtend$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1016 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_END
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1017
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1018 # These are versions of crtbegin and crtend for shared libraries.
111
kono
parents: 67
diff changeset
1019 crtbeginS$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1020 $(crt_compile) $(CRTSTUFF_T_CFLAGS_S) -c $< -DCRT_BEGIN -DCRTSTUFFS_O
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1021
111
kono
parents: 67
diff changeset
1022 crtendS$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1023 $(crt_compile) $(CRTSTUFF_T_CFLAGS_S) -c $< -DCRT_END -DCRTSTUFFS_O
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1024
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1025 # This is a version of crtbegin for -static links.
111
kono
parents: 67
diff changeset
1026 crtbeginT$(objext): $(srcdir)/crtstuff.c
kono
parents: 67
diff changeset
1027 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN -DCRTSTUFFT_O
kono
parents: 67
diff changeset
1028
kono
parents: 67
diff changeset
1029 # crtoffloadbegin and crtoffloadend contain symbols, that mark the begin and
kono
parents: 67
diff changeset
1030 # the end of tables with addresses, required for offloading. crtoffloadtable
kono
parents: 67
diff changeset
1031 # contains the array with addresses of those symbols.
kono
parents: 67
diff changeset
1032 crtoffloadbegin$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1033 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_BEGIN
kono
parents: 67
diff changeset
1034
kono
parents: 67
diff changeset
1035 crtoffloadend$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1036 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_END
kono
parents: 67
diff changeset
1037
kono
parents: 67
diff changeset
1038 crtoffloadtable$(objext): $(srcdir)/offloadstuff.c
kono
parents: 67
diff changeset
1039 $(crt_compile) $(CRTSTUFF_T_CFLAGS) -c $< -DCRT_TABLE
kono
parents: 67
diff changeset
1040 endif
kono
parents: 67
diff changeset
1041
kono
parents: 67
diff changeset
1042 ifeq ($(enable_vtable_verify),yes)
kono
parents: 67
diff changeset
1043 # These are used in vtable verification; see comments in source files for
kono
parents: 67
diff changeset
1044 # more details.
kono
parents: 67
diff changeset
1045
kono
parents: 67
diff changeset
1046 # Override -finhibit-size-directive to avoid mismatch between libgcc and libvtv
kono
parents: 67
diff changeset
1047 # compilations.
kono
parents: 67
diff changeset
1048 VTV_CFLAGS = $(CRTSTUFF_T_CFLAGS_S) -fno-inhibit-size-directive
kono
parents: 67
diff changeset
1049
kono
parents: 67
diff changeset
1050 vtv_start$(objext): $(srcdir)/vtv_start.c
kono
parents: 67
diff changeset
1051 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_start.c
kono
parents: 67
diff changeset
1052
kono
parents: 67
diff changeset
1053 vtv_end$(objext): $(srcdir)/vtv_end.c
kono
parents: 67
diff changeset
1054 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_end.c
kono
parents: 67
diff changeset
1055
kono
parents: 67
diff changeset
1056 vtv_start_preinit$(objext): $(srcdir)/vtv_start_preinit.c
kono
parents: 67
diff changeset
1057 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_start_preinit.c
kono
parents: 67
diff changeset
1058
kono
parents: 67
diff changeset
1059 vtv_end_preinit$(objext): $(srcdir)/vtv_end_preinit.c
kono
parents: 67
diff changeset
1060 $(crt_compile) $(VTV_CFLAGS) -c $(srcdir)/vtv_end_preinit.c
kono
parents: 67
diff changeset
1061 endif
kono
parents: 67
diff changeset
1062
kono
parents: 67
diff changeset
1063 ifeq ($(CUSTOM_CRTIN),)
kono
parents: 67
diff changeset
1064 # -x assembler-with-cpp is only needed on case-insensitive filesystem.
kono
parents: 67
diff changeset
1065 crti$(objext): $(srcdir)/config/$(cpu_type)/crti.S
kono
parents: 67
diff changeset
1066 $(crt_compile) -c -x assembler-with-cpp $<
kono
parents: 67
diff changeset
1067
kono
parents: 67
diff changeset
1068 crtn$(objext): $(srcdir)/config/$(cpu_type)/crtn.S
kono
parents: 67
diff changeset
1069 $(crt_compile) -c -x assembler-with-cpp $<
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1070 endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1071
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1072 # Build extra startfiles in the libgcc directory.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1073 .PHONY: libgcc-extra-parts
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1074 libgcc-extra-parts: $(EXTRA_PARTS)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1075
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1076 # Early copyback; see "all" above for the rationale. The
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1077 # early copy is necessary so that the gcc -B options find
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1078 # the right startup files when linking shared libgcc.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1079 $(mkinstalldirs) $(gcc_objdir)$(MULTISUBDIR)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1080 parts="$(EXTRA_PARTS)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1081 for file in $$parts; do \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1082 rm -f $(gcc_objdir)$(MULTISUBDIR)/$$file; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1083 $(INSTALL_DATA) $$file $(gcc_objdir)$(MULTISUBDIR)/; \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1084 case $$file in \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1085 *.a) \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1086 $(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1087 esac; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1088 done
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1089
111
kono
parents: 67
diff changeset
1090 all: $(extra-parts)
kono
parents: 67
diff changeset
1091
kono
parents: 67
diff changeset
1092 $(libgcc-objects) $(libgcc-s-objects) $(libgcc-eh-objects) \
kono
parents: 67
diff changeset
1093 $(libgcov-objects) \
kono
parents: 67
diff changeset
1094 $(libunwind-objects) $(libunwind-s-objects) \
kono
parents: 67
diff changeset
1095 $(EXTRA_PARTS): $(LIBGCC_LINKS) libgcc_tm.h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1096
111
kono
parents: 67
diff changeset
1097 # Copy unwind.h to the place where gcc will look for it at build-time
kono
parents: 67
diff changeset
1098 install-unwind_h-forbuild: unwind.h
kono
parents: 67
diff changeset
1099 dest=$(gcc_objdir)/include/tmp$$$$-unwind.h; \
kono
parents: 67
diff changeset
1100 cp unwind.h $$dest; \
kono
parents: 67
diff changeset
1101 chmod a+r $$dest; \
kono
parents: 67
diff changeset
1102 sh $(srcdir)/../move-if-change $$dest $(gcc_objdir)/include/unwind.h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1103
111
kono
parents: 67
diff changeset
1104 # Copy unwind.h to the place where gcc will look at run-time, once installed
kono
parents: 67
diff changeset
1105 #
kono
parents: 67
diff changeset
1106 # This is redundant with the internal copy above when using a regular toplevel
kono
parents: 67
diff changeset
1107 # "install" target, because gcc's install will copy to the destination as well.
kono
parents: 67
diff changeset
1108 #
kono
parents: 67
diff changeset
1109 # This is however useful for "install-no-fixincludes" case, when only the gcc
kono
parents: 67
diff changeset
1110 # internal headers are copied by gcc's install.
kono
parents: 67
diff changeset
1111 install-unwind_h:
kono
parents: 67
diff changeset
1112 $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
kono
parents: 67
diff changeset
1113 $(INSTALL_DATA) unwind.h $(DESTDIR)$(libsubdir)/include
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1114
111
kono
parents: 67
diff changeset
1115 all: install-unwind_h-forbuild
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1116
111
kono
parents: 67
diff changeset
1117 install-gcov_h:
kono
parents: 67
diff changeset
1118 $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
kono
parents: 67
diff changeset
1119 $(INSTALL_DATA) $(srcdir)/gcov.h $(DESTDIR)$(libsubdir)/include
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1120
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1121 # Documentation targets (empty).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1122 .PHONY: info html dvi pdf install-info install-html install-pdf
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1123
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1124 info:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1125 install-info:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1126 html:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1127 install-html:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1128 dvi:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1129 pdf:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1130 install-pdf:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1131
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1132 # Install rules. These do not depend on "all", so that they can be invoked
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1133 # recursively from it.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1134 install-libunwind:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1135 $(mkinstalldirs) $(DESTDIR)$(inst_slibdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1136
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1137 # NOTE: Maybe this should go into $(inst_libdir), but this
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1138 # is where the old mklibgcc.in put it.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1139 $(INSTALL_DATA) libunwind.a $(DESTDIR)$(inst_slibdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1140 chmod 644 $(DESTDIR)$(inst_slibdir)/libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1141 $(RANLIB) $(DESTDIR)$(inst_slibdir)/libunwind.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1142
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1143 $(subst @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1144 @shlib_base_name@,libunwind,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1145 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIBUNWIND_INSTALL))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1146
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1147 install-shared:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1148 $(mkinstalldirs) $(DESTDIR)$(inst_libdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1149
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1150 $(INSTALL_DATA) libgcc_eh.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1151 chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1152 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1153
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1154 $(subst @multilib_dir@,$(MULTIDIR),$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1155 @shlib_base_name@,libgcc_s,$(subst \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1156 @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1157
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1158 install-leaf: $(install-shared) $(install-libunwind)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1159 $(mkinstalldirs) $(DESTDIR)$(inst_libdir)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1160
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1161 $(INSTALL_DATA) libgcc.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1162 chmod 644 $(DESTDIR)$(inst_libdir)/libgcc.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1163 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1164 $(INSTALL_DATA) libgcov.a $(DESTDIR)$(inst_libdir)/
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1165 chmod 644 $(DESTDIR)$(inst_libdir)/libgcov.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1166 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1167
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1168 parts="$(INSTALL_PARTS)"; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1169 for file in $$parts; do \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1170 rm -f $(DESTDIR)$(inst_libdir)/$$file; \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1171 $(INSTALL_DATA) $$file $(DESTDIR)$(inst_libdir)/; \
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1172 case $$file in \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1173 *.a) \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1174 $(RANLIB) $(gcc_objdir)$(MULTISUBDIR)/$$file ;; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1175 esac; \
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1176 done
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1177
111
kono
parents: 67
diff changeset
1178 install: install-leaf install-unwind_h install-gcov_h
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
1179 @: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1180
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1181 install-strip: install
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1182
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
1183 .PHONY: install install-shared install-libunwind install-strip
111
kono
parents: 67
diff changeset
1184 .PHONY: install-unwind_h install-unwind_h-forbuild
kono
parents: 67
diff changeset
1185 .PHONY: install-gcov_h
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1186
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1187 # Don't export variables to the environment, in order to not confuse
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1188 # configure.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1189 .NOEXPORT:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1190
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1191 include $(srcdir)/empty.mk $(wildcard *.dep)