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

Makefile Issues

yyxt11a
Beginner
286 Views
In my program, I need to call some library subroutines from NAG and/or MKL, how do I write the Makefile in this case? Any good tutorial on the internet? Many thanks
0 Kudos
1 Reply
Kevin_D_Intel
Employee
286 Views

A Google of "makefile tutorial ldflags" returns a pretty healthy list of possible tutorials.

Some related standard macros to look for are: LDFLAGS, LIBDIR, LIBS

One (here) offers a method for setting up different macro definitions using conditional directives related to the name of the compiler. That concept could be applied/extended to control linking of NAG or MKL.

The one(here) seems like a very nice tutorial too.

Hope it helps.

0 Kudos
Reply