- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Iapologizeif this is a repost, but I can not find where to search the discussions. I need help setting up a simple makefile. I want to run the following code:
ifort -c subroutines.f90
ifort -c main.f90
ifort -o MyProgram subroutines.o main.0
./ MyProgram
Then clean up/remove all the files except .f90 and MyProgram. I understand a makefile is used for this, but I am not sure what the minimum requirements are for a makefile, what name I save it as, and how I run it. Thanks in advance for your help!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the "fine manual" http://www.gnu.org/software/make/manual/make.html starts at the beginning, and progresses to much of what you would need to understand most existing makefiles, as well as write your own.
When you don't specify a file, make looks first for Makefile. Any name you like will work.
You can compare Windows and linux ifort/icc Makefiles, and gnu vs Intel Makefiles, at
http://sites.google.com/site/tprincesite/levine-callahan-dongarra-vectors
When you don't specify a file, make looks first for Makefile. Any name you like will work.
You can compare Windows and linux ifort/icc Makefiles, and gnu vs Intel Makefiles, at
http://sites.google.com/site/tprincesite/levine-callahan-dongarra-vectors
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the "fine manual" http://www.gnu.org/software/make/manual/make.html starts at the beginning, and progresses to much of what you would need to understand most existing makefiles, as well as write your own.
When you don't specify a file, make looks first for Makefile. Any name you like will work.
You can compare Windows and linux ifort/icc Makefiles, and gnu vs Intel Makefiles, at
http://sites.google.com/site/tprincesite/levine-callahan-dongarra-vectors
When you don't specify a file, make looks first for Makefile. Any name you like will work.
You can compare Windows and linux ifort/icc Makefiles, and gnu vs Intel Makefiles, at
http://sites.google.com/site/tprincesite/levine-callahan-dongarra-vectors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much. That is exactly what I was looking for. There was a very simple and basic program that I was able to copy.

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