I have a module file in the include directory, which I compile using Makefile from root directory.
$(FC) -c include/my_mod.F90
Compilation works fine, just my module shows up in the root directory instead of the include directory. How can I specify location of the output file?
I am using linux system, and I would like to support both gfortran and ifort.