pike.git
/
src
/
Makefile.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/Makefile.in:80:
#Enable warnings from the compiler, if wanted. # WARN=@WARN@ #add extra defines here DEFINES=@CPPFLAGS@ -DPIKE_CORE # -O should work with all compilers OPTIMIZE=@OPTIMIZE@
-
# interpret.o can't have -fomit-frame-pointer
-
INTERPRET_DEOPTIMIZE=@INTERPRET_DEOPTIMIZE@
-
+
# Set to a flag for parallelizing make, e.g. -j2. It's given to make # at the level where it's most effective. MAKE_PARALLEL= # Preprocessor flags. PREFLAGS=-DPIKE_SRC_ROOT="$(BASEDIR)" -I. -I$(SRCDIR) $(DEFINES) OTHERFLAGS=@CFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL) NOOPTFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(WARN) $(PROFIL) CFLAGS=$(PREFLAGS) $(OTHERFLAGS)
pike.git/src/Makefile.in:477:
.h.pph: $(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...
-
# Extra kludge added: interpret.o gets special flags (deoptimization)
+
.c.o: @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ rm -f $@.fail >/dev/null 2>&1; \
-
if test "x$@" = "xinterpret.o"; then EXTRAFLAGS="$(INTERPRET_DEOPTIMIZE)"; else EXTRAFLAGS=; fi; \
+
if $(CC) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ status=$$?; \ if test x"@noopt_retry@" = xyes ; then \ echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >$@.fail ;\ if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ status=$$?; \ echo "Compilation command was:" >&2;\ echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\ exit $$status; \
pike.git/src/Makefile.in:503:
else \ echo "Compilation command was:" >&2;\ echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -c $< -o $@" >&2 ;\ exit $$status; \ fi; \ fi .m.o: @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ rm -f $@.fail >/dev/null 2>&1; \
-
if test "x$@" = "xinterpret.o"; then EXTRAFLAGS="$(INTERPRET_DEOPTIMIZE)"; else EXTRAFLAGS=; fi; \
+
if $(CC) $(CFLAGS) $$EXTRAFLAGS -fobjc-exceptions -fobjc-gc -c $< -o $@ ; then : ; else \ status=$$?; \ if test x"@noopt_retry@" = xyes ; then \ echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ echo "$(CC) $(PREFLAGS) $(CFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@" >$@.fail ;\ if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -c $< -o $@ ; then : ; else \ status=$$?; \ echo "Compilation command was:" >&2;\ echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) $$EXTRAFLAGS -fobjc-exceptions -c $< -o $@" >&2 ;\ exit $$status; \