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