makdep


Subject: makdep
From: Christine Delire (cldelire@facstaff.wisc.edu)
Date: Thu Feb 18 1999 - 13:50:56 MST


Does anyone know why makedep makes a Depends file that has the syntax

prgm.o : prgm.F incl1.h incl2.h

instead of

prgm.o : prgm.f
prgm.f : prgm.F incl1.h incl2.h

?

The second syntax is nicer because the makefile understands that it has to
use the preprocessor whenever a common block has changed. In the first
case, the makefile compiles the subroutine that includes the modified
common block but uses the old copy of the common block ( the preprocessor
is not used in that case).

Christine Delire

Climate, People and Environment Program,
1225 West Dayton Street,
Madison, Wi, 53706, USA.

Tel: +01-608-262-5961
Fax: +01-608-263-4190



This archive was generated by hypermail 2b27 : Thu Jun 01 2000 - 09:27:04 MDT