From: Martin Mares Date: Thu, 19 Jul 2007 11:01:04 +0000 (+0200) Subject: Moved autoconf.h from obj/lib to obj. X-Git-Tag: holmes-import~506^2~37 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7097fa9587972b0fba1f40172e4c20a908f602df;p=libucw.git 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. --- 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