From 7097fa9587972b0fba1f40172e4c20a908f602df Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 19 Jul 2007 13:01:04 +0200 Subject: [PATCH] Moved autoconf.h from obj/lib to obj. It is not specific to libucw (although it is currently included from lib/config.h, it makes sense to use the configuration mechanism without the rest of libucw) and, more importantly, it allows us to distinguish between cleaning object files and unconfiguring the package. --- build/Makebottom | 14 +++++++------- lib/Makefile | 2 +- lib/config.h | 2 +- lib/perl/Configure.pm | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build/Makebottom b/build/Makebottom index 49714a75..3475df01 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -90,31 +90,31 @@ endif # Rules for compiling C -$(o)/%.o: $(s)/%.c $(o)/lib/autoconf.h +$(o)/%.o: $(s)/%.c $(o)/autoconf.h $(M)CC $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) -c -o $@ $< -$(o)/%.o: %.c $(o)/lib/autoconf.h +$(o)/%.o: %.c $(o)/autoconf.h $(M)CC $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) -c -o $@ $< -%.o: %.c $(o)/lib/autoconf.h +%.o: %.c $(o)/autoconf.h $(M)CC $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) -c -o $@ $< -$(o)/%.oo: $(s)/%.c $(o)/lib/autoconf.h +$(o)/%.oo: $(s)/%.c $(o)/autoconf.h $(M)CC-SO $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) $(CSHARED) -c -o $@ $< -$(o)/%.oo: %.c $(o)/lib/autoconf.h +$(o)/%.oo: %.c $(o)/autoconf.h $(M)CC-SO $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) $(CSHARED) -c -o $@ $< -%.oo: %.c $(o)/lib/autoconf.h +%.oo: %.c $(o)/autoconf.h $(M)CC-SO $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) $(CSHARED) -c -o $@ $< -$(o)/%-tt.o: $(s)/%.c $(o)/lib/autoconf.h +$(o)/%-tt.o: $(s)/%.c $(o)/autoconf.h $(M)CC-TEST $< $(Q)DEPENDENCIES_OUTPUT="$(o)/depend.new $@" $(CC) $(CFLAGS) -DTEST -c -o $@ $< diff --git a/lib/Makefile b/lib/Makefile index a4aae85a..a4c53f67 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -117,7 +117,7 @@ $(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES)) $(Q)$(s)/build/install-includes $(obj/lib/autoconf.h" or Fail $!; + open X, ">obj/autoconf.h" or Fail $!; print X "/* Generated automatically by $0, please don't touch manually. */\n"; foreach my $x (sort keys %vars) { # Don't export variables which contain no underscores -- 2.39.2