Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28521 Discussions

converting a Linux Makefile to Windows

david_sallngc_com
2,491 Views

Hi

I have a Makefile that was generated with the ./configure script on Linux and would like to convert it so that I can compile the same codes (spanning several forlders) in Windows using the Microsoft Visual Studio and Intel Fortran. Is there an easy way of doing this?

Thanks for your help!

Sincerely,

David

0 Kudos
2 Replies
TimP
Honored Contributor III
2,491 Views

If easy means without referring to previously posted advice, probably not.

If the application requires .configure, there may well be specific platform dependencies where you would need Windows equivalents, and might want to incorporate those changes in the configure script. You might want to start by porting to Windows gcc/gfortran, before making the next move. But surely you knew that.

It may be relatively easy, at least in the case of 32-bit compilers, if you are willing to use gnu make with the standard changes to account for the differing compiler options.

If you accept gnu make, you must decide whether to standardize on renaming all .obj to .o, and (if 32-bit) possibly using gnu ar for static libraries, or adding the Windows extensions to .SUFFIXES and providing all corresponding rules.

0 Kudos
david_sallngc_com
2,491 Views

Thanks Tim.

Sincerely,

David

PS> "If easy means without referring to previously posted advice, probably not." ... sorry for upsetting you on this post.

0 Kudos
Reply