PDA

View Full Version : I have problems with Automake when I need to modify the AUTOMAKE.FIG file.


R. T. (Fortran Man)
09-03-2003, 06:13 PM
I have problems with Automake when I need to modify the AUTOMAKE.FIG file. Are there any tips you can share?

Lahey Support
09-03-2003, 07:04 PM
You must have the LF90 keyword in automake.fig. If it is omitted, automake will not run the LF90 compiler.

In most cases the COMPILE= commands should have -c as a switch. Not having it could lead to weird and flaky behaviour. The exception is when building libraries.

Every FILES= statement should have an associated COMPILE= statement, which should occur before the AND. If the COMPILE= is omitted, it will use the default command, even if another COMPILE= command is specified further down in the file.

If you have multiple FILES= statements, you cannot use a response file to compile your code. A response file in the link command is O.K. in this situation.

To build a library using Automake, replace the TARGET=target.exe line with TARGET=mylib.lib

If you need to link in a .LIB file in another directory from the program source files, you need a "-lib x:\mypath\mylib" statement on your LINK= line.