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