2007-10-11 20:15:02 +02:00
|
|
|
# @configure_input@
|
|
|
|
# Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in
|
|
|
|
|
2018-06-16 05:07:44 +02:00
|
|
|
# Copyright (C) 2005-2018 Free Software Foundation, Inc.
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
#This file is part of GCC.
|
|
|
|
|
|
|
|
#GCC is free software; you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU General Public License as published by
|
2009-04-13 21:43:01 +02:00
|
|
|
#the Free Software Foundation; either version 3, or (at your option)
|
2007-10-11 20:15:02 +02:00
|
|
|
#any later version.
|
|
|
|
|
|
|
|
#GCC is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
2009-04-13 21:43:01 +02:00
|
|
|
#along with GCC; see the file COPYING3. If not see
|
|
|
|
#<http://www.gnu.org/licenses/>.
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_builddir = .
|
|
|
|
VPATH = @srcdir@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
AR = ar
|
|
|
|
ARFLAGS = cru
|
|
|
|
ACLOCAL = @ACLOCAL@
|
|
|
|
AUTOCONF = @AUTOCONF@
|
|
|
|
AUTOHEADER = @AUTOHEADER@
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@
|
|
|
|
CPP = @CPP@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBICONV = @LIBICONV@
|
|
|
|
PACKAGE = @PACKAGE@
|
2013-10-16 02:29:48 +02:00
|
|
|
PICFLAG = @PICFLAG@
|
2007-10-11 20:15:02 +02:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
SHELL = @SHELL@
|
2010-09-09 19:39:52 +02:00
|
|
|
objext = @OBJEXT@
|
2018-06-16 05:07:44 +02:00
|
|
|
NOLTO_FLAGS = @nolto_flags@
|
2007-10-11 20:15:02 +02:00
|
|
|
|
2008-06-16 20:15:49 +02:00
|
|
|
datarootdir = @datarootdir@
|
2007-10-11 20:15:02 +02:00
|
|
|
datadir = @datadir@
|
|
|
|
exec_prefix = @prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
localedir = $(datadir)/locale
|
|
|
|
prefix = @prefix@
|
|
|
|
|
2007-10-31 19:37:19 +01:00
|
|
|
ADDITIONAL_OBJS = @ADDITIONAL_OBJS@
|
|
|
|
|
2007-10-11 20:15:02 +02:00
|
|
|
enable_decimal_float= @enable_decimal_float@
|
|
|
|
|
|
|
|
INCLUDES = -I$(srcdir) -I.
|
|
|
|
|
2018-06-16 05:07:44 +02:00
|
|
|
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(NOLTO_FLAGS) $(INCLUDES) $(CPPFLAGS) \
|
|
|
|
$(PICFLAG)
|
2007-10-11 20:15:02 +02:00
|
|
|
|
2010-09-09 19:39:52 +02:00
|
|
|
bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \
|
|
|
|
host-ieee64.$(objext) host-ieee128.$(objext)
|
2007-10-11 20:15:02 +02:00
|
|
|
|
2010-09-09 19:39:52 +02:00
|
|
|
libdecnumber_a_OBJS = decNumber.$(objext) decContext.$(objext) \
|
|
|
|
decimal32.$(objext) decimal64.$(objext) decimal128.$(objext) \
|
|
|
|
$(ADDITIONAL_OBJS)
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \
|
|
|
|
decNumber.c decNumber.h decNumberLocal.h \
|
2008-01-25 20:05:44 +01:00
|
|
|
decContextSymbols.h decDPDSymbols.h decNumberSymbols.h \
|
|
|
|
dpd/decimal128.c dpd/decimal128.h dpd/decimal128Symbols.h \
|
|
|
|
dpd/decimal32.c dpd/decimal32.h dpd/decimal32Symbols.h \
|
|
|
|
dpd/decimal64.c dpd/decimal64.h dpd/decimal64Symbols.h \
|
2007-10-11 20:15:02 +02:00
|
|
|
bid/decimal128.c bid/decimal128.h \
|
|
|
|
bid/decimal32.c bid/decimal32.h \
|
|
|
|
bid/decimal64.c bid/decimal64.h
|
|
|
|
|
|
|
|
all: libdecnumber.a
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .o .obj
|
|
|
|
|
|
|
|
libdecnumber.a: $(libdecnumber_a_OBJS)
|
|
|
|
-rm -f $@
|
|
|
|
$(AR) $(ARFLAGS) $@ $(libdecnumber_a_OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
# Rules to rebuild the configuration
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
|
|
$(SHELL) ./config.status Makefile
|
|
|
|
|
|
|
|
config.status: $(srcdir)/configure
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4
|
|
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
|
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
etc/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure, config.status): New rules.
(Makefile): Depend on config.status.
* configure.in: Accept --enable-maintainer-mode, set and
substitute MAINT accordingly.
gdb/
* Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
(AUTOCONF, configure_deps, AUTOHEADER): New variables.
($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
(am--refresh): New rules.
(stamp-h, config.status): List config.in and configure including
$(srcdir)/ prefix.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2009-07-31 00:44:50 +02:00
|
|
|
aclocal_deps = \
|
|
|
|
$(srcdir)/../config/stdint.m4 \
|
|
|
|
$(srcdir)/../config/warnings.m4 \
|
|
|
|
$(srcdir)/../config/override.m4 \
|
2010-09-03 15:30:58 +02:00
|
|
|
$(srcdir)/../config/dfp.m4 \
|
2007-10-11 20:15:02 +02:00
|
|
|
$(srcdir)/configure.ac
|
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
etc/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure, config.status): New rules.
(Makefile): Depend on config.status.
* configure.in: Accept --enable-maintainer-mode, set and
substitute MAINT accordingly.
gdb/
* Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
(AUTOCONF, configure_deps, AUTOHEADER): New variables.
($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
(am--refresh): New rules.
(stamp-h, config.status): List config.in and configure including
$(srcdir)/ prefix.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2009-07-31 00:44:50 +02:00
|
|
|
|
|
|
|
$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
|
2007-10-11 20:15:02 +02:00
|
|
|
cd $(srcdir) && $(ACLOCAL) -I ../config
|
|
|
|
|
|
|
|
config.h: stamp-h1
|
|
|
|
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
|
|
|
|
|
|
|
stamp-h1: $(srcdir)/config.in config.status
|
|
|
|
-rm -f stamp-h1
|
|
|
|
$(SHELL) ./config.status config.h
|
|
|
|
|
|
|
|
$(srcdir)/config.in: @MAINT@ $(srcdir)/configure
|
|
|
|
cd $(srcdir) && $(AUTOHEADER)
|
|
|
|
-rm -f stamp-h1
|
|
|
|
|
|
|
|
# Dependencies.
|
|
|
|
|
2010-09-09 19:39:52 +02:00
|
|
|
decContext.$(objext): decContext.c decContext.h decNumberLocal.h \
|
2007-10-11 20:15:02 +02:00
|
|
|
decContextSymbols.h
|
2010-09-09 19:39:52 +02:00
|
|
|
decNumber.$(objext): decNumber.c decNumber.h decContext.h decNumberLocal.h \
|
2007-10-11 20:15:02 +02:00
|
|
|
decNumberSymbols.h
|
2010-09-09 19:39:52 +02:00
|
|
|
decimal32.$(objext): $(srcdir)/$(enable_decimal_float)/decimal32.c \
|
2007-12-04 23:54:32 +01:00
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal32.h \
|
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal32Symbols.h \
|
2007-10-11 20:15:02 +02:00
|
|
|
decNumber.h decContext.h decNumberLocal.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal32.c
|
2010-09-09 19:39:52 +02:00
|
|
|
decimal64.$(objext): $(srcdir)/$(enable_decimal_float)/decimal64.c \
|
2007-12-04 23:54:32 +01:00
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal64.h \
|
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal64Symbols.h \
|
2007-10-11 20:15:02 +02:00
|
|
|
decNumber.h decContext.h decNumberLocal.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal64.c
|
2010-09-09 19:39:52 +02:00
|
|
|
decimal128.$(objext): $(srcdir)/$(enable_decimal_float)/decimal128.c \
|
2007-12-04 23:54:32 +01:00
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal128.h \
|
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal128Symbols.h\
|
|
|
|
$(srcdir)/$(enable_decimal_float)/decimal128Local.h\
|
2007-10-11 20:15:02 +02:00
|
|
|
decNumber.h decContext.h decNumberLocal.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal128.c
|
2010-09-09 19:39:52 +02:00
|
|
|
bid2dpd_dpd2bid.$(objext) : $(srcdir)/bid/bid2dpd_dpd2bid.c $(srcdir)/bid/bid2dpd_dpd2bid.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/bid/bid2dpd_dpd2bid.c
|
2010-09-09 19:39:52 +02:00
|
|
|
host-ieee32.$(objext) : $(srcdir)/bid/host-ieee32.c $(srcdir)/bid/decimal32.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/bid/host-ieee32.c
|
2010-09-09 19:39:52 +02:00
|
|
|
host-ieee64.$(objext) : $(srcdir)/bid/host-ieee64.c $(srcdir)/bid/decimal64.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/bid/host-ieee64.c
|
2010-09-09 19:39:52 +02:00
|
|
|
host-ieee128.$(objext) : $(srcdir)/bid/host-ieee128.c $(srcdir)/bid/decimal128.h
|
2007-12-04 23:54:32 +01:00
|
|
|
$(COMPILE) $(srcdir)/bid/host-ieee128.c
|
2007-10-11 20:15:02 +02:00
|
|
|
# Other miscellaneous targets.
|
|
|
|
|
|
|
|
mostlyclean:
|
2010-09-09 19:39:52 +02:00
|
|
|
-rm -f *.$(objext)
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
clean: mostlyclean
|
2009-02-10 17:18:42 +01:00
|
|
|
-rm -rf libdecnumber.a $(srcdir)/autom4te.cache
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
-rm -f config.h stamp-h1 config.status config.cache config.log \
|
|
|
|
configure.lineno configure.status.lineno Makefile localedir.h \
|
2008-04-18 04:12:45 +02:00
|
|
|
localedir.hs gstdint.h
|
2007-10-11 20:15:02 +02:00
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
@echo "This command is intended for maintainers to use"
|
|
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
|
|
-rm -f $(srcdir)/configure $(srcdir)/aclocal.m4
|
|
|
|
|
2015-01-22 20:07:31 +01:00
|
|
|
TAGS:
|
|
|
|
|
2007-10-11 20:15:02 +02:00
|
|
|
check:
|
|
|
|
installcheck:
|
|
|
|
dvi:
|
|
|
|
pdf:
|
|
|
|
html:
|
|
|
|
info:
|
|
|
|
install-info:
|
|
|
|
install-pdf:
|
|
|
|
install-man:
|
|
|
|
install-html:
|
|
|
|
install:
|
|
|
|
|
|
|
|
.PHONY: installdirs install install-strip mostlyclean clean distclean \
|
|
|
|
maintainer-clean check installcheck dvi pdf html info install-info \
|
|
|
|
install-pdf install-man update-po install-html
|
|
|
|
|
|
|
|
COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
|
|
|
|
|
|
|
|
# Implicit rules
|
|
|
|
|
2010-09-09 19:39:52 +02:00
|
|
|
.c.$(objext):
|
2007-10-11 20:15:02 +02:00
|
|
|
$(COMPILE) $<
|
|
|
|
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
|
|
.NOEXPORT:
|