Dear all,
May I ask, when writing Makefile, how do you generate file dependence?
For not so many f90 files, I can do it manually, like below.
But if the number of files are big, like 100 files, it becomes very cumbersome.
Is there any tool that can generate file dependence automatically?
I know in windows using Code::Block I can generate a Makefile.
But I would like to hear ideas (in windows or linux) from your guys, many of you are more more experienced and advanced than me.
Thank you very much in advance!
test_CR3BP.o: FLINT.o test_CR3BP.f90
(FC) (FFLAGS) -c test_CR3BP.f90
FLINT.o: FLINT_base.o ERK.o FLINT.f90
(FC) (FFLAGS) -c FLINT.f90
FLINT_base.o: FLINTUtils.o FLINT_base.f90
(FC) (FFLAGS) -c FLINT_base.f90
FLINTUtils.o: FLINTUtils.f90
(FC) (FFLAGS) -c FLINTUtils.f90
ERK.o: FLINT_base.o ButcherTableaus.o StepSz.o ERK.f90
(FC) (FFLAGS) -c ERK.f90
ERKInit.o: ERK.o ERKInit.f90
(FC) (FFLAGS) -c ERKInit.f90
ERKIntegrate.o: ERK.o ERKIntegrate.f90
(FC) (FFLAGS) -c ERKIntegrate.f90
ERKInterp.o: ERK.o ERKInterp.f90
(FC) (FFLAGS) -c ERKInterp.f90
ERKStepInt.o: ERK.o ERKStepInt.f90
(FC) (FFLAGS) -c ERKStepInt.f90
ButcherTableaus.o: FLINT_base.o ButcherTableaus.f90
(FC) (FFLAGS) -c ButcherTableaus.f90
StepSz.o: FLINT_base.o StepSz.f90
(FC) (FFLAGS) -c StepSz.f90