2 # Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in
4 # Copyright (C) 2005 Free Software Foundation, Inc.
6 #This file is part of GCC.
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)
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.
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.
33 AUTOHEADER
= @AUTOHEADER@
36 WARN_CFLAGS
= @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@
39 INSTALL_DATA
= @INSTALL_DATA@
40 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
48 exec_prefix = @
prefix@
50 localedir
= $(datadir)/locale
53 INCLUDES
= -I
$(srcdir) -I.
55 ALL_CFLAGS
= $(CFLAGS
) $(WARN_CFLAGS
) $(INCLUDES
) $(CPPFLAGS
)
57 libdecnumber_a_OBJS
= decNumber.o decContext.o decUtility.o \
58 decimal32.o decimal64.o decimal128.o
60 libdecnumber_a_SOURCES
= decContext.c decContext.h decDPD.h \
61 decNumber.c decNumber.h decNumberLocal.h \
62 decUtility.c decUtility.h \
63 decRound.c decimal128.c decimal128.h decimal32.c decimal32.h \
64 decimal64.c decimal64.h
71 libdecnumber.a
: $(libdecnumber_a_OBJS
)
73 $(AR
) $(ARFLAGS
) $@
$(libdecnumber_a_OBJS
)
76 # Rules to rebuild the configuration
78 Makefile
: $(srcdir)/Makefile.in config.status
79 $(SHELL
) .
/config.status Makefile
81 config.status
: $(srcdir)/configure
82 $(SHELL
) .
/config.status
--recheck
84 $(srcdir)/configure
: @MAINT@
$(srcdir)/aclocal.m4
85 cd
$(srcdir) && $(AUTOCONF
)
87 $(srcdir)/aclocal.m4
: @MAINT@
$(srcdir)/..
/config
/acx.m4 \
88 $(srcdir)/..
/config
/warnings.m4 \
89 $(srcdir)/configure.ac
90 cd
$(srcdir) && $(ACLOCAL
) -I ..
/config
93 test -f config.h ||
(rm -f stamp-h1
&& $(MAKE
) stamp-h1
)
95 stamp-h1
: $(srcdir)/config.in config.status
97 $(SHELL
) .
/config.status config.h
99 $(srcdir)/config.in
: @MAINT@
$(srcdir)/configure
100 cd
$(srcdir) && $(AUTOHEADER
)
105 decContext.o
: decContext.c decContext.h decNumberLocal.h
106 decNumber.o
: decNumber.c decNumber.h decContext.h decNumberLocal.h
107 decimal32.o
: decimal32.c decNumber.h decContext.h decNumberLocal.h \
108 decimal32.h decUtility.h
109 decimal64.o
: decimal64.c decNumber.h decContext.h decNumberLocal.h \
110 decimal64.h decUtility.h
111 decimal128.o
: decimal128.c decNumber.h decNumberLocal.h decimal128.h \
114 # Other miscellaneous targets.
120 -rm -rf makedepend
$(EXEEXT
) libdecnumber.a
$(srcdir)/autom4te.cache
123 -rm -f config.h stamp-h1 config.status config.cache config.log \
124 configure.lineno configure.status.lineno Makefile localedir.h \
127 maintainer-clean
: distclean
128 @echo
"This command is intended for maintainers to use"
129 @echo
"it deletes files that may require special tools to rebuild."
130 -rm -f
$(srcdir)/configure
$(srcdir)/aclocal.m4
142 .PHONY
: installdirs install install-strip
mostlyclean clean distclean \
143 maintainer-clean
check installcheck dvi html
info install-info \
144 install-man update-po install-html
146 COMPILE
= source
='$<' object
='$@' libtool
=no
$(CC
) $(DEFS
) $(INCLUDES
) $(CPPFLAGS
) $(ALL_CFLAGS
) -c
153 # Tell versions [3.59,3.63) of GNU make to not export all variables.
154 # Otherwise a system limit (for SysV at least) may be exceeded.