diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-24 17:04:47 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-24 17:04:47 +0000 |
commit | 10de71e103272ab95d389659e312b95e6b86a65c (patch) | |
tree | ec50c8ab7786788a6da7d4f06b0cd93e9555d487 /libgcc/Makefile.in | |
parent | 99ad623febd84d2a9cf4c2d0ad950c48c650a624 (diff) | |
download | gcc-10de71e103272ab95d389659e312b95e6b86a65c.tar.gz |
Add BID decimal support
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/Makefile.in')
-rw-r--r-- | libgcc/Makefile.in | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in index 63c9512fc80..684c80afaed 100644 --- a/libgcc/Makefile.in +++ b/libgcc/Makefile.in @@ -37,6 +37,7 @@ SHELL = @SHELL@ enable_shared = @enable_shared@ decimal_float = @decimal_float@ +enable_decimal_float = @enable_decimal_float@ host_noncanonical = @host_noncanonical@ @@ -183,7 +184,13 @@ export slibdir version := $(shell $(CC) -dumpversion) -DECNUMINC = -I$(srcdir)/../libdecnumber -I$(MULTIBUILDTOP)../../libdecnumber +ifeq ($(decimal_float),yes) +DECNUMINC = -I$(srcdir)/../libdecnumber/$(enable_decimal_float) \ + -I$(srcdir)/../libdecnumber \ + -I$(MULTIBUILDTOP)../../libdecnumber +else +DECNUMINC = +endif # Specify the directories to be searched for header files. # Both . and srcdir are used, in that order, @@ -467,22 +474,32 @@ ifneq ($(D32PBIT)$(D64PBIT)$(D128PBIT),) dec-filenames += decContext decNumber decExcept decRound decLibrary decUtility endif +dec-objects = $(patsubst %,%$(objext),$(dec-filenames)) +$(dec-objects): %$(objext): $(srcdir)/../libdecnumber/%.c + $(gcc_compile) -c $< +libgcc-objects += $(dec-objects) + +decbits-filenames = ifneq ($(D32PBIT),) -dec-filenames += decimal32 +decbits-filenames += decimal32 endif ifneq ($(D64PBIT),) -dec-filenames += decimal64 +decbits-filenames += decimal64 endif ifneq ($(D128PBIT),) -dec-filenames += decimal128 +decbits-filenames += decimal128 endif -dec-objects = $(patsubst %,%$(objext),$(dec-filenames)) -$(dec-objects): %$(objext): $(srcdir)/../libdecnumber/%.c +ifeq ($(enable_decimal_float),bid) +decbits-filenames += bid2dpd_dpd2bid +endif + +decbits-objects = $(patsubst %,%$(objext),$(decbits-filenames)) +$(decbits-objects): %$(objext): $(srcdir)/../libdecnumber/$(enable_decimal_float)/%.c $(gcc_compile) -c $< -libgcc-objects += $(dec-objects) +libgcc-objects += $(decbits-objects) # Next build individual support functions. ifneq ($(D32PBIT),) |