- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right now when I compile all my .for and .obj files are in the same folder. I want it so when it compiles they go the folder "o".
I have attached my makefiles. the command I type to compile is "nmake -f makeri -x- >look" Makeri calls makerip.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add to your fortran options:
/object:YourObjectDirectory\
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what about the ".for" files? I have it working now for the object files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The .for files are generally in the current directory. i.e. you set the current directory to that of the .for files. In your make file you see in several places "cd auxx" (and at end of section "cd ..". auxx would be where the sources would be located for that instance. You would add a section for your new .for files that would "cd YourForFiles".
Or you can explicitly add the path to your .for file if you wish,
: Near Top
ForPath = YourForFiles
...
$(f90) -nologo $(ForPath)\select.f
or use:
$(f90) -nologo YourForFiles\select.f
Generally the preferred method is to set the current directory to that of your sources.
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page