]> git.ipfire.org Git - thirdparty/gcc.git/blob - libdecnumber/Makefile.in
Add BID decimal support
[thirdparty/gcc.git] / libdecnumber / Makefile.in
1 # @configure_input@
2 # Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in
3
4 # Copyright (C) 2005, 2007 Free Software Foundation, Inc.
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
10 #the Free Software Foundation; either version 2, or (at your option)
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
19 #along with GCC; see the file COPYING. If not, write to
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
53 enable_decimal_float= @enable_decimal_float@
54
55 INCLUDES = -I$(srcdir) -I.
56
57 ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS)
58
59 libdecnumber_a_OBJS = decNumber.o decContext.o decUtility.o \
60 decimal32.o decimal64.o decimal128.o
61
62 ifeq ($(enable_decimal_float),bid)
63 libdecnumber_a_OBJS+=bid2dpd_dpd2bid.o host-ieee32.o host-ieee64.o \
64 host-ieee128.o
65 endif
66
67 libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \
68 decNumber.c decNumber.h decNumberLocal.h \
69 decUtility.c decUtility.h \
70 dpd/decimal128.c dpd/decimal128.h \
71 dpd/decimal32.c dpd/decimal32.h \
72 dpd/decimal64.c dpd/decimal64.h \
73 bid/decimal128.c bid/decimal128.h \
74 bid/decimal32.c bid/decimal32.h \
75 bid/decimal64.c bid/decimal64.h
76
77 all: libdecnumber.a
78
79 .SUFFIXES:
80 .SUFFIXES: .c .o .obj
81
82 libdecnumber.a: $(libdecnumber_a_OBJS)
83 -rm -f $@
84 $(AR) $(ARFLAGS) $@ $(libdecnumber_a_OBJS)
85 $(RANLIB) $@
86
87 # Rules to rebuild the configuration
88
89 Makefile: $(srcdir)/Makefile.in config.status
90 $(SHELL) ./config.status Makefile
91
92 config.status: $(srcdir)/configure
93 $(SHELL) ./config.status --recheck
94
95 $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4
96 cd $(srcdir) && $(AUTOCONF)
97
98 $(srcdir)/aclocal.m4: @MAINT@ $(srcdir)/../config/acx.m4 \
99 $(srcdir)/../config/warnings.m4 \
100 $(srcdir)/configure.ac
101 cd $(srcdir) && $(ACLOCAL) -I ../config
102
103 config.h: stamp-h1
104 test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
105
106 stamp-h1: $(srcdir)/config.in config.status
107 -rm -f stamp-h1
108 $(SHELL) ./config.status config.h
109
110 $(srcdir)/config.in: @MAINT@ $(srcdir)/configure
111 cd $(srcdir) && $(AUTOHEADER)
112 -rm -f stamp-h1
113
114 # Dependencies.
115
116 decContext.o: decContext.c decContext.h decNumberLocal.h
117 decNumber.o: decNumber.c decNumber.h decContext.h decNumberLocal.h
118 decimal32.o: $(enable_decimal_float)/decimal32.c \
119 $(enable_decimal_float)/decimal32.h \
120 decNumber.h decContext.h decNumberLocal.h decUtility.h
121 $(COMPILE) $<
122 decimal64.o: $(enable_decimal_float)/decimal64.c \
123 $(enable_decimal_float)/decimal64.h \
124 decNumber.h decContext.h decNumberLocal.h decUtility.h
125 $(COMPILE) $<
126 decimal128.o: $(enable_decimal_float)/decimal128.c \
127 $(enable_decimal_float)/decimal128.h \
128 decNumber.h decContext.h decNumberLocal.h decUtility.h
129 $(COMPILE) $<
130 bid2dpd_dpd2bid.o : bid/bid2dpd_dpd2bid.c bid/bid2dpd_dpd2bid.h
131 $(COMPILE) $<
132 host-ieee32.o : bid/host-ieee32.c bid/decimal32.h
133 $(COMPILE) $<
134 host-ieee64.o : bid/host-ieee64.c bid/decimal64.h
135 $(COMPILE) $<
136 host-ieee128.o : bid/host-ieee128.c bid/decimal128.h
137 $(COMPILE) $<
138 # Other miscellaneous targets.
139
140 mostlyclean:
141 -rm -f *.o
142
143 clean: mostlyclean
144 -rm -rf makedepend$(EXEEXT) libdecnumber.a $(srcdir)/autom4te.cache
145
146 distclean: clean
147 -rm -f config.h stamp-h1 config.status config.cache config.log \
148 configure.lineno configure.status.lineno Makefile localedir.h \
149 localedir.hs
150
151 maintainer-clean: distclean
152 @echo "This command is intended for maintainers to use"
153 @echo "it deletes files that may require special tools to rebuild."
154 -rm -f $(srcdir)/configure $(srcdir)/aclocal.m4
155
156 check:
157 installcheck:
158 dvi:
159 pdf:
160 html:
161 info:
162 install-info:
163 install-pdf:
164 install-man:
165 install-html:
166 install:
167
168 .PHONY: installdirs install install-strip mostlyclean clean distclean \
169 maintainer-clean check installcheck dvi pdf html info install-info \
170 install-pdf install-man update-po install-html
171
172 COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
173
174 # Implicit rules
175
176 .c.o:
177 $(COMPILE) $<
178
179 # Tell versions [3.59,3.63) of GNU make to not export all variables.
180 # Otherwise a system limit (for SysV at least) may be exceeded.
181 .NOEXPORT: