From c1583e46998e8f16a86c959e5067002eaa5e8609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Mon, 4 Oct 1999 12:37:03 -0700 Subject: [PATCH] more persistent (and less verbose) Makefile Rev: src/Makefile.in:1.155 Rev: src/modules/dynamic_module_makefile.in:1.57 Rev: src/modules/static_module_makefile.in:1.51 --- src/Makefile.in | 19 +++++++++++++++---- src/modules/dynamic_module_makefile.in | 16 +++++++++++++++- src/modules/static_module_makefile.in | 16 +++++++++++++++- 3 files changed, 45 insertions(+), 6 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 2e5efbb5de..2f267cf158 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,5 +1,5 @@ # -# $Id: Makefile.in,v 1.154 1999/09/14 22:50:22 hubbe Exp $ +# $Id: Makefile.in,v 1.155 1999/10/04 19:36:49 hubbe Exp $ # # This line is needed on some machines. @@ -207,13 +207,24 @@ hilfe: $(TMP_BINDIR)/hilfe Makefile @echo "Done." +.SUFFIXES: .c .o + # Several optimizers have problems with interpret.c # First try compiling with optimization and if that doesn't work, without. -interpret.o: $(SRCDIR)/interpret.c - $(CC) $(CFLAGS) -c $(SRCDIR)/interpret.c -o interpret.o || NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $(SRCDIR)/interpret.c -o interpret.o +# GCC dumps core on some files @ OSF1 +# This kluge should work around that... +# FIXME: Make this a configure option +.c.o: + @echo "Compiling $<" ;\ + if $(CC) $(CFLAGS) -c $< -o $@ ; then : ;\ + else \ + echo "WARNING: Compiler failiure! Trying without optimization!" ;\ + echo "echo $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" ;\ + NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\ + fi force : - + @: # install install: pike hilfe pike-module aclocal diff --git a/src/modules/dynamic_module_makefile.in b/src/modules/dynamic_module_makefile.in index 381ac5bb24..4005aa9b9b 100644 --- a/src/modules/dynamic_module_makefile.in +++ b/src/modules/dynamic_module_makefile.in @@ -1,5 +1,5 @@ # -# $Id: dynamic_module_makefile.in,v 1.56 1999/10/04 03:04:32 hubbe Exp $ +# $Id: dynamic_module_makefile.in,v 1.57 1999/10/04 19:37:03 hubbe Exp $ # @@ -36,6 +36,20 @@ dummy: $(DUMMY) linker_options modlist_headers modlist_segment module.so if [ -f $(SRCDIR)/module.pmod.in ]; then sed -e "s/@module@/.$$tmp2/" <$(SRCDIR)/module.pmod.in >$(TMP_LIBDIR)/modules/$$tmp.pmod ; else if [ -f ./module.pmod.in ]; then sed -e "s/@module@/.$$tmp2/" <./module.pmod.in >$(TMP_LIBDIR)/modules/$$tmp.pmod; else tmp2="$$tmp"; fi; fi ; \ $(TMP_BINDIR)/install_module module.so $(TMP_LIBDIR)/modules/$$tmp2.so +.SUFFIXES: .c .o + +# GCC dumps core on some files @ OSF1 +# This kluge should work around that... +# FIXME: Make this a configure option +.c.o: + @echo "Compiling $<" ;\ + if $(CC) $(CFLAGS) -c $< -o $@ ; then : ;\ + else \ + echo "WARNING: Compiler failiure! Trying without optimization!" ;\ + echo "echo $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" ;\ + NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\ + fi + linker_options: Makefile echo "$(LINKER_OPTIONS)" >linker_options diff --git a/src/modules/static_module_makefile.in b/src/modules/static_module_makefile.in index b773630a4b..9c607bbedc 100644 --- a/src/modules/static_module_makefile.in +++ b/src/modules/static_module_makefile.in @@ -1,5 +1,5 @@ # -# $Id: static_module_makefile.in,v 1.50 1999/10/04 03:04:33 hubbe Exp $ +# $Id: static_module_makefile.in,v 1.51 1999/10/04 19:37:02 hubbe Exp $ # @@ -32,6 +32,20 @@ dummy: linker_options modlist_headers modlist_segment module.pmod module.a if test x$$tmp = x ; then tmp="$(MODNAME)"; else :; fi ;\ $(TMP_BINDIR)/install_module module.pmod $(TMP_LIBDIR)/modules/$$tmp.pmod +.SUFFIXES: .c .o + +# GCC dumps core on some files @ OSF1 +# This kluge should work around that... +# FIXME: Make this a configure option +.c.o: + @echo "Compiling $<" ;\ + if $(CC) $(CFLAGS) -c $< -o $@ ; then : ;\ + else \ + echo "WARNING: Compiler failiure! Trying without optimization!" ;\ + echo "echo $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" ;\ + NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\ + fi + linker_options: Makefile $(MODULE_ARCHIVES) echo >linker_options modules/$(MODNAME)/module.a $(MODULE_LDFLAGS) @for a in '' $(MODULE_ARCHIVES) ; do \ -- GitLab