1# @configure_input@
2# Makefile for libdecnumber.  Run 'configure' to generate Makefile from Makefile.in
3
4# Copyright (C) 2005-2013 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 3, 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 COPYING3.  If not see
20#<http://www.gnu.org/licenses/>.
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@
45objext = @OBJEXT@
46
47datarootdir = @datarootdir@
48datadir = @datadir@
49exec_prefix = @prefix@
50libdir = @libdir@
51localedir = $(datadir)/locale
52prefix = @prefix@
53
54ADDITIONAL_OBJS = @ADDITIONAL_OBJS@
55
56enable_decimal_float= @enable_decimal_float@
57
58INCLUDES = -I$(srcdir) -I.
59
60ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS)
61
62bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \
63	host-ieee64.$(objext) host-ieee128.$(objext)
64
65libdecnumber_a_OBJS = decNumber.$(objext) decContext.$(objext) \
66	decimal32.$(objext) decimal64.$(objext) decimal128.$(objext) \
67	$(ADDITIONAL_OBJS)
68
69libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \
70	decNumber.c decNumber.h decNumberLocal.h \
71	decContextSymbols.h decDPDSymbols.h decNumberSymbols.h \
72	dpd/decimal128.c dpd/decimal128.h dpd/decimal128Symbols.h \
73	dpd/decimal32.c dpd/decimal32.h dpd/decimal32Symbols.h \
74	dpd/decimal64.c dpd/decimal64.h dpd/decimal64Symbols.h \
75	bid/decimal128.c bid/decimal128.h \
76	bid/decimal32.c bid/decimal32.h \
77	bid/decimal64.c bid/decimal64.h
78
79all: libdecnumber.a
80
81.SUFFIXES:
82.SUFFIXES: .c .o .obj
83
84libdecnumber.a: $(libdecnumber_a_OBJS)
85	-rm -f $@
86	$(AR) $(ARFLAGS) $@ $(libdecnumber_a_OBJS)
87	$(RANLIB) $@
88
89# Rules to rebuild the configuration
90
91Makefile: $(srcdir)/Makefile.in config.status
92	$(SHELL) ./config.status Makefile
93
94config.status: $(srcdir)/configure
95	$(SHELL) ./config.status --recheck
96
97$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4
98	cd $(srcdir) && $(AUTOCONF)
99
100aclocal_deps = \
101	$(srcdir)/../config/stdint.m4 \
102	$(srcdir)/../config/warnings.m4 \
103	$(srcdir)/../config/override.m4 \
104	$(srcdir)/../config/dfp.m4 \
105	$(srcdir)/configure.ac
106
107$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
108	cd $(srcdir) && $(ACLOCAL) -I ../config
109
110config.h: stamp-h1
111	test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
112
113stamp-h1: $(srcdir)/config.in config.status
114	-rm -f stamp-h1
115	$(SHELL) ./config.status config.h
116
117$(srcdir)/config.in: @MAINT@ $(srcdir)/configure
118	cd $(srcdir) && $(AUTOHEADER)
119	-rm -f stamp-h1
120
121# Dependencies.
122
123decContext.$(objext): decContext.c decContext.h decNumberLocal.h \
124	decContextSymbols.h
125decNumber.$(objext):  decNumber.c decNumber.h decContext.h decNumberLocal.h \
126	decNumberSymbols.h
127decimal32.$(objext):  $(srcdir)/$(enable_decimal_float)/decimal32.c \
128   $(srcdir)/$(enable_decimal_float)/decimal32.h \
129   $(srcdir)/$(enable_decimal_float)/decimal32Symbols.h \
130   decNumber.h decContext.h decNumberLocal.h
131	$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal32.c
132decimal64.$(objext):  $(srcdir)/$(enable_decimal_float)/decimal64.c \
133   $(srcdir)/$(enable_decimal_float)/decimal64.h \
134   $(srcdir)/$(enable_decimal_float)/decimal64Symbols.h \
135   decNumber.h decContext.h decNumberLocal.h
136	$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal64.c
137decimal128.$(objext):  $(srcdir)/$(enable_decimal_float)/decimal128.c \
138   $(srcdir)/$(enable_decimal_float)/decimal128.h \
139   $(srcdir)/$(enable_decimal_float)/decimal128Symbols.h\
140   $(srcdir)/$(enable_decimal_float)/decimal128Local.h\
141   decNumber.h decContext.h decNumberLocal.h
142	$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal128.c
143bid2dpd_dpd2bid.$(objext) : $(srcdir)/bid/bid2dpd_dpd2bid.c $(srcdir)/bid/bid2dpd_dpd2bid.h
144	$(COMPILE) $(srcdir)/bid/bid2dpd_dpd2bid.c
145host-ieee32.$(objext) : $(srcdir)/bid/host-ieee32.c $(srcdir)/bid/decimal32.h
146	$(COMPILE) $(srcdir)/bid/host-ieee32.c
147host-ieee64.$(objext) : $(srcdir)/bid/host-ieee64.c $(srcdir)/bid/decimal64.h
148	$(COMPILE) $(srcdir)/bid/host-ieee64.c
149host-ieee128.$(objext) : $(srcdir)/bid/host-ieee128.c $(srcdir)/bid/decimal128.h
150	$(COMPILE) $(srcdir)/bid/host-ieee128.c
151# Other miscellaneous targets.
152
153mostlyclean:
154	-rm -f *.$(objext)
155
156clean: mostlyclean
157	-rm -rf libdecnumber.a $(srcdir)/autom4te.cache
158
159distclean: clean
160	-rm -f config.h stamp-h1 config.status config.cache config.log \
161	  configure.lineno configure.status.lineno Makefile localedir.h \
162	  localedir.hs gstdint.h
163
164maintainer-clean: distclean
165	@echo "This command is intended for maintainers to use"
166	@echo "it deletes files that may require special tools to rebuild."
167	-rm -f $(srcdir)/configure $(srcdir)/aclocal.m4
168
169check:
170installcheck:
171dvi:
172pdf:
173html:
174info:
175install-info:
176install-pdf:
177install-man:
178install-html:
179install:
180
181.PHONY: installdirs install install-strip mostlyclean clean distclean \
182  maintainer-clean check installcheck dvi pdf html info install-info \
183  install-pdf install-man update-po install-html
184
185COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
186
187# Implicit rules
188
189.c.$(objext):
190	$(COMPILE) $<
191
192# Tell versions [3.59,3.63) of GNU make to not export all variables.
193# Otherwise a system limit (for SysV at least) may be exceeded.
194.NOEXPORT:
195