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