| 1 |
731 |
jeremybenn |
# @configure_input@
|
| 2 |
|
|
# Makefile for libdecnumber. Run 'configure' to generate Makefile from Makefile.in
|
| 3 |
|
|
|
| 4 |
|
|
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
|
| 5 |
|
|
# Free Software Foundation, Inc.
|
| 6 |
|
|
|
| 7 |
|
|
#This file is part of GCC.
|
| 8 |
|
|
|
| 9 |
|
|
#GCC is free software; you can redistribute it and/or modify
|
| 10 |
|
|
#it under the terms of the GNU General Public License as published by
|
| 11 |
|
|
#the Free Software Foundation; either version 3, or (at your option)
|
| 12 |
|
|
#any later version.
|
| 13 |
|
|
|
| 14 |
|
|
#GCC is distributed in the hope that it will be useful,
|
| 15 |
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 17 |
|
|
#GNU General Public License for more details.
|
| 18 |
|
|
|
| 19 |
|
|
#You should have received a copy of the GNU General Public License
|
| 20 |
|
|
#along with GCC; see the file COPYING3. If not see
|
| 21 |
|
|
#.
|
| 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 |
|
|
objext = @OBJEXT@
|
| 47 |
|
|
|
| 48 |
|
|
datarootdir = @datarootdir@
|
| 49 |
|
|
datadir = @datadir@
|
| 50 |
|
|
exec_prefix = @prefix@
|
| 51 |
|
|
libdir = @libdir@
|
| 52 |
|
|
localedir = $(datadir)/locale
|
| 53 |
|
|
prefix = @prefix@
|
| 54 |
|
|
|
| 55 |
|
|
ADDITIONAL_OBJS = @ADDITIONAL_OBJS@
|
| 56 |
|
|
|
| 57 |
|
|
enable_decimal_float= @enable_decimal_float@
|
| 58 |
|
|
|
| 59 |
|
|
INCLUDES = -I$(srcdir) -I.
|
| 60 |
|
|
|
| 61 |
|
|
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS)
|
| 62 |
|
|
|
| 63 |
|
|
bid_OBJS = bid2dpd_dpd2bid.$(objext) host-ieee32.$(objext) \
|
| 64 |
|
|
host-ieee64.$(objext) host-ieee128.$(objext)
|
| 65 |
|
|
|
| 66 |
|
|
libdecnumber_a_OBJS = decNumber.$(objext) decContext.$(objext) \
|
| 67 |
|
|
decimal32.$(objext) decimal64.$(objext) decimal128.$(objext) \
|
| 68 |
|
|
$(ADDITIONAL_OBJS)
|
| 69 |
|
|
|
| 70 |
|
|
libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \
|
| 71 |
|
|
decNumber.c decNumber.h decNumberLocal.h \
|
| 72 |
|
|
decContextSymbols.h decDPDSymbols.h decNumberSymbols.h \
|
| 73 |
|
|
dpd/decimal128.c dpd/decimal128.h dpd/decimal128Symbols.h \
|
| 74 |
|
|
dpd/decimal32.c dpd/decimal32.h dpd/decimal32Symbols.h \
|
| 75 |
|
|
dpd/decimal64.c dpd/decimal64.h dpd/decimal64Symbols.h \
|
| 76 |
|
|
bid/decimal128.c bid/decimal128.h \
|
| 77 |
|
|
bid/decimal32.c bid/decimal32.h \
|
| 78 |
|
|
bid/decimal64.c bid/decimal64.h
|
| 79 |
|
|
|
| 80 |
|
|
all: libdecnumber.a
|
| 81 |
|
|
|
| 82 |
|
|
.SUFFIXES:
|
| 83 |
|
|
.SUFFIXES: .c .o .obj
|
| 84 |
|
|
|
| 85 |
|
|
libdecnumber.a: $(libdecnumber_a_OBJS)
|
| 86 |
|
|
-rm -f $@
|
| 87 |
|
|
$(AR) $(ARFLAGS) $@ $(libdecnumber_a_OBJS)
|
| 88 |
|
|
$(RANLIB) $@
|
| 89 |
|
|
|
| 90 |
|
|
# Rules to rebuild the configuration
|
| 91 |
|
|
|
| 92 |
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
| 93 |
|
|
$(SHELL) ./config.status Makefile
|
| 94 |
|
|
|
| 95 |
|
|
config.status: $(srcdir)/configure
|
| 96 |
|
|
$(SHELL) ./config.status --recheck
|
| 97 |
|
|
|
| 98 |
|
|
$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4
|
| 99 |
|
|
cd $(srcdir) && $(AUTOCONF)
|
| 100 |
|
|
|
| 101 |
|
|
aclocal_deps = \
|
| 102 |
|
|
$(srcdir)/../config/stdint.m4 \
|
| 103 |
|
|
$(srcdir)/../config/warnings.m4 \
|
| 104 |
|
|
$(srcdir)/../config/override.m4 \
|
| 105 |
|
|
$(srcdir)/../config/dfp.m4 \
|
| 106 |
|
|
$(srcdir)/configure.ac
|
| 107 |
|
|
|
| 108 |
|
|
$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
|
| 109 |
|
|
cd $(srcdir) && $(ACLOCAL) -I ../config
|
| 110 |
|
|
|
| 111 |
|
|
config.h: stamp-h1
|
| 112 |
|
|
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
| 113 |
|
|
|
| 114 |
|
|
stamp-h1: $(srcdir)/config.in config.status
|
| 115 |
|
|
-rm -f stamp-h1
|
| 116 |
|
|
$(SHELL) ./config.status config.h
|
| 117 |
|
|
|
| 118 |
|
|
$(srcdir)/config.in: @MAINT@ $(srcdir)/configure
|
| 119 |
|
|
cd $(srcdir) && $(AUTOHEADER)
|
| 120 |
|
|
-rm -f stamp-h1
|
| 121 |
|
|
|
| 122 |
|
|
# Dependencies.
|
| 123 |
|
|
|
| 124 |
|
|
decContext.$(objext): decContext.c decContext.h decNumberLocal.h \
|
| 125 |
|
|
decContextSymbols.h
|
| 126 |
|
|
decNumber.$(objext): decNumber.c decNumber.h decContext.h decNumberLocal.h \
|
| 127 |
|
|
decNumberSymbols.h
|
| 128 |
|
|
decimal32.$(objext): $(srcdir)/$(enable_decimal_float)/decimal32.c \
|
| 129 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal32.h \
|
| 130 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal32Symbols.h \
|
| 131 |
|
|
decNumber.h decContext.h decNumberLocal.h
|
| 132 |
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal32.c
|
| 133 |
|
|
decimal64.$(objext): $(srcdir)/$(enable_decimal_float)/decimal64.c \
|
| 134 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal64.h \
|
| 135 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal64Symbols.h \
|
| 136 |
|
|
decNumber.h decContext.h decNumberLocal.h
|
| 137 |
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal64.c
|
| 138 |
|
|
decimal128.$(objext): $(srcdir)/$(enable_decimal_float)/decimal128.c \
|
| 139 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal128.h \
|
| 140 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal128Symbols.h\
|
| 141 |
|
|
$(srcdir)/$(enable_decimal_float)/decimal128Local.h\
|
| 142 |
|
|
decNumber.h decContext.h decNumberLocal.h
|
| 143 |
|
|
$(COMPILE) $(srcdir)/$(enable_decimal_float)/decimal128.c
|
| 144 |
|
|
bid2dpd_dpd2bid.$(objext) : $(srcdir)/bid/bid2dpd_dpd2bid.c $(srcdir)/bid/bid2dpd_dpd2bid.h
|
| 145 |
|
|
$(COMPILE) $(srcdir)/bid/bid2dpd_dpd2bid.c
|
| 146 |
|
|
host-ieee32.$(objext) : $(srcdir)/bid/host-ieee32.c $(srcdir)/bid/decimal32.h
|
| 147 |
|
|
$(COMPILE) $(srcdir)/bid/host-ieee32.c
|
| 148 |
|
|
host-ieee64.$(objext) : $(srcdir)/bid/host-ieee64.c $(srcdir)/bid/decimal64.h
|
| 149 |
|
|
$(COMPILE) $(srcdir)/bid/host-ieee64.c
|
| 150 |
|
|
host-ieee128.$(objext) : $(srcdir)/bid/host-ieee128.c $(srcdir)/bid/decimal128.h
|
| 151 |
|
|
$(COMPILE) $(srcdir)/bid/host-ieee128.c
|
| 152 |
|
|
# Other miscellaneous targets.
|
| 153 |
|
|
|
| 154 |
|
|
mostlyclean:
|
| 155 |
|
|
-rm -f *.$(objext)
|
| 156 |
|
|
|
| 157 |
|
|
clean: mostlyclean
|
| 158 |
|
|
-rm -rf libdecnumber.a $(srcdir)/autom4te.cache
|
| 159 |
|
|
|
| 160 |
|
|
distclean: clean
|
| 161 |
|
|
-rm -f config.h stamp-h1 config.status config.cache config.log \
|
| 162 |
|
|
configure.lineno configure.status.lineno Makefile localedir.h \
|
| 163 |
|
|
localedir.hs gstdint.h
|
| 164 |
|
|
|
| 165 |
|
|
maintainer-clean: distclean
|
| 166 |
|
|
@echo "This command is intended for maintainers to use"
|
| 167 |
|
|
@echo "it deletes files that may require special tools to rebuild."
|
| 168 |
|
|
-rm -f $(srcdir)/configure $(srcdir)/aclocal.m4
|
| 169 |
|
|
|
| 170 |
|
|
check:
|
| 171 |
|
|
installcheck:
|
| 172 |
|
|
dvi:
|
| 173 |
|
|
pdf:
|
| 174 |
|
|
html:
|
| 175 |
|
|
info:
|
| 176 |
|
|
install-info:
|
| 177 |
|
|
install-pdf:
|
| 178 |
|
|
install-man:
|
| 179 |
|
|
install-html:
|
| 180 |
|
|
install:
|
| 181 |
|
|
|
| 182 |
|
|
.PHONY: installdirs install install-strip mostlyclean clean distclean \
|
| 183 |
|
|
maintainer-clean check installcheck dvi pdf html info install-info \
|
| 184 |
|
|
install-pdf install-man update-po install-html
|
| 185 |
|
|
|
| 186 |
|
|
COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
|
| 187 |
|
|
|
| 188 |
|
|
# Implicit rules
|
| 189 |
|
|
|
| 190 |
|
|
.c.$(objext):
|
| 191 |
|
|
$(COMPILE) $<
|
| 192 |
|
|
|
| 193 |
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
| 194 |
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
| 195 |
|
|
.NOEXPORT:
|