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