Branch: Tag:

1999-10-04

1999-10-04 19:37:03 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

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

1:   # - # $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:    @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    @$(RUNPIKE) $(TMP_BINDIR)/install.pike --new-style \