I am using autotools to create Makefiles for a project in Fortran. I would like to direct compiler to place all objects it creates (*.o) in a sub-directory called "Obj".
My configure.ac looks like this:
AC_INIT([Driver],[0.1])
AM_INIT_AUTOMAKE
AC_PROG_FC
AC_PROG_RANLIB
AC_OUTPUT(
Makefile
)
and Makefile.am like:
bin_PROGRAMS = SFS
SFS_SOURCES = Driver.f90
INCLUDE = -I@top_srcdir@/
To the best of my knowledge, a directive such as
OBJDIR = Obj
Should somehow penetrate the final Makefile, but have no idea how to direct autotools to do it.
Any hint would be appreciated.