]>
Commit | Line | Data |
---|---|---|
8fdb0857 BE |
1 | # @configure_input@ |
2 | # Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in | |
3 | ||
99dee823 | 4 | # Copyright (C) 2005-2021 Free Software Foundation, Inc. |
8fdb0857 BE |
5 | |
6 | #This file is part of GCC. | |
7 | ||
c0173136 | 8 | #GCC is free software; you can redistribute it and/or modify |
8fdb0857 | 9 | #it under the terms of the GNU General Public License as published by |
748086b7 | 10 | #the Free Software Foundation; either version 3, or (at your option) |
8fdb0857 BE |
11 | #any later version. |
12 | ||
c0173136 | 13 | #GCC is distributed in the hope that it will be useful, |
8fdb0857 BE |
14 | #but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | #GNU General Public License for more details. | |
17 | ||
18 | #You should have received a copy of the GNU General Public License | |
748086b7 JJ |
19 | #along with GCC; see the file COPYING3. If not see |
20 | #<http://www.gnu.org/licenses/>. | |
8fdb0857 BE |
21 | |
22 | @SET_MAKE@ | |
23 | ||
24 | srcdir = @srcdir@ | |
25 | top_builddir = . | |
26 | VPATH = @srcdir@ | |
27 | INSTALL = @INSTALL@ | |
731c4ce0 | 28 | AR = @AR@ |
8fdb0857 BE |
29 | ARFLAGS = cru |
30 | ACLOCAL = @ACLOCAL@ | |
31 | AUTOCONF = @AUTOCONF@ | |
32 | AUTOHEADER = @AUTOHEADER@ | |
33 | CC = @CC@ | |
8a1f09e4 | 34 | CFLAGS = @CFLAGS@ |
8fdb0857 BE |
35 | WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@ |
36 | CPP = @CPP@ | |
8a1f09e4 | 37 | CPPFLAGS = @CPPFLAGS@ |
8fdb0857 BE |
38 | INSTALL_DATA = @INSTALL_DATA@ |
39 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
8a1f09e4 | 40 | LDFLAGS = @LDFLAGS@ |
8fdb0857 BE |
41 | LIBICONV = @LIBICONV@ |
42 | PACKAGE = @PACKAGE@ | |
459260ec | 43 | PICFLAG = @PICFLAG@ |
b3d16040 | 44 | CET_HOST_FLAGS = @CET_HOST_FLAGS@ |
8fdb0857 BE |
45 | RANLIB = @RANLIB@ |
46 | SHELL = @SHELL@ | |
526be3c0 | 47 | objext = @OBJEXT@ |
8a1f09e4 | 48 | NOLTO_FLAGS = @nolto_flags@ |
8fdb0857 | 49 | |
2d09b640 | 50 | datarootdir = @datarootdir@ |
8fdb0857 BE |
51 | datadir = @datadir@ |
52 | exec_prefix = @prefix@ | |
53 | libdir = @libdir@ | |
54 | localedir = $(datadir)/locale | |
55 | prefix = @prefix@ | |
56 | ||
b1237e13 TJB |
57 | ADDITIONAL_OBJS = @ADDITIONAL_OBJS@ |
58 | ||
79b87c74 MM |
59 | enable_decimal_float= @enable_decimal_float@ |
60 | ||
8fdb0857 BE |
61 | INCLUDES = -I$(srcdir) -I. |
62 | ||
8a1f09e4 | 63 | ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(NOLTO_FLAGS) $(INCLUDES) $(CPPFLAGS) \ |
b3d16040 | 64 | $(PICFLAG) $(CET_HOST_FLAGS) |
8fdb0857 | 65 | |
526be3c0 TG |
66 | bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \ |
67 | host-ieee64.$(objext) host-ieee128.$(objext) | |
8fdb0857 | 68 | |
526be3c0 TG |
69 | libdecnumber_a_OBJS = decNumber.$(objext) decContext.$(objext) \ |
70 | decimal32.$(objext) decimal64.$(objext) decimal128.$(objext) \ | |
71 | $(ADDITIONAL_OBJS) | |
79b87c74 | 72 | |
8fdb0857 | 73 | libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \ |
108ada44 | 74 | decNumber.c decNumber.h decNumberLocal.h \ |
346b24c0 JJ |
75 | decContextSymbols.h decDPDSymbols.h decNumberSymbols.h \ |
76 | dpd/decimal128.c dpd/decimal128.h dpd/decimal128Symbols.h \ | |
77 | dpd/decimal32.c dpd/decimal32.h dpd/decimal32Symbols.h \ | |
78 | dpd/decimal64.c dpd/decimal64.h dpd/decimal64Symbols.h \ | |
79b87c74 MM |
79 | bid/decimal128.c bid/decimal128.h \ |
80 | bid/decimal32.c bid/decimal32.h \ | |
81 | bid/decimal64.c bid/decimal64.h | |
8fdb0857 BE |
82 | |
83 | all: libdecnumber.a | |
84 | ||
85 | .SUFFIXES: | |
86 | .SUFFIXES: .c .o .obj | |
87 | ||
88 | libdecnumber.a: $(libdecnumber_a_OBJS) | |
89 | -rm -f $@ | |
90 | $(AR) $(ARFLAGS) $@ $(libdecnumber_a_OBJS) | |
91 | $(RANLIB) $@ | |
92 | ||
93 | # Rules to rebuild the configuration | |
94 | ||
95 | Makefile: $(srcdir)/Makefile.in config.status | |
96 | $(SHELL) ./config.status Makefile | |
97 | ||
98 | config.status: $(srcdir)/configure | |
99 | $(SHELL) ./config.status --recheck | |
100 | ||
101 | $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 | |
102 | cd $(srcdir) && $(AUTOCONF) | |
103 | ||
6efbd53f RW |
104 | aclocal_deps = \ |
105 | $(srcdir)/../config/stdint.m4 \ | |
106 | $(srcdir)/../config/warnings.m4 \ | |
107 | $(srcdir)/../config/override.m4 \ | |
3c39bca6 | 108 | $(srcdir)/../config/dfp.m4 \ |
8fdb0857 | 109 | $(srcdir)/configure.ac |
6efbd53f RW |
110 | |
111 | $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) | |
8fdb0857 BE |
112 | cd $(srcdir) && $(ACLOCAL) -I ../config |
113 | ||
114 | config.h: stamp-h1 | |
115 | test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1) | |
116 | ||
117 | stamp-h1: $(srcdir)/config.in config.status | |
118 | -rm -f stamp-h1 | |
119 | $(SHELL) ./config.status config.h | |
120 | ||
121 | $(srcdir)/config.in: @MAINT@ $(srcdir)/configure | |
122 | cd $(srcdir) && $(AUTOHEADER) | |
123 | -rm -f stamp-h1 | |
124 | ||
125 | # Dependencies. | |
126 | ||
526be3c0 | 127 | decContext.$(objext): decContext.c decContext.h decNumberLocal.h \ |
2533577f | 128 | decContextSymbols.h |
526be3c0 | 129 | decNumber.$(objext): decNumber.c decNumber.h decContext.h decNumberLocal.h \ |
2533577f | 130 | decNumberSymbols.h |
526be3c0 | 131 | decimal32.$(objext): $(srcdir)/$(enable_decimal_float)/decimal32.c \ |
e072c217 TJB |
132 | $(srcdir)/$(enable_decimal_float)/decimal32.h \ |
133 | $(srcdir)/$(enable_decimal_float)/decimal32Symbols.h \ | |
2533577f | 134 | decNumber.h decContext.h decNumberLocal.h |
e072c217 | 135 | $(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal32.c |
526be3c0 | 136 | decimal64.$(objext): $(srcdir)/$(enable_decimal_float)/decimal64.c \ |
e072c217 TJB |
137 | $(srcdir)/$(enable_decimal_float)/decimal64.h \ |
138 | $(srcdir)/$(enable_decimal_float)/decimal64Symbols.h \ | |
2533577f | 139 | decNumber.h decContext.h decNumberLocal.h |
e072c217 | 140 | $(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal64.c |
526be3c0 | 141 | decimal128.$(objext): $(srcdir)/$(enable_decimal_float)/decimal128.c \ |
e072c217 TJB |
142 | $(srcdir)/$(enable_decimal_float)/decimal128.h \ |
143 | $(srcdir)/$(enable_decimal_float)/decimal128Symbols.h\ | |
144 | $(srcdir)/$(enable_decimal_float)/decimal128Local.h\ | |
2533577f | 145 | decNumber.h decContext.h decNumberLocal.h |
e072c217 | 146 | $(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal128.c |
526be3c0 | 147 | bid2dpd_dpd2bid.$(objext) : $(srcdir)/bid/bid2dpd_dpd2bid.c $(srcdir)/bid/bid2dpd_dpd2bid.h |
e072c217 | 148 | $(COMPILE) $(srcdir)/bid/bid2dpd_dpd2bid.c |
526be3c0 | 149 | host-ieee32.$(objext) : $(srcdir)/bid/host-ieee32.c $(srcdir)/bid/decimal32.h |
e072c217 | 150 | $(COMPILE) $(srcdir)/bid/host-ieee32.c |
526be3c0 | 151 | host-ieee64.$(objext) : $(srcdir)/bid/host-ieee64.c $(srcdir)/bid/decimal64.h |
e072c217 | 152 | $(COMPILE) $(srcdir)/bid/host-ieee64.c |
526be3c0 | 153 | host-ieee128.$(objext) : $(srcdir)/bid/host-ieee128.c $(srcdir)/bid/decimal128.h |
e072c217 | 154 | $(COMPILE) $(srcdir)/bid/host-ieee128.c |
8fdb0857 BE |
155 | # Other miscellaneous targets. |
156 | ||
157 | mostlyclean: | |
526be3c0 | 158 | -rm -f *.$(objext) |
8fdb0857 BE |
159 | |
160 | clean: mostlyclean | |
f76f0edd | 161 | -rm -rf libdecnumber.a $(srcdir)/autom4te.cache |
8fdb0857 BE |
162 | |
163 | distclean: clean | |
164 | -rm -f config.h stamp-h1 config.status config.cache config.log \ | |
165 | configure.lineno configure.status.lineno Makefile localedir.h \ | |
57b256d9 | 166 | localedir.hs gstdint.h |
8fdb0857 BE |
167 | |
168 | maintainer-clean: distclean | |
169 | @echo "This command is intended for maintainers to use" | |
170 | @echo "it deletes files that may require special tools to rebuild." | |
171 | -rm -f $(srcdir)/configure $(srcdir)/aclocal.m4 | |
172 | ||
173 | check: | |
174 | installcheck: | |
175 | dvi: | |
b5422ad7 | 176 | pdf: |
8fdb0857 BE |
177 | html: |
178 | info: | |
179 | install-info: | |
49c683a5 | 180 | install-pdf: |
8fdb0857 | 181 | install-man: |
01d84fc0 | 182 | install-html: |
8fdb0857 BE |
183 | install: |
184 | ||
185 | .PHONY: installdirs install install-strip mostlyclean clean distclean \ | |
b5422ad7 | 186 | maintainer-clean check installcheck dvi pdf html info install-info \ |
49c683a5 | 187 | install-pdf install-man update-po install-html |
8fdb0857 BE |
188 | |
189 | COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c | |
190 | ||
191 | # Implicit rules | |
192 | ||
526be3c0 | 193 | .c.$(objext): |
8fdb0857 BE |
194 | $(COMPILE) $< |
195 | ||
196 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
197 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
198 | .NOEXPORT: |