diff options
author | Roland McGrath <roland@gnu.org> | 1994-03-22 20:53:14 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-03-22 20:53:14 +0000 |
commit | 85e83b903e0850a30475ed757e7e23dd51dd831f (patch) | |
tree | e943ba5e020ec26b07e2bacb11d1acd45856aeeb /math | |
parent | 547a098729242585f816193fa30508f9a54e9a36 (diff) |
entered into RCS
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/math/Makefile b/math/Makefile index 6ee3f48cf9..965a53d1ce 100644 --- a/math/Makefile +++ b/math/Makefile @@ -37,73 +37,3 @@ include ../Rules $(objpfx)libm.a: $(dep-dummy-lib); $(make-dummy-lib) lib: $(objpfx)libm.a - -ifneq (,) # the code is now distributed through ../sysdeps/ - -# Other dirs to look for source files (for dist). -export source_dirs = $(filter-out unused,$(shell find bsd -type d -print)) - -include $(objpfx)BSDmath-files -$(objpfx)BSDmath-files: - (echo define +ansideclificate-bsd; \ - echo "(echo '#include <ansidecl.h>'; \ - echo '#include \"\$$<\"') > \$$@-tmp; \ - mv \$$@-tmp \$$@"; \ - echo endef; \ - for dir in $(source_dirs); do \ - echo "\$$(objpfx)%.c: $${dir}/%.c;\$$(+ansideclificate-bsd)";\ - done) > $@-tmp - mv $@-tmp $@ - - -ifdef bsdmath_dirs - -override CPPFLAGS := $(CPPFLAGS) -Ibsd $(addprefix -Ibsd/,$(bsdmath_dirs)) - -+bsdpath := $(subst $+ ,:,bsd $(addprefix bsd/,$(bsdmath_dirs))) -vpath %.s $(+bsdpath) -vpath %.h $(+bsdpath) - -+bsdfiles := $(wildcard $(patsubst %,bsd/%/*.c,$(bsdmath_dirs))) - -ifdef +bsdfiles - -# Find all the files which have both BSD and sysdep versions. -+sysdeps := $(notdir $(wildcard \ - $(foreach dir, \ - $(filter-out %/generic %/stub, \ - $(+sysdep_dirs)), \ - $(addprefix $(dir)/, \ - $(notdir $(+bsdfiles)))))) - -# Filter these out of the list of BSD files. -+bsdfiles := $(filter-out $(addprefix %/,$(+sysdeps)),$(+bsdfiles)) - -ifdef +bsdfiles -# Assert that all the BSD C sources exist in the object directory, -# so VPATH will find them there first. -$(addprefix $(objpfx),$(notdir $(+bsdfiles))): -endif - -# See how easy this would be in make v4? -ifneq (,) -define bsd-files -$(foreach dir,$(bsdmath_dirs), -$(objpfx)%.c: bsd/$(dir)/%.c - (echo '#include <ansidecl.h>'; echo '#include "$<") > $@-tmp - mv $@-tmp $@ -endef -$(bsd-files) -endif - -ifneq ($(findstring gcc,$(CC)),) -# Disable GCC warnings for grody BSD code. -override CFLAGS := $(filter-out -W%,$(CFLAGS)) -# In make v4, put "$(+bsdfiles): " in front of that. -endif - -endif # +bsdfiles - -endif # bsdmath_dirs - -endif |