[leafnode-list] [beta] build process: dependency handling

clemens fischer ino-news at spotteswoode.dnsalias.org
Mon Oct 9 18:42:44 CEST 2006


'uname -rms'
FreeBSD 6.2-PRERELEASE i386

'gcc --version'
gcc (GCC) 3.4.6 [FreeBSD] 20060305
...

when leafnode-2 gets built, i see lines like:

  if gcc -DHAVE_CONFIG_H -I. (more compiler switches)
  -MT expire_lookup.o -MD -MP -MF ".deps/expire_lookup.Tpo" -c -o expire_lookup.o
  expire_lookup.c;
  then mv -f ".deps/expire_lookup.Tpo" ".deps/expire_lookup.Po";
  else rm -f ".deps/expire_lookup.Tpo"; exit 1; fi

the Makefile also has, of course:

  include ./$(DEPDIR)/expire_lookup.Po

i had a look at this dependency rule file.  it shows the target twice:

  expire_lookup.o expire_lookup.o: expire_lookup.c leafnode.h config.h (etc.)

how come? only one of "expire_lookup.o" is needed, the extra won't hurt,
but it doesn't help, either.  if it isn't edited in after the compiler
run, the compiler would be at fault.

regards, clemens




More information about the leafnode-list mailing list