pike.git
/
src
/
Makefile.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/Makefile.in:1:
#
-
# $Id: Makefile.in,v 1.
199
2000/08/
01
22
:37:
22
grubba Exp $
+
# $Id: Makefile.in,v 1.
200
2000/08/
06
18
:37:
35
grubba Exp $
# # This line is needed on some machines. @SET_MAKE@ # Don't change this line. Define EXTRALIBS before this line if you # wish to add any libraries. LIBS=@LIBS@ $(EXTRALIBS) # This is normall the install program in the source directory
pike.git/src/Makefile.in:80:
PREFLAGS=-I. -I$(SRCDIR) $(DEFINES) OTHERFLAGS=@CFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL) NOOPTFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(WARN) $(PROFIL) CFLAGS=$(PREFLAGS) $(OTHERFLAGS) SMARTLINK=@SMARTLINK@ REALCC=@REALCC@ CC=@CC@ CPP=@CPP@
+
FALLBACK_CC=@FALLBACK_CC@
+
AR=@AR@ LD=@LD@ LDFLAGS=@LDFLAGS@ @LINKFORSHARED@ $(EXTRALDFLAGS) RUNPIKE=$(TMP_BUILDDIR)/pike -DNOT_INSTALLED -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS) RUNTPIKE=$(TMP_BUILDDIR)/tpike -DNOT_INSTALLED -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS) MAKE_FLAGS=
pike.git/src/Makefile.in:288:
$(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT -DPMOD_PROTO=PMOD_PROTO "$<" >"$@" # Several optimizers have problems with interpret.c # First try compiling with optimization and if that doesn't work, without. # 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 \
+
if $(CC) $(CFLAGS) -c $< -o $@ ; then : ; else \
echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ echo "echo $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\
-
NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\
+
NO_ULIMIT=yes
;
\
+
export NO_ULIMIT; \
+
if
$(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;
then : ; else
\
+
err=$$?; \
+
if test "x$(FALLBACK_CC)" = "x"; then \
+
exit $err; \
+
else \
+
echo "WARNING: Compiler failure! Trying fallback compiler!" >&2;\
+
echo "echo $(FALLBACK_CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\
+
$(FALLBACK_CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ;\
+
fi; \
+
fi; \
fi # # Please note that this must be accompanied by a dependency rule as # The .c file will not be created in the SOURCE directory otherwise. # -Hubbe # .cmod.c: ./precompile.sh precompile.pike "$@" "$<"