about summary refs log tree commit diff
path: root/math/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-19 07:29:40 +0000
committerRoland McGrath <roland@gnu.org>2006-01-19 07:29:40 +0000
commit2f663a980c358f99d053a53e387b39772291c631 (patch)
tree827e21a3ac03ea4c6c44ef2af91e4625939c4e5e /math/Makefile
parent04a8a3c10ad6aa8c2331794dbc572c3c8575b09c (diff)
downloadglibc-2f663a980c358f99d053a53e387b39772291c631.tar.gz
glibc-2f663a980c358f99d053a53e387b39772291c631.tar.xz
glibc-2f663a980c358f99d053a53e387b39772291c631.zip
* 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.
Diffstat (limited to 'math/Makefile')
-rw-r--r--math/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile
index 8e5c788403..b45283d8fc 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