pike.git / src / modules / common_module_makefile.in

version» Context lines:

pike.git/src/modules/common_module_makefile.in:1:   #   # Contains stuff common to both dynamic_module_makefile and   # static_module_makefile.   #   # Modules should NOT use this file directly, but instead use either   # dynamic_module_makefile or static_module_makefile as appropriate.   #      PREFLAGS=-I. -I$(SRCDIR) -I$(BUILD_BASE) -I$(PIKE_SRC_DIR) $(LINKAGE_CPPFLAGS) $(MODULE_CPPFLAGS) $(DEFINES) - CFLAGS=$(MODULE_CFLAGS) $(OTHERFLAGS) $(LINKAGE_CFLAGS) - NOOPT_CFLAGS=$(MODULE_CFLAGS) $(NOOPTFLAGS) $(LINKAGE_CFLAGS) + CFLAGS=$(BASE_CFLAGS) $(MODULE_CFLAGS) $(OTHERFLAGS) $(LINKAGE_CFLAGS) + NOOPT_CFLAGS=$(BASE_CFLAGS) $(MODULE_CFLAGS) $(NOOPTFLAGS) $(LINKAGE_CFLAGS) + CXXFLAGS=$(BASE_CXXFLAGS) $(MODULE_CXXFLAGS) $(OTHERFLAGS) $(LINKAGE_CXXFLAGS) + NOOPT_CXXFLAGS=$(BASE_CXXFLAGS) $(MODULE_CXXFLAGS) $(NOOPTFLAGS) $(LINKAGE_CXXFLAGS)      # MAKE_FLAGS_BASE must not contain LINKAGE_*.   MAKE_FLAGS_BASE = "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "CC=$(CC)" "OTHERFLAGS=$(OTHERFLAGS)" "TMP_BINDIR=$(TMP_BINDIR)" "DEFINES=$(DEFINES)" "TMP_LIBDIR=$(TMP_LIBDIR)" "RUNPIKE=$(RUNPIKE)" "INSTALL=$(INSTALL)" "AR=$(AR)" "NOOPTFLAGS=$(NOOPTFLAGS)" $(MODULE_MAKE_FLAGS)   MAKE_FLAGS = $(MAKE_FLAGS_BASE) "LINKAGE_CFLAGS=$(LINKAGE_CFLAGS)"      MODULE_BASE=$(BUILD_BASE)/modules   TMP_MODULE_BASE=$(TMP_LIBDIR)/modules      force:    @:
pike.git/src/modules/common_module_makefile.in:32:   $(MODULE_ARCHIVES) ThisIsAPhonyTargetBlaBlaBla: force    @a=`echo $@ | sed -e 's@/[^/]*$$@@'` ; \    m=`echo $@ | sed -e 's@.*/@@g'`; \    echo Making $(MODNAME)/$$a/$$m ; \    ( rm $$a/remake >/dev/null 2>&1 ||: ; \    cd $$a && ( $(MAKE) $(MAKE_FLAGS) $$m || \    ( test -f remake ; $(MAKE) $(MAKE_FLAGS) $$m ) ) \    ) || exit $$?      .SUFFIXES: - .SUFFIXES: .c .o .cmod .protos .m .mmod .cc .ccmod + .SUFFIXES: .c .o .S .cmod .protos .m .mmod .cc .ccmod    - .cmod.c: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike -  $(BUILD_BASE)/precompile.sh precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; } + $(PMOD_TARGETS): $(wildcard $(BUILD_BASE)/precompile.sh-stamp) $(TMP_BINDIR)/precompile.pike $(wildcard $(PIKE_SRC_DIR)/../lib/modules/Tools.pmod/Standalone.pmod/precompile.pike) Makefile.in    - .mmod.m: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike -  $(BUILD_BASE)/precompile.sh precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; } + .cmod.c: +  $(BUILD_BASE)/precompile.sh precompile.pike '--base=$(MODNAME)' $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }    - .ccmod.cc: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike -  $(BUILD_BASE)/precompile.sh precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; } + .mmod.m: +  $(BUILD_BASE)/precompile.sh precompile.pike '--base=$(MODNAME)' $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }    -  + .ccmod.cc: +  $(BUILD_BASE)/precompile.sh precompile.pike '--base=$(MODNAME)' $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }    -  +    # GCC dumps core on some files @ OSF1   # This kluge should work around that...   .c.o:    @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \    rm -f $@.fail >/dev/null 2>&1; \    if $(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@ ; then : ; else \    status=$$?; \ -  if test x"@noopt_retry@" = xyes ; then \ -  echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >$@.fail ;\ -  if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@ ; then : ; else \ -  status=$$?; \ +     echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ -  else \ +  fi +  + .c.S: +  @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ +  rm -f $@.fail >/dev/null 2>&1; \ +  if $(CC) $(PREFLAGS) $(CFLAGS) -S $< -o $@ ; then : ; else \ +  status=$$?; \    echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) -S $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ +     fi      .c.protos: $(BUILD_BASE)/precompile.sh-stamp    ./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \    $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \    -DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \    { rm "$@"; exit 1; } -  +    .m.o:    @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \    rm -f $@.fail >/dev/null 2>&1; \    if $(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@ ; then : ; else \    status=$$?; \ -  if test x"@noopt_retry@" = xyes ; then \ -  echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >$@.fail ;\ -  if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@ ; then : ; else \ -  status=$$?; \ +     echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ -  else \ +  fi +  + .m.S: +  @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ +  rm -f $@.fail >/dev/null 2>&1; \ +  if $(CC) $(PREFLAGS) $(CFLAGS) -S $< -o $@ ; then : ; else \ +  status=$$?; \    echo "Compilation command was:" >&2;\ -  echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CC) $(PREFLAGS) $(CFLAGS) -S $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ +     fi      .m.protos: $(BUILD_BASE)/precompile.sh-stamp    ./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \    $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \    -DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \    { rm "$@"; exit 1; }      .cc.o:    @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \    rm -f $@.fail >/dev/null 2>&1; \ -  if $(CXX) $(PREFLAGS) $(CFLAGS) -c $< -o $@ ; then : ; else \ +  if $(CXX) $(PREFLAGS) $(CXXFLAGS) -c $< -o $@ ; then : ; else \    status=$$?; \ -  if test x"@noopt_retry@" = xyes ; then \ -  echo "WARNING: Compiler failure! Trying without optimization!" >&2;\ -  echo "$(CXX) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >$@.fail ;\ -  if NO_ULIMIT=yes $(CXX) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@ ; then : ; else \ -  status=$$?; \ +     echo "Compilation command was:" >&2;\ -  echo "$(CXX) $(PREFLAGS) $(NOOPT_CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CXX) $(PREFLAGS) $(CXXFLAGS) -c $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ -  else \ +  fi +  + .cc.S: +  @echo "Compiling `echo '$<' | sed -e 's|^$(PIKE_SRC_DIR)/||'`" ; \ +  rm -f $@.fail >/dev/null 2>&1; \ +  if $(CXX) $(PREFLAGS) $(CXXFLAGS) -S $< -o $@ ; then : ; else \ +  status=$$?; \    echo "Compilation command was:" >&2;\ -  echo "$(CXX) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\ +  echo "$(CXX) $(PREFLAGS) $(CXXFLAGS) -S $< -o $@" >&2 ;\    exit $$status; \ -  fi; \ +     fi      .cc.protos: $(BUILD_BASE)/precompile.sh-stamp    ./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \    $(CXXCPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \    -DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \    { rm "$@"; exit 1; }      propagated_variables:   
pike.git/src/modules/common_module_makefile.in:196:   spotless: clean_here    -rm -f config.cache config.log config.status Makefile propagated_variables make_variables dependencies pike_*.feature    -rm -f core core.* .pure $(MODULE_SPOTLESS_EXTRA)    @for a in '' $(MODULE_SUBDIRS) ; do \    if test "x$$a" = "x"; then :; \    else ( cd $$a ; $(MAKE) $(MAKE_FLAGS) spotless ) ; fi ; \    done         depend: $(SRC_TARGETS) $(PMOD_TARGETS) Makefile -  @gcc -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(PIKE_SRC_DIR)" "$(BUILD_BASE)" -  @CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status -  @for a in '' $(MODULE_SUBDIRS) ; do \ +  @if [ "x$(DO_DEPEND)" = "x" ]; then \ +  $(CC) -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(PIKE_SRC_DIR)" "$(BUILD_BASE)" ; \ +  CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status ; \ +  for a in '' $(MODULE_SUBDIRS) ; do \    if test "x$$a" = "x"; then :; else \    echo Making depend in $$a; \    ( cd $$a && { \    rm -f remake; \    $(MAKE) $(MAKE_FLAGS) depend || \    if test -f remake; then $(MAKE) $(MAKE_FLAGS) depend; \    else exit $$?; fi; \    }); \    fi; \ -  done +  done; \ +  else echo Not regenerating dependencies here.; \ +  fi      pike_external_module: plib/modules    @$(MAKE) $(MAKE_FLAGS) LOCAL_MODULE_PATH="./plib/modules" local_install      refdoc:    @test -d refdoc || mkdir refdoc      refdoc/modref: refdoc    @test -d refdoc/modref || mkdir refdoc/modref