How to create dependencies in automake?

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-06-16T03:56:33Z Indexed on 2010/06/16 4:02 UTC
Read the original article Hit count: 336

Filed under:
|
|

Hello,

I have a Makefile.am file right now that looks like this:

lib_LIBRARIES = foo.a

foo_a_SOURCES = bar.F90 baz.F90

When compiled, bar.F90 gives bar.o. However, bar.F90 depends on several other Fortran files (cat.F90, dog.F90, pig.F90). I want to set up Automake to rebuild bar.o if the source of one of these dependencies change.

I've been reading the GNU manuals for automake/autoconf and was unable to find a solution to this. Thanks for reading.

© Stack Overflow or respective owner

Related posts about makefile

Related posts about autoconf