How to create dependencies in automake?

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

lib_LIBRARIES = foo.a

foo_a_SOURCES = bar.F90 baz.F90

When compiling bar.F90 gives bar.o. However, bar.F90 depends on several other Fortran files (cat.F90, dog.F90, pig.F90). I want to configure Automake to repair bar.o if the source of one of these dependencies changes.

I read the GNU manuals for automake / autoconf and could not find a solution to this. Thanks for reading.

+3
source share
1 answer

, . , , , , , bar.o , .

+3

Source: https://habr.com/ru/post/1750222/


All Articles