On May 15, 10:35am, Hassan Mehrabani-Yeganeh wrote:
> Subject: Makefile question
> Hi Fortranes,
> I am using the following Makefile to make my program. However, every
> time I make any changes to the modules.f I have to separately compile the
> modules and then make. I could not understand why a separate comilation is
> required for the modules.f. The only thing that I am suspicious is that I am
> not using interface in my program. Appreciate your insight.
...
> ddsim.o: ddsim.f
Assuming that ddsim.f has USE statements in it for MODULEs included
in module.f, then you need to say:
ddsim.o: ddsim.f modules.o
and similarly for other routines that USE modules.\
-P.
--
*********** How can we have ethnic music without ethnic hatred? ***********
* Peter S. Shenkin; Chemistry, Columbia U.; 3000 Broadway, Mail Code 3153 *
** NY, NY 10027; [log in to unmask]; (212)854-5143; FAX: 678-9039 ***
*MacroModel WWW page: http://www.columbia.edu/cu/chemistry/mmod/mmod.html *
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|