Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28496 ディスカッション

converting a Linux Makefile to Windows

david_sallngc_com
ビギナー
2,431件の閲覧回数

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 件の賞賛
2 返答(返信)
TimP
名誉コントリビューター III
2,431件の閲覧回数

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.

david_sallngc_com
ビギナー
2,431件の閲覧回数

Thanks Tim.

Sincerely,

David

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

返信