View Full Version : How to do the MAKE compiling with LF95
Hi,
I downloaded a software package written in F77, mainly for unix system. A make file included in the package is supposed to be executed to compile all the routines into libraries, which can then be called in the user's prgoram. Since my version of LF95 is for PC. how can do the same thing with the complier to generate the libraries. Thank you.
Lahey Support
03-22-2005, 09:09 PM
You'll need to use the makefile provide as a guide to make a makefile compatible with the make utility you are trying to use on the PC. LF95 v5.6 and earlier includes the Automake utility. LF95 v5.7 and later also include Nmake. See the User's guide for information on these utilities.
Since the makefile provide is for Linux it may be compatible with Nmake.
Dear Sirs,
I did use automake to compile all the routines into .OBJ file. Now I need to put them all into a library. I know that LM routine can let me create a library and add modules to it one by one. Since I have tens of these module, is there a way add all of them into a library at once? Than you.
Lahey Support
03-24-2005, 12:04 AM
Both the Library Manager and LF95 will make a library of multiple object files with one command.
Library Manager command to make library lib1.lib from multiple object files:
lib 1.obj 2.obj 3.obj lib1.lib
LF95 command to make library lib1.lib from multiple object files:
lf95 1.obj 2.obj 3.obj -out lib1.lib
Either can be used from Automake.
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.