- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page