From 2f663a980c358f99d053a53e387b39772291c631 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 19 Jan 2006 07:29:40 +0000 Subject: * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h [__ASSEMBLER__]: Don't include problematic headers for assembler. * Makerules ($(+sysdir_pfx)sysd-rules): Don't emit m_%.c rules, instead emit m_%.o compilation rules from s_%.? source files. * math/Makefile ($(objpfx)m_%$o: s_%.c): New rule using o-iterator. --- math/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'math/Makefile') diff --git a/math/Makefile b/math/Makefile index 8e5c788..b45283d 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1,4 +1,5 @@ -# Copyright (C) 1996-2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1996-2001,2002,2003,2004,2005,2006 +# Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -149,6 +150,15 @@ distribute += ieee-math.c include ../Rules +# The generated sysd-rules file defines rules like this for sources +# coming from sysdeps/ directories. These rules find the generic sources. +define o-iterator-doit +$(objpfx)m_%$o: s_%.c $(before-compile); $$(compile-command.c) +endef +object-suffixes-left := $(all-object-suffixes) +include $(o-iterator) + + # This file defines the default _LIB_VERSION variable that controls # the error return conventions for the math functions. CPPFLAGS-s_lib_version.c := -D_POSIX_MODE -- cgit v1.1