Makefile Issues

Makefile Issues

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today